public class RootSectionsPublicationTree extends SectionPublicationTree
Modifier and Type | Field and Description |
---|---|
protected DocumentModel |
currentDocument |
protected RootSectionFinder |
rootFinder |
protected boolean |
useRootSections |
CAN_ASK_FOR_PUBLISHING, DEFAULT_ROOT_PATH, sessionId, treeRoot
configName, coreSession, factory, ICON_COLLAPSED_KEY, ICON_EXPANDED_KEY, iconCollapsed, iconExpanded, ROOT_PATH_KEY, rootNode, rootPath, TITLE_KEY, treeTitle
Constructor and Description |
---|
RootSectionsPublicationTree() |
Modifier and Type | Method and 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.
|
accept, canPublishTo, canUnpublish, getCoreSession, getDefaultFactory, getDefaultRootPath, getExistingPublishedDocument, isPublicationNode, publish, publish, release, unpublish, unpublish, wrapToPublicationNode, wrapToPublishedDocument
canManagePublishing, getChildrenDocuments, getConfigName, getIconCollapsed, getIconExpanded, getName, getNodeType, getParent, getPath, getPublishedDocumentInNode, getTitle, getTree, getTreeTitle, getTreeType, getType, hasValidationTask, validatorPublishDocument, validatorRejectPublication
protected DocumentModel currentDocument
protected RootSectionFinder rootFinder
protected boolean useRootSections
public RootSectionsPublicationTree()
public void initTree(CoreSession coreSession, Map<String,String> parameters, PublishedDocumentFactory factory, String configName, String title)
initTree
in interface PublicationTree
initTree
in class SectionPublicationTree
public List<PublicationNode> getChildrenNodes()
getChildrenNodes
in interface PublicationNode
getChildrenNodes
in class AbstractBasePublicationTree
public void setCurrentDocument(DocumentModel currentDocument)
PublicationTree
Can be useful for some implementations that need to know on which document the user is.
setCurrentDocument
in interface PublicationTree
setCurrentDocument
in class AbstractBasePublicationTree
currentDocument
- the current documentpublic PublicationNode getNodeByPath(String path)
getNodeByPath
in interface PublicationTree
getNodeByPath
in class SectionPublicationTree
Copyright © 2018 Nuxeo. All rights reserved.