Interface PublicationTree
- All Superinterfaces:
PublicationNode,Serializable
- All Known Implementing Classes:
AbstractBasePublicationTree,RenditionPublicationCoreTree,RootSectionsPublicationTree,SectionPublicationTree
Interface for the publication tree. A Publication Tree is a generic view on a set of PublicationNode.
- Author:
- tiry
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanManagePublishing(PublishedDocument publishedDocument) Returnstrueif the current user can manage the publishing of the given publishedDocument, ie approve or reject the document.booleancanPublishTo(PublicationNode publicationNode) Returnstrueif the current user can publish to the specified publicationNode,falseotherwise.booleancanUnpublish(PublishedDocument publishedDocument) Returnstrueif the current user can unpublish the given publishedDocument,falseotherwise.getNodeByPath(String path) booleanhasValidationTask(PublishedDocument publishedDocument) voidinitTree(CoreSession coreSession, Map<String, String> parameters, PublishedDocumentFactory factory, String configName, String title) booleanisPublicationNode(DocumentModel documentModel) Returnstrueif the givendocumentModelis a PublicationNode of the current tree,falseotherwise.publish(DocumentModel doc, PublicationNode targetNode) publish(DocumentModel doc, PublicationNode targetNode, Map<String, String> params) voidrelease()voidsetCurrentDocument(DocumentModel currentDocument) Sets the current document on which the tree will be based, if needed.voidunpublish(DocumentModel doc, PublicationNode targetNode) voidunpublish(PublishedDocument publishedDocument) voidvalidatorPublishDocument(PublishedDocument publishedDocument, String comment) A validator (the current user) approves the publication.voidvalidatorRejectPublication(PublishedDocument publishedDocument, String comment) A validator (the current user) rejects the publication.wrapToPublicationNode(DocumentModel documentModel) Returns a PublicationNode for the current tree built on the givendocumentModel.wrapToPublishedDocument(DocumentModel documentModel) Methods inherited from interface org.nuxeo.ecm.platform.publisher.api.PublicationNode
getChildrenDocuments, getChildrenNodes, getName, getNodeType, getParent, getPath, getPublishedDocumentsFor, getTitle, getTree, getType
-
Method Details
-
getNodeByPath
-
publish
-
publish
-
unpublish
-
unpublish
-
getExistingPublishedDocument
-
getPublishedDocumentInNode
-
getConfigName
String getConfigName() -
getTreeType
String getTreeType() -
getTreeTitle
String getTreeTitle() -
initTree
void initTree(CoreSession coreSession, Map<String, String> parameters, PublishedDocumentFactory factory, String configName, String title) -
setCurrentDocument
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.
- Parameters:
currentDocument- the current document
-
release
void release() -
getIconExpanded
String getIconExpanded() -
getIconCollapsed
String getIconCollapsed() -
validatorPublishDocument
A validator (the current user) approves the publication.- Parameters:
publishedDocument- the current published document that will be approved
-
validatorRejectPublication
A validator (the current user) rejects the publication.- Parameters:
publishedDocument- the currently published document that will be rejected
-
canPublishTo
Returnstrueif the current user can publish to the specified publicationNode,falseotherwise.- Returns:
trueif the current user can publish to the specified publicationNode,falseotherwise.
-
canUnpublish
Returnstrueif the current user can unpublish the given publishedDocument,falseotherwise.- Returns:
trueif the current user can unpublish the given publishedDocument,falseotherwise.
-
hasValidationTask
-
canManagePublishing
Returnstrueif the current user can manage the publishing of the given publishedDocument, ie approve or reject the document. -
wrapToPublishedDocument
-
isPublicationNode
Returnstrueif the givendocumentModelis a PublicationNode of the current tree,falseotherwise. -
wrapToPublicationNode
Returns a PublicationNode for the current tree built on the givendocumentModel.
-