diff --git a/ccm-cms-types-externallink/src/main/java/org/librecms/contenttypes/externallink/Externallink.java b/ccm-cms-types-externallink/src/main/java/org/librecms/contenttypes/externallink/Externallink.java
index 4bf1cc4be..405deb075 100644
--- a/ccm-cms-types-externallink/src/main/java/org/librecms/contenttypes/externallink/Externallink.java
+++ b/ccm-cms-types-externallink/src/main/java/org/librecms/contenttypes/externallink/Externallink.java
@@ -1,5 +1,20 @@
/*
- * Add your license here, for example LGPL
+ * Copyright (C) 2015 LibreCCM Foundation.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301 USA
*/
package org.librecms.contenttypes.externallink;
@@ -10,13 +25,69 @@ import org.hibernate.envers.Audited;
import org.librecms.contentsection.ContentItem;
import java.io.Serializable;
+import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
+import org.libreccm.l10n.LocalizedString;
+/**
+ * This content type represents an redirect to an external link or an other
+ * resource identified by an URL.
+ *
+ * The item stores a description text about the link/resource and an URL.
+ *
+ * @author Alexander Konermann
+ * @version 25/11/2015
+ */
@Entity
@Audited
@Table(name = "${type_name}", schema = DB_SCHEMA)
public class Externallink extends ContentItem implements Serializable {
+ @Column(name = "URL")
+ private LocalizedString url;
+
+ @Column(name = "COMMENT")
+ private LocalizedString comment;
+
+ @Column(name = "SHOWCOMMENT")
+ private boolean SHOWCOMMENT;
+
+ @Column(name = "TARGETNEWWINDOW")
+ private boolean TargetNewWindow;
+
+ //Getter and setter:
+ public LocalizedString getUrl() {
+ return url;
+ }
+
+ public void setUrl(LocalizedString url) {
+ this.url = url;
+ }
+
+ public LocalizedString getComment() {
+ return comment;
+ }
+
+ public void setComment(LocalizedString comment) {
+ this.comment = comment;
+ }
+
+ public boolean isSHOWCOMMENT() {
+ return SHOWCOMMENT;
+ }
+
+ public void setSHOWCOMMENT(boolean SHOWCOMMENT) {
+ this.SHOWCOMMENT = SHOWCOMMENT;
+ }
+
+ public boolean isTargetNewWindow() {
+ return TargetNewWindow;
+ }
+
+ public void setTargetNewWindow(boolean TargetNewWindow) {
+ this.TargetNewWindow = TargetNewWindow;
+ }
+
}
diff --git a/ccm-cms-types-externallink/src/main/java/org/librecms/contenttypes/externallink/ExternallinkConstants.java b/ccm-cms-types-externallink/src/main/java/org/librecms/contenttypes/externallink/ExternallinkConstants.java
index bf6820a63..e560637c3 100644
--- a/ccm-cms-types-externallink/src/main/java/org/librecms/contenttypes/externallink/ExternallinkConstants.java
+++ b/ccm-cms-types-externallink/src/main/java/org/librecms/contenttypes/externallink/ExternallinkConstants.java
@@ -1,3 +1,21 @@
+/*
+ * Copyright (C) 2015 LibreCCM Foundation.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301 USA
+ */
package org.librecms.contenttypes.externallink;
public class ExternallinkConstants {
diff --git a/ccm-cms-types-externallink/src/main/java/org/librecms/contenttypes/externallink/ExternallinkModule.java b/ccm-cms-types-externallink/src/main/java/org/librecms/contenttypes/externallink/ExternallinkModule.java
index 698b5c0b0..64d48282a 100644
--- a/ccm-cms-types-externallink/src/main/java/org/librecms/contenttypes/externallink/ExternallinkModule.java
+++ b/ccm-cms-types-externallink/src/main/java/org/librecms/contenttypes/externallink/ExternallinkModule.java
@@ -1,5 +1,20 @@
-/**
- * Add your license here, for example LGPL
+/*
+ * Copyright (C) 2015 LibreCCM Foundation.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301 USA
*/
package org.librecms.contenttypes.externallink;
diff --git a/ccm-cms-types-faqitem/src/main/java/org/librecms/contenttypes/faqitem/FAQitem.java b/ccm-cms-types-faqitem/src/main/java/org/librecms/contenttypes/faqitem/FAQitem.java
index 2515a6caf..f18c3fd96 100644
--- a/ccm-cms-types-faqitem/src/main/java/org/librecms/contenttypes/faqitem/FAQitem.java
+++ b/ccm-cms-types-faqitem/src/main/java/org/librecms/contenttypes/faqitem/FAQitem.java
@@ -1,5 +1,20 @@
/*
- * Add your license here, for example LGPL
+ * Copyright (C) 2015 LibreCCM Foundation.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301 USA
*/
package org.librecms.contenttypes.faqitem;
@@ -7,15 +22,60 @@ import org.hibernate.envers.Audited;
import org.librecms.contentsection.ContentItem;
import java.io.Serializable;
+import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
+import org.hibernate.validator.constraints.NotEmpty;
+import org.libreccm.l10n.LocalizedString;
import static org.librecms.contenttypes.faqitem.FAQitemConstants.*;
+/**
+ * This content type represents a FAQitem.
+ *
+ * @author Alexander Konermann
+ * @version 25/11/2015
+ */
@Entity
@Audited
@Table(name = "${type_name}", schema = DB_SCHEMA)
public class FAQitem extends ContentItem implements Serializable {
+ @Column(name = "QUESTION")
+ @NotEmpty
+ private LocalizedString question;
+
+ @Column(name = "ANSWER")
+ @NotEmpty
+ private LocalizedString answer;
+
+ @Column(name = "SECTIONNAME")
+ private LocalizedString sectionName;
+
+ //Getter and setter:
+ public LocalizedString getQuestion() {
+ return question;
+ }
+
+ public void setQuestion(LocalizedString question) {
+ this.question = question;
+ }
+
+ public LocalizedString getAnswer() {
+ return answer;
+ }
+
+ public void setAnswer(LocalizedString answer) {
+ this.answer = answer;
+ }
+
+ public LocalizedString getSectionName() {
+ return sectionName;
+ }
+
+ public void setSectionName(LocalizedString sectionName) {
+ this.sectionName = sectionName;
+ }
+
}
diff --git a/ccm-cms-types-faqitem/src/main/java/org/librecms/contenttypes/faqitem/FAQitemConstants.java b/ccm-cms-types-faqitem/src/main/java/org/librecms/contenttypes/faqitem/FAQitemConstants.java
index 83c0cf126..9be87ee82 100644
--- a/ccm-cms-types-faqitem/src/main/java/org/librecms/contenttypes/faqitem/FAQitemConstants.java
+++ b/ccm-cms-types-faqitem/src/main/java/org/librecms/contenttypes/faqitem/FAQitemConstants.java
@@ -1,3 +1,21 @@
+/*
+ * Copyright (C) 2015 LibreCCM Foundation.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301 USA
+ */
package org.librecms.contenttypes.faqitem;
public class FAQitemConstants {
diff --git a/ccm-cms-types-faqitem/src/main/java/org/librecms/contenttypes/faqitem/FAQitemModule.java b/ccm-cms-types-faqitem/src/main/java/org/librecms/contenttypes/faqitem/FAQitemModule.java
index 2d2fad4a5..7f8dcf7ef 100644
--- a/ccm-cms-types-faqitem/src/main/java/org/librecms/contenttypes/faqitem/FAQitemModule.java
+++ b/ccm-cms-types-faqitem/src/main/java/org/librecms/contenttypes/faqitem/FAQitemModule.java
@@ -1,5 +1,20 @@
-/**
- * Add your license here, for example LGPL
+/*
+ * Copyright (C) 2015 LibreCCM Foundation.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301 USA
*/
package org.librecms.contenttypes.faqitem;
diff --git a/ccm-cms-types-glossaryitem/src/main/java/org/librecms/contenttypes/glossaryitem/Glossaryitem.java b/ccm-cms-types-glossaryitem/src/main/java/org/librecms/contenttypes/glossaryitem/Glossaryitem.java
index 2d6ce5a1f..d2e373f2f 100644
--- a/ccm-cms-types-glossaryitem/src/main/java/org/librecms/contenttypes/glossaryitem/Glossaryitem.java
+++ b/ccm-cms-types-glossaryitem/src/main/java/org/librecms/contenttypes/glossaryitem/Glossaryitem.java
@@ -1,5 +1,20 @@
/*
- * Add your license here, for example LGPL
+ * Copyright (C) 2015 LibreCCM Foundation.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301 USA
*/
package org.librecms.contenttypes.glossaryitem;
@@ -9,13 +24,36 @@ import org.hibernate.envers.Audited;
import org.librecms.contentsection.ContentItem;
import java.io.Serializable;
+import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
+import org.hibernate.validator.constraints.NotEmpty;
+import org.libreccm.l10n.LocalizedString;
+import org.librecms.contentsection.ContentItem;
+/**
+ * This content type represents a GlossaryItem.
+ *
+ * @author Alexander Konermann
+ * @version 25/11/2015
+ */
@Entity
@Audited
@Table(name = "${type_name}", schema = DB_SCHEMA)
public class Glossaryitem extends ContentItem implements Serializable {
+ @Column(name = "DEFINITION")
+ @NotEmpty
+ private LocalizedString definition;
+
+ //Getter and setter:
+ public LocalizedString getDefinition() {
+ return definition;
+ }
+
+ public void setDefinition(LocalizedString definition) {
+ this.definition = definition;
+ }
+
}
diff --git a/ccm-cms-types-glossaryitem/src/main/java/org/librecms/contenttypes/glossaryitem/GlossaryitemConstants.java b/ccm-cms-types-glossaryitem/src/main/java/org/librecms/contenttypes/glossaryitem/GlossaryitemConstants.java
index c1a45019f..03906af6a 100644
--- a/ccm-cms-types-glossaryitem/src/main/java/org/librecms/contenttypes/glossaryitem/GlossaryitemConstants.java
+++ b/ccm-cms-types-glossaryitem/src/main/java/org/librecms/contenttypes/glossaryitem/GlossaryitemConstants.java
@@ -1,3 +1,21 @@
+/*
+ * Copyright (C) 2015 LibreCCM Foundation.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301 USA
+ */
package org.librecms.contenttypes.glossaryitem;
public class GlossaryitemConstants {
diff --git a/ccm-cms-types-glossaryitem/src/main/java/org/librecms/contenttypes/glossaryitem/GlossaryitemModule.java b/ccm-cms-types-glossaryitem/src/main/java/org/librecms/contenttypes/glossaryitem/GlossaryitemModule.java
index 35a2e2454..615e125ea 100644
--- a/ccm-cms-types-glossaryitem/src/main/java/org/librecms/contenttypes/glossaryitem/GlossaryitemModule.java
+++ b/ccm-cms-types-glossaryitem/src/main/java/org/librecms/contenttypes/glossaryitem/GlossaryitemModule.java
@@ -1,5 +1,20 @@
-/**
- * Add your license here, for example LGPL
+/*
+ * Copyright (C) 2015 LibreCCM Foundation.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301 USA
*/
package org.librecms.contenttypes.glossaryitem;
diff --git a/ccm-cms-types-newsitem/src/main/java/org/librecms/contenttypes/newsitem/Newsitem.java b/ccm-cms-types-newsitem/src/main/java/org/librecms/contenttypes/newsitem/Newsitem.java
index 06c9ce067..bad72950d 100644
--- a/ccm-cms-types-newsitem/src/main/java/org/librecms/contenttypes/newsitem/Newsitem.java
+++ b/ccm-cms-types-newsitem/src/main/java/org/librecms/contenttypes/newsitem/Newsitem.java
@@ -1,5 +1,20 @@
/*
- * Add your license here, for example LGPL
+ * Copyright (C) 2015 LibreCCM Foundation.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301 USA
*/
package org.librecms.contenttypes.newsitem;
@@ -10,13 +25,71 @@ import org.hibernate.envers.Audited;
import org.librecms.contentsection.ContentItem;
import java.io.Serializable;
+import java.util.Date;
+import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
+import javax.persistence.Temporal;
+import org.hibernate.validator.constraints.NotEmpty;
+import org.libreccm.l10n.LocalizedString;
+/**
+ * This content type represents a newsitem.
+ *
+ * @author Alexander Konermann
+ * @version 25/11/2015
+ */
@Entity
@Audited
@Table(name = "${type_name}", schema = DB_SCHEMA)
public class Newsitem extends ContentItem implements Serializable {
+ /**
+ * The tease/lead paragraph for the news item
+ */
+ @Column(name = "LEAD")
+ private LocalizedString lead;
+
+ /**
+ * The date for the news item
+ */
+ @Column(name = "NEWSDATE")
+ @Temporal(javax.persistence.TemporalType.DATE)
+ private Date newsDate;
+
+ /**
+ * True, if it is a Homepage
+ */
+ @Column(name = "ISHOMEPAGE")
+ @NotEmpty
+ private boolean isHompage;
+
+
+ //Getter and setter:
+ public LocalizedString getLead() {
+ return lead;
+ }
+
+ public void setLead(LocalizedString lead) {
+ this.lead = lead;
+ }
+
+ public Date getNewsDate() {
+ return newsDate;
+ }
+
+ public void setNewsDate(Date newsDate) {
+ this.newsDate = newsDate;
+ }
+
+ public boolean isIsHompage() {
+ return isHompage;
+ }
+
+ public void setIsHompage(boolean isHompage) {
+ this.isHompage = isHompage;
+ }
+
+
}
diff --git a/ccm-cms-types-newsitem/src/main/java/org/librecms/contenttypes/newsitem/NewsitemConstants.java b/ccm-cms-types-newsitem/src/main/java/org/librecms/contenttypes/newsitem/NewsitemConstants.java
index e1d199a1a..6027a89cb 100644
--- a/ccm-cms-types-newsitem/src/main/java/org/librecms/contenttypes/newsitem/NewsitemConstants.java
+++ b/ccm-cms-types-newsitem/src/main/java/org/librecms/contenttypes/newsitem/NewsitemConstants.java
@@ -1,3 +1,21 @@
+/*
+ * Copyright (C) 2015 LibreCCM Foundation.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301 USA
+ */
package org.librecms.contenttypes.newsitem;
public class NewsitemConstants {
diff --git a/ccm-cms-types-newsitem/src/main/java/org/librecms/contenttypes/newsitem/NewsitemModule.java b/ccm-cms-types-newsitem/src/main/java/org/librecms/contenttypes/newsitem/NewsitemModule.java
index 0637c7a79..78af6f39e 100644
--- a/ccm-cms-types-newsitem/src/main/java/org/librecms/contenttypes/newsitem/NewsitemModule.java
+++ b/ccm-cms-types-newsitem/src/main/java/org/librecms/contenttypes/newsitem/NewsitemModule.java
@@ -1,5 +1,20 @@
-/**
- * Add your license here, for example LGPL
+/*
+ * Copyright (C) 2015 LibreCCM Foundation.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301 USA
*/
package org.librecms.contenttypes.newsitem;