Class RootSectionsPublicationTree
- java.lang.Object
-
- org.nuxeo.ecm.platform.publisher.api.AbstractBasePublicationTree
-
- org.nuxeo.ecm.platform.publisher.impl.core.SectionPublicationTree
-
- org.nuxeo.ecm.platform.publisher.impl.core.RootSectionsPublicationTree
-
- All Implemented Interfaces:
Serializable
,PublicationNode
,PublicationTree
- Direct Known Subclasses:
RenditionPublicationCoreTree
public class RootSectionsPublicationTree extends SectionPublicationTree
- Author:
- Thomas Roger
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected DocumentModel
currentDocument
protected RootSectionFinder
rootFinder
protected boolean
useRootSections
-
Fields inherited from class org.nuxeo.ecm.platform.publisher.impl.core.SectionPublicationTree
CAN_ASK_FOR_PUBLISHING, DEFAULT_ROOT_PATH, treeRoot
-
Fields inherited from class org.nuxeo.ecm.platform.publisher.api.AbstractBasePublicationTree
configName, coreSession, factory, ICON_COLLAPSED_KEY, ICON_EXPANDED_KEY, iconCollapsed, iconExpanded, ROOT_PATH_KEY, rootNode, rootPath, TITLE_KEY, treeTitle
-
-
Constructor Summary
Constructors Constructor Description RootSectionsPublicationTree()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<PublicationNode>
getChildrenNodes()
PublicationNode
getNodeByPath(String path)
void
initTree(CoreSession coreSession, Map<String,String> parameters, PublishedDocumentFactory factory, String configName, String title)
void
setCurrentDocument(DocumentModel currentDocument)
Sets the current document on which the tree will be based, if needed.-
Methods inherited from class org.nuxeo.ecm.platform.publisher.impl.core.SectionPublicationTree
accept, canPublishTo, canUnpublish, getDefaultFactory, getDefaultRootPath, getExistingPublishedDocument, isPublicationNode, publish, publish, release, unpublish, unpublish, wrapToPublicationNode, wrapToPublishedDocument
-
Methods inherited from class org.nuxeo.ecm.platform.publisher.api.AbstractBasePublicationTree
canManagePublishing, getChildrenDocuments, getConfigName, getIconCollapsed, getIconExpanded, getName, getNodeType, getParent, getPath, getPublishedDocumentInNode, getPublishedDocumentsFor, getTitle, getTree, getTreeTitle, getTreeType, getType, hasValidationTask, validatorPublishDocument, validatorRejectPublication
-
-
-
-
Field Detail
-
currentDocument
protected DocumentModel currentDocument
-
rootFinder
protected RootSectionFinder rootFinder
-
useRootSections
protected boolean useRootSections
-
-
Method Detail
-
initTree
public void initTree(CoreSession coreSession, Map<String,String> parameters, PublishedDocumentFactory factory, String configName, String title)
- Specified by:
initTree
in interfacePublicationTree
- Overrides:
initTree
in classSectionPublicationTree
-
getChildrenNodes
public List<PublicationNode> getChildrenNodes()
- Specified by:
getChildrenNodes
in interfacePublicationNode
- Overrides:
getChildrenNodes
in classAbstractBasePublicationTree
-
setCurrentDocument
public void setCurrentDocument(DocumentModel currentDocument)
Description copied from interface:PublicationTree
Sets the current document on which the tree will be based, if needed.Can be useful for some implementations that need to know on which document the user is.
- Specified by:
setCurrentDocument
in interfacePublicationTree
- Overrides:
setCurrentDocument
in classAbstractBasePublicationTree
- Parameters:
currentDocument
- the current document
-
getNodeByPath
public PublicationNode getNodeByPath(String path)
- Specified by:
getNodeByPath
in interfacePublicationTree
- Overrides:
getNodeByPath
in classSectionPublicationTree
-
-