diff --git a/ccm-cms/src/main/java/com/arsdigita/cms/ui/type/TypePermissionsTable.java b/ccm-cms/src/main/java/com/arsdigita/cms/ui/type/TypePermissionsTable.java
index dd0393e00..2fd5ddce4 100644
--- a/ccm-cms/src/main/java/com/arsdigita/cms/ui/type/TypePermissionsTable.java
+++ b/ccm-cms/src/main/java/com/arsdigita/cms/ui/type/TypePermissionsTable.java
@@ -18,27 +18,21 @@ import com.arsdigita.cms.CMS;
import org.librecms.contentsection.ContentType;
-import com.arsdigita.cms.dispatcher.Utilities;
import com.arsdigita.cms.ui.ContentSectionRequestLocal;
import com.arsdigita.globalization.GlobalizedMessage;
-import com.arsdigita.ui.admin.GlobalizationUtil;
-import org.libreccm.security.Party;
import org.libreccm.security.Role;
import com.arsdigita.util.LockableImpl;
-import java.awt.image.Kernel;
import java.util.List;
import org.libreccm.cdi.utils.CdiUtil;
-import org.libreccm.security.Permission;
import org.libreccm.security.PermissionChecker;
import org.libreccm.security.RoleRepository;
import org.librecms.CmsConstants;
import org.librecms.contentsection.ContentSection;
import org.librecms.contentsection.privileges.AdminPrivileges;
-import sun.security.util.SecurityConstants;
import java.util.Iterator;
diff --git a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/AttachmentListDetailsModel.java b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/AttachmentListDetailsModel.java
index 9880cff26..bcb10e892 100644
--- a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/AttachmentListDetailsModel.java
+++ b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/AttachmentListDetailsModel.java
@@ -1,11 +1,25 @@
/*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
+ * Copyright (C) 2021 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.ui.contentsections.documents;
import org.libreccm.l10n.GlobalizationHelper;
+import org.libreccm.l10n.LocalizedString;
import org.librecms.contentsection.AttachmentList;
import java.util.Collections;
@@ -21,26 +35,65 @@ import javax.inject.Inject;
import javax.inject.Named;
/**
+ * Model used by the attachment list details view.
+ *
+ * @see RelatedInfoStep
*
* @author Jens Pelzetter
*/
@RequestScoped
@Named("CmsAttachmentListDetailsModel")
public class AttachmentListDetailsModel {
-
+
+ /**
+ * The {@link GlobalizationHelper} is used here for retrieving some
+ * localized values. The purpose of this model is to provide the properties
+ * of an {@link AttachmentList} is a form that is directly usable in the
+ * template of the details view. The data of the model is provided by the
+ * {@link RelatedInfoStep}.
+ */
@Inject
private GlobalizationHelper globalizationHelper;
+ /**
+ * UUID of the {@link AttachmentList} shown.
+ */
private String uuid;
+ /**
+ * Name of the {@link AttachmentList} shown.
+ */
private String name;
+ /**
+ * Preprocessed localized title values of the {@link AttachmentList}. This
+ * map is generated by transforming the locales the
+ * {@link AttachmentList#title} to a string using {@link Locale#toString()}.
+ */
private Map titles;
+ /**
+ * Preprocessed localized description values of the {@link AttachmentList}.
+ * This map is generated by transforming the locales the
+ * {@link AttachmentList#description} to a string using
+ * {@link Locale#toString()}.
+ */
private Map descriptions;
+ /**
+ * Not used locales for the title. These are the locales returned by
+ * {@link GlobalizationHelper#getAvailableLocales()} minus the locales
+ * returned by {@link LocalizedString#getAvailableLocales()} for
+ * {@link AttachmentList#title}.
+ */
private List unusedTitleLocales;
+ /**
+ * Not used locales for the description. These are the locales returned by
+ * {@link GlobalizationHelper#getAvailableLocales()} minus the locales
+ * returned by {@link LocalizedString#getAvailableLocales()} for
+ * {@link AttachmentList#description}.
+ */
private List unusedDescriptionLocales;
public String getUuid() {
@@ -67,6 +120,16 @@ public class AttachmentListDetailsModel {
return Collections.unmodifiableList(unusedDescriptionLocales);
}
+ /**
+ * Used by
+ * {@link RelatedInfoStep#showAttachmentListDetails(java.lang.String)} to
+ * provide the {@link AttachmentList} to show. This method takes care of
+ * process the relevant properties the {@link AttachmentList} to display for
+ * the view. The result of the processing is stored in the properties of
+ * this model.
+ *
+ * @param list The {@link AttachmentList} to show in the details view.
+ */
protected void setAttachmentList(final AttachmentList list) {
Objects.requireNonNull(list);
uuid = list.getUuid();
@@ -93,7 +156,7 @@ public class AttachmentListDetailsModel {
entry -> entry.getValue()
)
);
-
+
final Set titleLocales = list
.getTitle()
.getAvailableLocales();
@@ -103,7 +166,7 @@ public class AttachmentListDetailsModel {
.filter(locale -> !titleLocales.contains(locale))
.map(Locale::toString)
.collect(Collectors.toList());
-
+
final Set descriptionLocales = list
.getDescription()
.getAvailableLocales();
diff --git a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/AttachmentListDto.java b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/AttachmentListDto.java
index 12c68854c..0fc2f16db 100644
--- a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/AttachmentListDto.java
+++ b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/AttachmentListDto.java
@@ -1,32 +1,76 @@
/*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
+ * Copyright (C) 2021 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.ui.contentsections.documents;
+import org.libreccm.l10n.GlobalizationHelper;
+import org.librecms.contentsection.AttachmentList;
+import org.librecms.contentsection.ContentItem;
+
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/**
+ * A data transfer object used by the template for the listing of the
+ * {@link AttachmentList}s of a {@link ContentItem}.
+ *
+ * @see RelatedInfoStep
*
* @author Jens Pelzetter
*/
public class AttachmentListDto {
-
+
+ /**
+ * The ID of the list.
+ */
private long listId;
-
+
+ /**
+ * The UUID of the list.
+ */
private String uuid;
-
+
+ /**
+ * The name of the list.
+ */
private String name;
-
+
+ /**
+ * The order value of the list.
+ */
private long order;
-
+
+ /**
+ * The title of the list. This value is determined using
+ * {@link GlobalizationHelper#getValueFromLocalizedString(org.libreccm.l10n.LocalizedString)}.
+ */
private String title;
-
+
+ /**
+ * The description of the list. This value is determined using
+ * {@link GlobalizationHelper#getValueFromLocalizedString(org.libreccm.l10n.LocalizedString)}.
+ */
private String description;
-
+
+ /**
+ * The @link{ItemAttachment}s associated with the {@link AttachmentList}.
+ */
private List attachments;
public long getListId() {
@@ -84,7 +128,5 @@ public class AttachmentListDto {
public void setAttachments(final List attachments) {
this.attachments = new ArrayList<>(attachments);
}
-
-
-
+
}
diff --git a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/AuthoringStepListEntry.java b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/AuthoringStepListEntry.java
index 7ba0d0a2c..2b5cebf8d 100644
--- a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/AuthoringStepListEntry.java
+++ b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/AuthoringStepListEntry.java
@@ -1,20 +1,46 @@
/*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
+ * Copyright (C) 2021 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.ui.contentsections.documents;
/**
+ * A DTO used in several views to display information about an authoring step.
+ *
+ * @see SelectedDocumentModel
+ * @see SelectedDocumentModel#getAuthoringStepsList()
*
* @author Jens Pelzetter
*/
public class AuthoringStepListEntry {
+ /**
+ * The label of the authoring step.
+ */
private String label;
+ /**
+ * The description of the authoring step.
+ */
private String description;
+ /**
+ * The path fragment of the authoring step.
+ */
private String pathFragment;
public String getLabel() {
diff --git a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/AuthoringStepNotAvailable.java b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/AuthoringStepNotAvailable.java
index b52ba3ca4..f0a63b251 100644
--- a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/AuthoringStepNotAvailable.java
+++ b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/AuthoringStepNotAvailable.java
@@ -1,7 +1,20 @@
/*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
+ * Copyright (C) 2021 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.ui.contentsections.documents;
diff --git a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/AuthoringStepPathFragment.java b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/AuthoringStepPathFragment.java
index 867490cf4..8b7691b2c 100644
--- a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/AuthoringStepPathFragment.java
+++ b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/AuthoringStepPathFragment.java
@@ -1,7 +1,20 @@
/*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
+ * Copyright (C) 2021 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.ui.contentsections.documents;
@@ -13,8 +26,14 @@ import java.lang.annotation.Target;
import javax.inject.Qualifier;
/**
- *
- *
+ * This annotation is used to define the path fragment of an authoring step.
+ *
+ * The full path of the authoring step will be
+ *
+ *
+ * /@contentsections/{sectionIdentifier}/documents/{itemPath}/@authoringSteps/{authoringStepPathFragment}
+ *
+ *
* @author Jens Pelzetter
*/
@Qualifier
@@ -28,7 +47,7 @@ import javax.inject.Qualifier;
}
)
public @interface AuthoringStepPathFragment {
-
+
String value();
-
+
}
diff --git a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/CategorizationStep.java b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/CategorizationStep.java
index ce0e75448..136e6aff1 100644
--- a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/CategorizationStep.java
+++ b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/CategorizationStep.java
@@ -1,7 +1,20 @@
/*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
+ * Copyright (C) 2021 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.ui.contentsections.documents;
@@ -9,7 +22,6 @@ import org.libreccm.api.Identifier;
import org.libreccm.api.IdentifierParser;
import org.libreccm.categorization.Category;
import org.libreccm.categorization.CategoryManager;
-import org.libreccm.categorization.CategoryRepository;
import org.libreccm.categorization.Domain;
import org.libreccm.categorization.DomainOwnership;
import org.libreccm.categorization.ObjectNotAssignedToCategoryException;
@@ -37,6 +49,8 @@ import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
/**
+ * Authoring step for categorizing a {@link ContentItem}. The class is an EE MVC
+ * controller as well as a model for the view of the authoring step.
*
* @author Jens Pelzetter
*/
@@ -52,9 +66,6 @@ public class CategorizationStep implements MvcAuthoringStep {
@Inject
private CategoryManager categoryManager;
- @Inject
- private CategoryRepository categoryRepo;
-
@Inject
private IdentifierParser identifierParser;
@@ -67,15 +78,27 @@ public class CategorizationStep implements MvcAuthoringStep {
@Inject
private Models models;
+ /**
+ * The current content section.
+ */
private ContentSection section;
+ /**
+ * The current document.
+ */
private ContentItem document;
+ /**
+ * {@inheritDoc}
+ */
@Override
public Class extends ContentItem> supportedDocumentType() {
return ContentItem.class;
}
+ /**
+ * {@inheritDoc}
+ */
@Override
public String getLabel() {
return globalizationHelper
@@ -83,6 +106,9 @@ public class CategorizationStep implements MvcAuthoringStep {
.getText("authoringsteps.categorization.label");
}
+ /**
+ * {@inheritDoc}
+ */
@Override
public String getDescription() {
return globalizationHelper
@@ -90,58 +116,97 @@ public class CategorizationStep implements MvcAuthoringStep {
.getText("authoringsteps.categorization.description");
}
+ /**
+ * {@inheritDoc}
+ */
@Override
public String getBundle() {
return DefaultAuthoringStepConstants.BUNDLE;
}
+ /**
+ * {@inheritDoc}
+ */
@Override
public ContentSection getContentSection() {
return section;
}
+ /**
+ * {@inheritDoc}
+ */
@Override
public void setContentSection(final ContentSection section) {
this.section = section;
}
+ /**
+ * {@inheritDoc}
+ */
@Override
public String getContentSectionLabel() {
return section.getLabel();
}
+ /**
+ * {@inheritDoc}
+ */
@Override
public String getContentSectionTitle() {
return globalizationHelper
.getValueFromLocalizedString(section.getTitle());
}
+ /**
+ * {@inheritDoc}
+ */
@Override
public ContentItem getContentItem() {
return document;
}
+ /**
+ * {@inheritDoc}
+ */
@Override
public void setContentItem(final ContentItem document) {
this.document = document;
}
+ /**
+ * {@inheritDoc}
+ */
@Override
public String getContentItemPath() {
return itemManager.getItemPath(document);
}
+ /**
+ * {@inheritDoc}
+ */
@Override
public String getContentItemTitle() {
return globalizationHelper
.getValueFromLocalizedString(document.getTitle());
}
+ /**
+ * {@inheritDoc}
+ */
@Override
public String showStep() {
return "org/librecms/ui/documents/categorization.xhtml";
}
+ /**
+ * Provides a tree view of the category system assigned to the current
+ * content section in an format which can be processed in MVC templates.
+ *
+ * The categories assigned to the current item as marked.
+ *
+ * @return Tree view of the category systems assigned to the current content
+ * section.
+ */
@Transactional(Transactional.TxType.REQUIRED)
public List getCategorizationTrees() {
return section
@@ -152,6 +217,15 @@ public class CategorizationStep implements MvcAuthoringStep {
.collect(Collectors.toList());
}
+ /**
+ * Update the categorization of the current item.
+ *
+ * @param domainIdentifierParam The identifier for category system to use.
+ * @param assignedCategoriesParam The UUIDs of the categories assigned to
+ * the current content item.
+ *
+ * @return A redirect to the categorization step.
+ */
@POST
@Path("/{domainIdentifier}")
@Transactional(Transactional.TxType.REQUIRED)
@@ -215,6 +289,19 @@ public class CategorizationStep implements MvcAuthoringStep {
);
}
+ /**
+ * Helper method for updating the assigned categories of the current content
+ * item. If the current item is not assigned to a category included in the
+ * {@code assignedCategoriesParam} to category is assigned to the content
+ * item. Likewise, if a category is assigned to the current content item,
+ * but not included in the {@code assignedCategoriesParam} the catgory is
+ * removed from the current content item.
+ *
+ * @param category A category
+ * @param assignedCategoriesParam The UUIDs of the categories which should
+ * be assigned to the current content item.
+ *
+ */
private void updateAssignedCategories(
final Category category,
final Set assignedCategoriesParam
@@ -234,6 +321,15 @@ public class CategorizationStep implements MvcAuthoringStep {
}
}
+ /**
+ * Helper method for building the {@link CategorizationTree} for a category
+ * system.
+ *
+ * @param domain The category system from which the
+ * {@link CategorizationTree} is created.
+ *
+ * @return The {@link CategorizationTree} for the provided category system.
+ */
private CategorizationTree buildCategorizationTree(final Domain domain) {
final CategorizationTree tree = new CategorizationTree();
tree.setDomainDescription(
@@ -255,6 +351,17 @@ public class CategorizationStep implements MvcAuthoringStep {
return tree;
}
+ /**
+ * Helper method for building a list of the categories assigned to the
+ * current content item.
+ *
+ * @param node A {@link CategorizationTreeNode}
+ * @param parentPath The parent path of the category represented by the
+ * {@code node}.
+ *
+ * @return A list of paths of the categories assigned to the current content
+ * item.
+ */
private List buildAssignedCategoriesList(
final CategorizationTreeNode node, final String parentPath
) {
@@ -282,6 +389,15 @@ public class CategorizationStep implements MvcAuthoringStep {
return assigned;
}
+ /**
+ * Helper method for building the {@link CategorizationTreeNode} for a
+ * category.
+ *
+ * @param category The category from which the node is created.
+ *
+ * @return A {@link CategorizationTreeNode} for the provided
+ * {@code category}.
+ */
private CategorizationTreeNode buildCategorizationTreeNode(
final Category category
) {
diff --git a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/CategorizationTree.java b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/CategorizationTree.java
index 2725a021c..685712920 100644
--- a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/CategorizationTree.java
+++ b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/CategorizationTree.java
@@ -1,28 +1,70 @@
/*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
+ * Copyright (C) 2021 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.ui.contentsections.documents;
+import org.libreccm.categorization.Domain;
+import org.libreccm.l10n.GlobalizationHelper;
+
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/**
+ * A tree structure of a category system (domain) with markers for the
+ * categories assigned to the curent content item.
+ *
+ * @see CategorizationStep
*
* @author Jens Pelzetter
*/
public class CategorizationTree {
+ /**
+ * The domain key of the category system.
+ *
+ * @see Domain#domainKey
+ */
private String domainKey;
+ /**
+ * The title of the domain. This value is determined from
+ * {@link Domain#title} using {@link GlobalizationHelper#getValueFromLocalizedString(org.libreccm.l10n.LocalizedString)
+ * }
+ */
private String domainTitle;
+ /**
+ * The description of the domain. This value is determined from
+ * {@link Domain#description} using {@link GlobalizationHelper#getValueFromLocalizedString(org.libreccm.l10n.LocalizedString)
+ * }
+ */
private String domainDescription;
+ /**
+ * The node for the root category of the domain.
+ */
private CategorizationTreeNode root;
+ /**
+ * A list of the paths of the categories assigned to the current content
+ * item.
+ */
private List assignedCategories;
public String getDomainKey() {
diff --git a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/CategorizationTreeNode.java b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/CategorizationTreeNode.java
index b764a1587..994b12d01 100644
--- a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/CategorizationTreeNode.java
+++ b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/CategorizationTreeNode.java
@@ -1,36 +1,85 @@
/*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
+ * Copyright (C) 2021 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.ui.contentsections.documents;
+import org.libreccm.categorization.Category;
+import org.libreccm.l10n.GlobalizationHelper;
+
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/**
+ * A node of a {@link CategorizationTree}.
*
* @author Jens Pelzetter
*/
public class CategorizationTreeNode {
-
+
+ /**
+ * The ID of the {@link Category} represented by the node.
+ */
private long categoryId;
-
+
+ /**
+ * The UUID of the {@link Category} represented by the node.
+ */
private String categoryUuid;
-
+
+ /**
+ * The unique ID of the {@link Category} represented by the node.
+ */
private String uniqueId;
-
+
+ /**
+ * The name of the {@link Category} represented by the node.
+ */
private String categoryName;
-
+
+ /**
+ * The title of the {@link Category} represented by the node. This value is
+ * determined from {@link Category#title} using
+ * {@link GlobalizationHelper#getValueFromLocalizedString(org.libreccm.l10n.LocalizedString)}.
+ */
private String title;
-
+
+ /**
+ * The description of the {@link Category} represented by the node. This
+ * value is determined from {@link Category#description} using
+ * {@link GlobalizationHelper#getValueFromLocalizedString(org.libreccm.l10n.LocalizedString)}.
+ */
private String description;
-
+
+ /**
+ * Is the category assigned to the current content item?
+ */
private boolean assigned;
-
+
+ /**
+ * Is any subcategory of the category represented by this node assigned to
+ * the current content item?
+ */
private boolean subCategoryAssigned;
-
+
+ /**
+ * Nodes for the subcategories of the category represented by this node.
+ */
private List subCategories;
public long getCategoryId() {
@@ -45,7 +94,7 @@ public class CategorizationTreeNode {
return categoryUuid;
}
- public void setCategoryUuid(final String categoryUuid) {
+ public void setCategoryUuid(final String categoryUuid) {
this.categoryUuid = categoryUuid;
}
@@ -53,7 +102,7 @@ public class CategorizationTreeNode {
return uniqueId;
}
- public void setUniqueId(final String uniqueId) {
+ public void setUniqueId(final String uniqueId) {
this.uniqueId = uniqueId;
}
@@ -61,7 +110,7 @@ public class CategorizationTreeNode {
return categoryName;
}
- public void setCategoryName(final String categoryName) {
+ public void setCategoryName(final String categoryName) {
this.categoryName = categoryName;
}
@@ -69,7 +118,7 @@ public class CategorizationTreeNode {
return title;
}
- public void setTitle(final String title) {
+ public void setTitle(final String title) {
this.title = title;
}
@@ -77,7 +126,7 @@ public class CategorizationTreeNode {
return description;
}
- public void setDescription(final String description) {
+ public void setDescription(final String description) {
this.description = description;
}
@@ -106,7 +155,5 @@ public class CategorizationTreeNode {
) {
this.subCategories = new ArrayList<>(subCategories);
}
-
-
-
+
}
diff --git a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/ContentSectionNotFound.java b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/ContentSectionNotFound.java
index f19a852a4..ea08da863 100644
--- a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/ContentSectionNotFound.java
+++ b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/ContentSectionNotFound.java
@@ -1,7 +1,20 @@
/*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
+ * Copyright (C) 2021 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.ui.contentsections.documents;
diff --git a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/ContentTypeNotAvailable.java b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/ContentTypeNotAvailable.java
index 66f3d5918..3d679898a 100644
--- a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/ContentTypeNotAvailable.java
+++ b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/ContentTypeNotAvailable.java
@@ -1,7 +1,20 @@
/*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
+ * Copyright (C) 2021 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.ui.contentsections.documents;
diff --git a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/CreateStepNotAvailable.java b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/CreateStepNotAvailable.java
index 52bfebff6..73eeb25a1 100644
--- a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/CreateStepNotAvailable.java
+++ b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/CreateStepNotAvailable.java
@@ -1,7 +1,20 @@
/*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
+ * Copyright (C) 2021 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.ui.contentsections.documents;
diff --git a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/CreatesDocumentOfType.java b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/CreatesDocumentOfType.java
index a1224acf5..91ee203cd 100644
--- a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/CreatesDocumentOfType.java
+++ b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/CreatesDocumentOfType.java
@@ -1,7 +1,20 @@
/*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
+ * Copyright (C) 2021 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.ui.contentsections.documents;
diff --git a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/DefaultAuthoringStepConstants.java b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/DefaultAuthoringStepConstants.java
index 76eba4a22..954bff261 100644
--- a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/DefaultAuthoringStepConstants.java
+++ b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/DefaultAuthoringStepConstants.java
@@ -1,7 +1,20 @@
/*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
+ * Copyright (C) 2021 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.ui.contentsections.documents;
diff --git a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/DefaultStepsMessageBundle.java b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/DefaultStepsMessageBundle.java
index 9d46ca85d..edcbf6d2c 100644
--- a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/DefaultStepsMessageBundle.java
+++ b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/DefaultStepsMessageBundle.java
@@ -1,7 +1,20 @@
/*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
+ * Copyright (C) 2021 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.ui.contentsections.documents;
diff --git a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/DocumentController.java b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/DocumentController.java
index 6f2ce44e9..e2067ab11 100644
--- a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/DocumentController.java
+++ b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/DocumentController.java
@@ -1,7 +1,20 @@
/*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
+ * Copyright (C) 2021 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.ui.contentsections.documents;
diff --git a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/DocumentLifecyclesController.java b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/DocumentLifecyclesController.java
index 5cb830726..070550e7e 100644
--- a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/DocumentLifecyclesController.java
+++ b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/DocumentLifecyclesController.java
@@ -1,7 +1,20 @@
/*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
+ * Copyright (C) 2021 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.ui.contentsections.documents;
diff --git a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/DocumentNotFound.java b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/DocumentNotFound.java
index 186ecfc77..748cf10c0 100644
--- a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/DocumentNotFound.java
+++ b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/DocumentNotFound.java
@@ -1,7 +1,20 @@
/*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
+ * Copyright (C) 2021 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.ui.contentsections.documents;
diff --git a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/DocumentTypeClassNotFound.java b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/DocumentTypeClassNotFound.java
index 56771a9a2..909b853dd 100644
--- a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/DocumentTypeClassNotFound.java
+++ b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/DocumentTypeClassNotFound.java
@@ -1,7 +1,20 @@
/*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
+ * Copyright (C) 2021 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.ui.contentsections.documents;
diff --git a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/DocumentUi.java b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/DocumentUi.java
index fa482d569..11ede343d 100644
--- a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/DocumentUi.java
+++ b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/DocumentUi.java
@@ -1,7 +1,20 @@
/*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
+ * Copyright (C) 2021 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.ui.contentsections.documents;
diff --git a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/DocumentWorkflowController.java b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/DocumentWorkflowController.java
index 057485116..0c81e06a8 100644
--- a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/DocumentWorkflowController.java
+++ b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/DocumentWorkflowController.java
@@ -1,7 +1,20 @@
/*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
+ * Copyright (C) 2021 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.ui.contentsections.documents;
diff --git a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/FolderNotFound.java b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/FolderNotFound.java
index 72732370a..3a89bd798 100644
--- a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/FolderNotFound.java
+++ b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/FolderNotFound.java
@@ -1,7 +1,20 @@
/*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
+ * Copyright (C) 2021 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.ui.contentsections.documents;
diff --git a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/InternalLinkDetailsModel.java b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/InternalLinkDetailsModel.java
index 297e565d3..d19abc6dc 100644
--- a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/InternalLinkDetailsModel.java
+++ b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/InternalLinkDetailsModel.java
@@ -1,7 +1,20 @@
/*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
+ * Copyright (C) 2021 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.ui.contentsections.documents;
diff --git a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/ItemAttachmentDto.java b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/ItemAttachmentDto.java
index bd605e02e..d6ecf3990 100644
--- a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/ItemAttachmentDto.java
+++ b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/ItemAttachmentDto.java
@@ -1,7 +1,20 @@
/*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
+ * Copyright (C) 2021 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.ui.contentsections.documents;
diff --git a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/LifecycleListEntry.java b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/LifecycleListEntry.java
index 38b57a16d..5263e1136 100644
--- a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/LifecycleListEntry.java
+++ b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/LifecycleListEntry.java
@@ -1,7 +1,20 @@
/*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
+ * Copyright (C) 2021 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.ui.contentsections.documents;
diff --git a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/MvcAuthoringKit.java b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/MvcAuthoringKit.java
index 10db767bc..9c0026825 100644
--- a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/MvcAuthoringKit.java
+++ b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/MvcAuthoringKit.java
@@ -1,7 +1,20 @@
/*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
+ * Copyright (C) 2021 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.ui.contentsections.documents;
diff --git a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/MvcAuthoringStep.java b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/MvcAuthoringStep.java
index 7f0bad00a..b3e433f77 100644
--- a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/MvcAuthoringStep.java
+++ b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/MvcAuthoringStep.java
@@ -1,7 +1,20 @@
/*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
+ * Copyright (C) 2021 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.ui.contentsections.documents;
diff --git a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/MvcDocumentCreateStep.java b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/MvcDocumentCreateStep.java
index cd0f7c402..55b89df1a 100644
--- a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/MvcDocumentCreateStep.java
+++ b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/MvcDocumentCreateStep.java
@@ -1,7 +1,20 @@
/*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
+ * Copyright (C) 2021 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.ui.contentsections.documents;
diff --git a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/PhaseListEntry.java b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/PhaseListEntry.java
index abe09a7d5..f8b1dc11e 100644
--- a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/PhaseListEntry.java
+++ b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/PhaseListEntry.java
@@ -1,7 +1,20 @@
/*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
+ * Copyright (C) 2021 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.ui.contentsections.documents;
diff --git a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/PublishStep.java b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/PublishStep.java
index dc8dac490..52f42b345 100644
--- a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/PublishStep.java
+++ b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/PublishStep.java
@@ -1,7 +1,20 @@
/*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
+ * Copyright (C) 2021 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.ui.contentsections.documents;
diff --git a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/PublishStepModel.java b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/PublishStepModel.java
index 8836a7fa6..c2ab1eba4 100644
--- a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/PublishStepModel.java
+++ b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/PublishStepModel.java
@@ -1,7 +1,20 @@
/*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
+ * Copyright (C) 2021 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.ui.contentsections.documents;
diff --git a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/RelatedInfoStep.java b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/RelatedInfoStep.java
index 0931c4839..9031ed1ba 100644
--- a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/RelatedInfoStep.java
+++ b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/RelatedInfoStep.java
@@ -1,7 +1,20 @@
/*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
+ * Copyright (C) 2021 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.ui.contentsections.documents;
diff --git a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/SelectedDocumentModel.java b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/SelectedDocumentModel.java
index c1fa5c17e..4028ac02a 100644
--- a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/SelectedDocumentModel.java
+++ b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/SelectedDocumentModel.java
@@ -1,7 +1,20 @@
/*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
+ * Copyright (C) 2021 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.ui.contentsections.documents;
diff --git a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/TaskListEntry.java b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/TaskListEntry.java
index 5638fa36d..ae550449a 100644
--- a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/TaskListEntry.java
+++ b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/TaskListEntry.java
@@ -1,7 +1,20 @@
/*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
+ * Copyright (C) 2021 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.ui.contentsections.documents;
diff --git a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/UnsupportedDocumentType.java b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/UnsupportedDocumentType.java
index 9196c521f..b92df2694 100644
--- a/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/UnsupportedDocumentType.java
+++ b/ccm-cms/src/main/java/org/librecms/ui/contentsections/documents/UnsupportedDocumentType.java
@@ -1,7 +1,20 @@
/*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
+ * Copyright (C) 2021 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.ui.contentsections.documents;