Fixed license headers and added JavaDoc

pull/10/head
Jens Pelzetter 2021-03-31 20:56:41 +02:00
parent 0c7d393afe
commit 834070ca4a
35 changed files with 846 additions and 146 deletions

View File

@ -18,27 +18,21 @@ import com.arsdigita.cms.CMS;
import org.librecms.contentsection.ContentType; import org.librecms.contentsection.ContentType;
import com.arsdigita.cms.dispatcher.Utilities;
import com.arsdigita.cms.ui.ContentSectionRequestLocal; import com.arsdigita.cms.ui.ContentSectionRequestLocal;
import com.arsdigita.globalization.GlobalizedMessage; import com.arsdigita.globalization.GlobalizedMessage;
import com.arsdigita.ui.admin.GlobalizationUtil;
import org.libreccm.security.Party;
import org.libreccm.security.Role; import org.libreccm.security.Role;
import com.arsdigita.util.LockableImpl; import com.arsdigita.util.LockableImpl;
import java.awt.image.Kernel;
import java.util.List; import java.util.List;
import org.libreccm.cdi.utils.CdiUtil; import org.libreccm.cdi.utils.CdiUtil;
import org.libreccm.security.Permission;
import org.libreccm.security.PermissionChecker; import org.libreccm.security.PermissionChecker;
import org.libreccm.security.RoleRepository; import org.libreccm.security.RoleRepository;
import org.librecms.CmsConstants; import org.librecms.CmsConstants;
import org.librecms.contentsection.ContentSection; import org.librecms.contentsection.ContentSection;
import org.librecms.contentsection.privileges.AdminPrivileges; import org.librecms.contentsection.privileges.AdminPrivileges;
import sun.security.util.SecurityConstants;
import java.util.Iterator; import java.util.Iterator;

View File

@ -1,11 +1,25 @@
/* /*
* To change this license header, choose License Headers in Project Properties. * Copyright (C) 2021 LibreCCM Foundation.
* To change this template file, choose Tools | Templates *
* and open the template in the editor. * 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; package org.librecms.ui.contentsections.documents;
import org.libreccm.l10n.GlobalizationHelper; import org.libreccm.l10n.GlobalizationHelper;
import org.libreccm.l10n.LocalizedString;
import org.librecms.contentsection.AttachmentList; import org.librecms.contentsection.AttachmentList;
import java.util.Collections; import java.util.Collections;
@ -21,26 +35,65 @@ import javax.inject.Inject;
import javax.inject.Named; import javax.inject.Named;
/** /**
* Model used by the attachment list details view.
*
* @see RelatedInfoStep
* *
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a> * @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
*/ */
@RequestScoped @RequestScoped
@Named("CmsAttachmentListDetailsModel") @Named("CmsAttachmentListDetailsModel")
public class AttachmentListDetailsModel { 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 @Inject
private GlobalizationHelper globalizationHelper; private GlobalizationHelper globalizationHelper;
/**
* UUID of the {@link AttachmentList} shown.
*/
private String uuid; private String uuid;
/**
* Name of the {@link AttachmentList} shown.
*/
private String name; 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<String, String> titles; private Map<String, String> 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<String, String> descriptions; private Map<String, String> 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<String> unusedTitleLocales; private List<String> 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<String> unusedDescriptionLocales; private List<String> unusedDescriptionLocales;
public String getUuid() { public String getUuid() {
@ -67,6 +120,16 @@ public class AttachmentListDetailsModel {
return Collections.unmodifiableList(unusedDescriptionLocales); 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) { protected void setAttachmentList(final AttachmentList list) {
Objects.requireNonNull(list); Objects.requireNonNull(list);
uuid = list.getUuid(); uuid = list.getUuid();
@ -93,7 +156,7 @@ public class AttachmentListDetailsModel {
entry -> entry.getValue() entry -> entry.getValue()
) )
); );
final Set<Locale> titleLocales = list final Set<Locale> titleLocales = list
.getTitle() .getTitle()
.getAvailableLocales(); .getAvailableLocales();
@ -103,7 +166,7 @@ public class AttachmentListDetailsModel {
.filter(locale -> !titleLocales.contains(locale)) .filter(locale -> !titleLocales.contains(locale))
.map(Locale::toString) .map(Locale::toString)
.collect(Collectors.toList()); .collect(Collectors.toList());
final Set<Locale> descriptionLocales = list final Set<Locale> descriptionLocales = list
.getDescription() .getDescription()
.getAvailableLocales(); .getAvailableLocales();

View File

@ -1,32 +1,76 @@
/* /*
* To change this license header, choose License Headers in Project Properties. * Copyright (C) 2021 LibreCCM Foundation.
* To change this template file, choose Tools | Templates *
* and open the template in the editor. * 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; 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.ArrayList;
import java.util.Collections; import java.util.Collections;
import java.util.List; 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 <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a> * @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
*/ */
public class AttachmentListDto { public class AttachmentListDto {
/**
* The ID of the list.
*/
private long listId; private long listId;
/**
* The UUID of the list.
*/
private String uuid; private String uuid;
/**
* The name of the list.
*/
private String name; private String name;
/**
* The order value of the list.
*/
private long order; private long order;
/**
* The title of the list. This value is determined using
* {@link GlobalizationHelper#getValueFromLocalizedString(org.libreccm.l10n.LocalizedString)}.
*/
private String title; private String title;
/**
* The description of the list. This value is determined using
* {@link GlobalizationHelper#getValueFromLocalizedString(org.libreccm.l10n.LocalizedString)}.
*/
private String description; private String description;
/**
* The @link{ItemAttachment}s associated with the {@link AttachmentList}.
*/
private List<ItemAttachmentDto> attachments; private List<ItemAttachmentDto> attachments;
public long getListId() { public long getListId() {
@ -84,7 +128,5 @@ public class AttachmentListDto {
public void setAttachments(final List<ItemAttachmentDto> attachments) { public void setAttachments(final List<ItemAttachmentDto> attachments) {
this.attachments = new ArrayList<>(attachments); this.attachments = new ArrayList<>(attachments);
} }
} }

View File

@ -1,20 +1,46 @@
/* /*
* To change this license header, choose License Headers in Project Properties. * Copyright (C) 2021 LibreCCM Foundation.
* To change this template file, choose Tools | Templates *
* and open the template in the editor. * 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; 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 <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a> * @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
*/ */
public class AuthoringStepListEntry { public class AuthoringStepListEntry {
/**
* The label of the authoring step.
*/
private String label; private String label;
/**
* The description of the authoring step.
*/
private String description; private String description;
/**
* The path fragment of the authoring step.
*/
private String pathFragment; private String pathFragment;
public String getLabel() { public String getLabel() {

View File

@ -1,7 +1,20 @@
/* /*
* To change this license header, choose License Headers in Project Properties. * Copyright (C) 2021 LibreCCM Foundation.
* To change this template file, choose Tools | Templates *
* and open the template in the editor. * 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; package org.librecms.ui.contentsections.documents;

View File

@ -1,7 +1,20 @@
/* /*
* To change this license header, choose License Headers in Project Properties. * Copyright (C) 2021 LibreCCM Foundation.
* To change this template file, choose Tools | Templates *
* and open the template in the editor. * 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; package org.librecms.ui.contentsections.documents;
@ -13,8 +26,14 @@ import java.lang.annotation.Target;
import javax.inject.Qualifier; 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
*
* <code>
* /@contentsections/{sectionIdentifier}/documents/{itemPath}/@authoringSteps/{authoringStepPathFragment}
* </code>
*
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a> * @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
*/ */
@Qualifier @Qualifier
@ -28,7 +47,7 @@ import javax.inject.Qualifier;
} }
) )
public @interface AuthoringStepPathFragment { public @interface AuthoringStepPathFragment {
String value(); String value();
} }

View File

@ -1,7 +1,20 @@
/* /*
* To change this license header, choose License Headers in Project Properties. * Copyright (C) 2021 LibreCCM Foundation.
* To change this template file, choose Tools | Templates *
* and open the template in the editor. * 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; package org.librecms.ui.contentsections.documents;
@ -9,7 +22,6 @@ import org.libreccm.api.Identifier;
import org.libreccm.api.IdentifierParser; import org.libreccm.api.IdentifierParser;
import org.libreccm.categorization.Category; import org.libreccm.categorization.Category;
import org.libreccm.categorization.CategoryManager; import org.libreccm.categorization.CategoryManager;
import org.libreccm.categorization.CategoryRepository;
import org.libreccm.categorization.Domain; import org.libreccm.categorization.Domain;
import org.libreccm.categorization.DomainOwnership; import org.libreccm.categorization.DomainOwnership;
import org.libreccm.categorization.ObjectNotAssignedToCategoryException; import org.libreccm.categorization.ObjectNotAssignedToCategoryException;
@ -37,6 +49,8 @@ import javax.ws.rs.Path;
import javax.ws.rs.PathParam; 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 <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a> * @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
*/ */
@ -52,9 +66,6 @@ public class CategorizationStep implements MvcAuthoringStep {
@Inject @Inject
private CategoryManager categoryManager; private CategoryManager categoryManager;
@Inject
private CategoryRepository categoryRepo;
@Inject @Inject
private IdentifierParser identifierParser; private IdentifierParser identifierParser;
@ -67,15 +78,27 @@ public class CategorizationStep implements MvcAuthoringStep {
@Inject @Inject
private Models models; private Models models;
/**
* The current content section.
*/
private ContentSection section; private ContentSection section;
/**
* The current document.
*/
private ContentItem document; private ContentItem document;
/**
* {@inheritDoc}
*/
@Override @Override
public Class<? extends ContentItem> supportedDocumentType() { public Class<? extends ContentItem> supportedDocumentType() {
return ContentItem.class; return ContentItem.class;
} }
/**
* {@inheritDoc}
*/
@Override @Override
public String getLabel() { public String getLabel() {
return globalizationHelper return globalizationHelper
@ -83,6 +106,9 @@ public class CategorizationStep implements MvcAuthoringStep {
.getText("authoringsteps.categorization.label"); .getText("authoringsteps.categorization.label");
} }
/**
* {@inheritDoc}
*/
@Override @Override
public String getDescription() { public String getDescription() {
return globalizationHelper return globalizationHelper
@ -90,58 +116,97 @@ public class CategorizationStep implements MvcAuthoringStep {
.getText("authoringsteps.categorization.description"); .getText("authoringsteps.categorization.description");
} }
/**
* {@inheritDoc}
*/
@Override @Override
public String getBundle() { public String getBundle() {
return DefaultAuthoringStepConstants.BUNDLE; return DefaultAuthoringStepConstants.BUNDLE;
} }
/**
* {@inheritDoc}
*/
@Override @Override
public ContentSection getContentSection() { public ContentSection getContentSection() {
return section; return section;
} }
/**
* {@inheritDoc}
*/
@Override @Override
public void setContentSection(final ContentSection section) { public void setContentSection(final ContentSection section) {
this.section = section; this.section = section;
} }
/**
* {@inheritDoc}
*/
@Override @Override
public String getContentSectionLabel() { public String getContentSectionLabel() {
return section.getLabel(); return section.getLabel();
} }
/**
* {@inheritDoc}
*/
@Override @Override
public String getContentSectionTitle() { public String getContentSectionTitle() {
return globalizationHelper return globalizationHelper
.getValueFromLocalizedString(section.getTitle()); .getValueFromLocalizedString(section.getTitle());
} }
/**
* {@inheritDoc}
*/
@Override @Override
public ContentItem getContentItem() { public ContentItem getContentItem() {
return document; return document;
} }
/**
* {@inheritDoc}
*/
@Override @Override
public void setContentItem(final ContentItem document) { public void setContentItem(final ContentItem document) {
this.document = document; this.document = document;
} }
/**
* {@inheritDoc}
*/
@Override @Override
public String getContentItemPath() { public String getContentItemPath() {
return itemManager.getItemPath(document); return itemManager.getItemPath(document);
} }
/**
* {@inheritDoc}
*/
@Override @Override
public String getContentItemTitle() { public String getContentItemTitle() {
return globalizationHelper return globalizationHelper
.getValueFromLocalizedString(document.getTitle()); .getValueFromLocalizedString(document.getTitle());
} }
/**
* {@inheritDoc}
*/
@Override @Override
public String showStep() { public String showStep() {
return "org/librecms/ui/documents/categorization.xhtml"; 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) @Transactional(Transactional.TxType.REQUIRED)
public List<CategorizationTree> getCategorizationTrees() { public List<CategorizationTree> getCategorizationTrees() {
return section return section
@ -152,6 +217,15 @@ public class CategorizationStep implements MvcAuthoringStep {
.collect(Collectors.toList()); .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 @POST
@Path("/{domainIdentifier}") @Path("/{domainIdentifier}")
@Transactional(Transactional.TxType.REQUIRED) @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( private void updateAssignedCategories(
final Category category, final Category category,
final Set<String> assignedCategoriesParam final Set<String> 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) { private CategorizationTree buildCategorizationTree(final Domain domain) {
final CategorizationTree tree = new CategorizationTree(); final CategorizationTree tree = new CategorizationTree();
tree.setDomainDescription( tree.setDomainDescription(
@ -255,6 +351,17 @@ public class CategorizationStep implements MvcAuthoringStep {
return tree; 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<String> buildAssignedCategoriesList( private List<String> buildAssignedCategoriesList(
final CategorizationTreeNode node, final String parentPath final CategorizationTreeNode node, final String parentPath
) { ) {
@ -282,6 +389,15 @@ public class CategorizationStep implements MvcAuthoringStep {
return assigned; 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( private CategorizationTreeNode buildCategorizationTreeNode(
final Category category final Category category
) { ) {

View File

@ -1,28 +1,70 @@
/* /*
* To change this license header, choose License Headers in Project Properties. * Copyright (C) 2021 LibreCCM Foundation.
* To change this template file, choose Tools | Templates *
* and open the template in the editor. * 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; package org.librecms.ui.contentsections.documents;
import org.libreccm.categorization.Domain;
import org.libreccm.l10n.GlobalizationHelper;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collections; import java.util.Collections;
import java.util.List; 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 <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a> * @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
*/ */
public class CategorizationTree { public class CategorizationTree {
/**
* The domain key of the category system.
*
* @see Domain#domainKey
*/
private String 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; 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; private String domainDescription;
/**
* The node for the root category of the domain.
*/
private CategorizationTreeNode root; private CategorizationTreeNode root;
/**
* A list of the paths of the categories assigned to the current content
* item.
*/
private List<String> assignedCategories; private List<String> assignedCategories;
public String getDomainKey() { public String getDomainKey() {

View File

@ -1,36 +1,85 @@
/* /*
* To change this license header, choose License Headers in Project Properties. * Copyright (C) 2021 LibreCCM Foundation.
* To change this template file, choose Tools | Templates *
* and open the template in the editor. * 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; package org.librecms.ui.contentsections.documents;
import org.libreccm.categorization.Category;
import org.libreccm.l10n.GlobalizationHelper;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
/** /**
* A node of a {@link CategorizationTree}.
* *
* @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a> * @author <a href="mailto:jens.pelzetter@googlemail.com">Jens Pelzetter</a>
*/ */
public class CategorizationTreeNode { public class CategorizationTreeNode {
/**
* The ID of the {@link Category} represented by the node.
*/
private long categoryId; private long categoryId;
/**
* The UUID of the {@link Category} represented by the node.
*/
private String categoryUuid; private String categoryUuid;
/**
* The unique ID of the {@link Category} represented by the node.
*/
private String uniqueId; private String uniqueId;
/**
* The name of the {@link Category} represented by the node.
*/
private String categoryName; 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; 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; private String description;
/**
* Is the category assigned to the current content item?
*/
private boolean assigned; private boolean assigned;
/**
* Is any subcategory of the category represented by this node assigned to
* the current content item?
*/
private boolean subCategoryAssigned; private boolean subCategoryAssigned;
/**
* Nodes for the subcategories of the category represented by this node.
*/
private List<CategorizationTreeNode> subCategories; private List<CategorizationTreeNode> subCategories;
public long getCategoryId() { public long getCategoryId() {
@ -45,7 +94,7 @@ public class CategorizationTreeNode {
return categoryUuid; return categoryUuid;
} }
public void setCategoryUuid(final String categoryUuid) { public void setCategoryUuid(final String categoryUuid) {
this.categoryUuid = categoryUuid; this.categoryUuid = categoryUuid;
} }
@ -53,7 +102,7 @@ public class CategorizationTreeNode {
return uniqueId; return uniqueId;
} }
public void setUniqueId(final String uniqueId) { public void setUniqueId(final String uniqueId) {
this.uniqueId = uniqueId; this.uniqueId = uniqueId;
} }
@ -61,7 +110,7 @@ public class CategorizationTreeNode {
return categoryName; return categoryName;
} }
public void setCategoryName(final String categoryName) { public void setCategoryName(final String categoryName) {
this.categoryName = categoryName; this.categoryName = categoryName;
} }
@ -69,7 +118,7 @@ public class CategorizationTreeNode {
return title; return title;
} }
public void setTitle(final String title) { public void setTitle(final String title) {
this.title = title; this.title = title;
} }
@ -77,7 +126,7 @@ public class CategorizationTreeNode {
return description; return description;
} }
public void setDescription(final String description) { public void setDescription(final String description) {
this.description = description; this.description = description;
} }
@ -106,7 +155,5 @@ public class CategorizationTreeNode {
) { ) {
this.subCategories = new ArrayList<>(subCategories); this.subCategories = new ArrayList<>(subCategories);
} }
} }

View File

@ -1,7 +1,20 @@
/* /*
* To change this license header, choose License Headers in Project Properties. * Copyright (C) 2021 LibreCCM Foundation.
* To change this template file, choose Tools | Templates *
* and open the template in the editor. * 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; package org.librecms.ui.contentsections.documents;

View File

@ -1,7 +1,20 @@
/* /*
* To change this license header, choose License Headers in Project Properties. * Copyright (C) 2021 LibreCCM Foundation.
* To change this template file, choose Tools | Templates *
* and open the template in the editor. * 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; package org.librecms.ui.contentsections.documents;

View File

@ -1,7 +1,20 @@
/* /*
* To change this license header, choose License Headers in Project Properties. * Copyright (C) 2021 LibreCCM Foundation.
* To change this template file, choose Tools | Templates *
* and open the template in the editor. * 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; package org.librecms.ui.contentsections.documents;

View File

@ -1,7 +1,20 @@
/* /*
* To change this license header, choose License Headers in Project Properties. * Copyright (C) 2021 LibreCCM Foundation.
* To change this template file, choose Tools | Templates *
* and open the template in the editor. * 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; package org.librecms.ui.contentsections.documents;

View File

@ -1,7 +1,20 @@
/* /*
* To change this license header, choose License Headers in Project Properties. * Copyright (C) 2021 LibreCCM Foundation.
* To change this template file, choose Tools | Templates *
* and open the template in the editor. * 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; package org.librecms.ui.contentsections.documents;

View File

@ -1,7 +1,20 @@
/* /*
* To change this license header, choose License Headers in Project Properties. * Copyright (C) 2021 LibreCCM Foundation.
* To change this template file, choose Tools | Templates *
* and open the template in the editor. * 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; package org.librecms.ui.contentsections.documents;

View File

@ -1,7 +1,20 @@
/* /*
* To change this license header, choose License Headers in Project Properties. * Copyright (C) 2021 LibreCCM Foundation.
* To change this template file, choose Tools | Templates *
* and open the template in the editor. * 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; package org.librecms.ui.contentsections.documents;

View File

@ -1,7 +1,20 @@
/* /*
* To change this license header, choose License Headers in Project Properties. * Copyright (C) 2021 LibreCCM Foundation.
* To change this template file, choose Tools | Templates *
* and open the template in the editor. * 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; package org.librecms.ui.contentsections.documents;

View File

@ -1,7 +1,20 @@
/* /*
* To change this license header, choose License Headers in Project Properties. * Copyright (C) 2021 LibreCCM Foundation.
* To change this template file, choose Tools | Templates *
* and open the template in the editor. * 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; package org.librecms.ui.contentsections.documents;

View File

@ -1,7 +1,20 @@
/* /*
* To change this license header, choose License Headers in Project Properties. * Copyright (C) 2021 LibreCCM Foundation.
* To change this template file, choose Tools | Templates *
* and open the template in the editor. * 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; package org.librecms.ui.contentsections.documents;

View File

@ -1,7 +1,20 @@
/* /*
* To change this license header, choose License Headers in Project Properties. * Copyright (C) 2021 LibreCCM Foundation.
* To change this template file, choose Tools | Templates *
* and open the template in the editor. * 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; package org.librecms.ui.contentsections.documents;

View File

@ -1,7 +1,20 @@
/* /*
* To change this license header, choose License Headers in Project Properties. * Copyright (C) 2021 LibreCCM Foundation.
* To change this template file, choose Tools | Templates *
* and open the template in the editor. * 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; package org.librecms.ui.contentsections.documents;

View File

@ -1,7 +1,20 @@
/* /*
* To change this license header, choose License Headers in Project Properties. * Copyright (C) 2021 LibreCCM Foundation.
* To change this template file, choose Tools | Templates *
* and open the template in the editor. * 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; package org.librecms.ui.contentsections.documents;

View File

@ -1,7 +1,20 @@
/* /*
* To change this license header, choose License Headers in Project Properties. * Copyright (C) 2021 LibreCCM Foundation.
* To change this template file, choose Tools | Templates *
* and open the template in the editor. * 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; package org.librecms.ui.contentsections.documents;

View File

@ -1,7 +1,20 @@
/* /*
* To change this license header, choose License Headers in Project Properties. * Copyright (C) 2021 LibreCCM Foundation.
* To change this template file, choose Tools | Templates *
* and open the template in the editor. * 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; package org.librecms.ui.contentsections.documents;

View File

@ -1,7 +1,20 @@
/* /*
* To change this license header, choose License Headers in Project Properties. * Copyright (C) 2021 LibreCCM Foundation.
* To change this template file, choose Tools | Templates *
* and open the template in the editor. * 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; package org.librecms.ui.contentsections.documents;

View File

@ -1,7 +1,20 @@
/* /*
* To change this license header, choose License Headers in Project Properties. * Copyright (C) 2021 LibreCCM Foundation.
* To change this template file, choose Tools | Templates *
* and open the template in the editor. * 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; package org.librecms.ui.contentsections.documents;

View File

@ -1,7 +1,20 @@
/* /*
* To change this license header, choose License Headers in Project Properties. * Copyright (C) 2021 LibreCCM Foundation.
* To change this template file, choose Tools | Templates *
* and open the template in the editor. * 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; package org.librecms.ui.contentsections.documents;

View File

@ -1,7 +1,20 @@
/* /*
* To change this license header, choose License Headers in Project Properties. * Copyright (C) 2021 LibreCCM Foundation.
* To change this template file, choose Tools | Templates *
* and open the template in the editor. * 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; package org.librecms.ui.contentsections.documents;

View File

@ -1,7 +1,20 @@
/* /*
* To change this license header, choose License Headers in Project Properties. * Copyright (C) 2021 LibreCCM Foundation.
* To change this template file, choose Tools | Templates *
* and open the template in the editor. * 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; package org.librecms.ui.contentsections.documents;

View File

@ -1,7 +1,20 @@
/* /*
* To change this license header, choose License Headers in Project Properties. * Copyright (C) 2021 LibreCCM Foundation.
* To change this template file, choose Tools | Templates *
* and open the template in the editor. * 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; package org.librecms.ui.contentsections.documents;

View File

@ -1,7 +1,20 @@
/* /*
* To change this license header, choose License Headers in Project Properties. * Copyright (C) 2021 LibreCCM Foundation.
* To change this template file, choose Tools | Templates *
* and open the template in the editor. * 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; package org.librecms.ui.contentsections.documents;

View File

@ -1,7 +1,20 @@
/* /*
* To change this license header, choose License Headers in Project Properties. * Copyright (C) 2021 LibreCCM Foundation.
* To change this template file, choose Tools | Templates *
* and open the template in the editor. * 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; package org.librecms.ui.contentsections.documents;

View File

@ -1,7 +1,20 @@
/* /*
* To change this license header, choose License Headers in Project Properties. * Copyright (C) 2021 LibreCCM Foundation.
* To change this template file, choose Tools | Templates *
* and open the template in the editor. * 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; package org.librecms.ui.contentsections.documents;

View File

@ -1,7 +1,20 @@
/* /*
* To change this license header, choose License Headers in Project Properties. * Copyright (C) 2021 LibreCCM Foundation.
* To change this template file, choose Tools | Templates *
* and open the template in the editor. * 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; package org.librecms.ui.contentsections.documents;

View File

@ -1,7 +1,20 @@
/* /*
* To change this license header, choose License Headers in Project Properties. * Copyright (C) 2021 LibreCCM Foundation.
* To change this template file, choose Tools | Templates *
* and open the template in the editor. * 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; package org.librecms.ui.contentsections.documents;