Class AbstractBasePublicationTree
java.lang.Object
org.nuxeo.ecm.platform.publisher.api.AbstractBasePublicationTree
- All Implemented Interfaces:
Serializable,PublicationNode,PublicationTree
- Direct Known Subclasses:
SectionPublicationTree
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected CoreSessionprotected PublishedDocumentFactorystatic final Stringstatic final Stringprotected Stringprotected Stringstatic final Stringprotected PublicationNodeprotected Stringstatic final Stringprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract booleanaccept(PublishedDocument publishedDocument) booleancanManagePublishing(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.protected abstract PublishedDocumentFactoryprotected abstract StringgetName()getPath()getPublishedDocumentsFor(String docId) Returns only the published documents for the givendoc.getTitle()getTree()getType()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) voidsetCurrentDocument(DocumentModel currentDocument) Sets the current document on which the tree will be based, if needed.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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.nuxeo.ecm.platform.publisher.api.PublicationTree
getExistingPublishedDocument, getNodeByPath, release, unpublish, unpublish
-
Field Details
-
ROOT_PATH_KEY
- See Also:
-
ICON_EXPANDED_KEY
- See Also:
-
ICON_COLLAPSED_KEY
- See Also:
-
TITLE_KEY
- See Also:
-
rootNode
-
factory
-
coreSession
-
configName
-
rootPath
-
treeTitle
-
iconCollapsed
-
iconExpanded
-
-
Constructor Details
-
AbstractBasePublicationTree
public AbstractBasePublicationTree()
-
-
Method Details
-
getDefaultRootPath
-
getDefaultFactory
-
initTree
public void initTree(CoreSession coreSession, Map<String, String> parameters, PublishedDocumentFactory factory, String configName, String title) - Specified by:
initTreein interfacePublicationTree
-
getConfigName
- Specified by:
getConfigNamein interfacePublicationTree
-
getNodeType
- Specified by:
getNodeTypein interfacePublicationNode
-
getType
- Specified by:
getTypein interfacePublicationNode
-
getTreeType
- Specified by:
getTreeTypein interfacePublicationTree
-
getTreeTitle
- Specified by:
getTreeTitlein interfacePublicationTree
-
getPublishedDocumentInNode
- Specified by:
getPublishedDocumentInNodein interfacePublicationTree
-
getPublishedDocumentsFor
Description copied from interface:PublicationNodeReturns only the published documents for the givendoc.- Specified by:
getPublishedDocumentsForin interfacePublicationNode
-
publish
- Specified by:
publishin interfacePublicationTree
-
publish
public PublishedDocument publish(DocumentModel doc, PublicationNode targetNode, Map<String, String> params) - Specified by:
publishin interfacePublicationTree
-
getTitle
- Specified by:
getTitlein interfacePublicationNode
-
getName
- Specified by:
getNamein interfacePublicationNode
-
getTree
- Specified by:
getTreein interfacePublicationNode
-
getParent
- Specified by:
getParentin interfacePublicationNode
-
getChildrenNodes
- Specified by:
getChildrenNodesin interfacePublicationNode
-
getChildrenDocuments
- Specified by:
getChildrenDocumentsin interfacePublicationNode
-
getPath
- Specified by:
getPathin interfacePublicationNode
-
setCurrentDocument
Description copied from interface:PublicationTreeSets 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:
setCurrentDocumentin interfacePublicationTree- Parameters:
currentDocument- the current document
-
getIconExpanded
- Specified by:
getIconExpandedin interfacePublicationTree
-
getIconCollapsed
- Specified by:
getIconCollapsedin interfacePublicationTree
-
validatorPublishDocument
Description copied from interface:PublicationTreeA validator (the current user) approves the publication.- Specified by:
validatorPublishDocumentin interfacePublicationTree- Parameters:
publishedDocument- the current published document that will be approved
-
validatorRejectPublication
Description copied from interface:PublicationTreeA validator (the current user) rejects the publication.- Specified by:
validatorRejectPublicationin interfacePublicationTree- Parameters:
publishedDocument- the currently published document that will be rejected
-
canPublishTo
Description copied from interface:PublicationTreeReturnstrueif the current user can publish to the specified publicationNode,falseotherwise.- Specified by:
canPublishToin interfacePublicationTree- Returns:
trueif the current user can publish to the specified publicationNode,falseotherwise.
-
canUnpublish
Description copied from interface:PublicationTreeReturnstrueif the current user can unpublish the given publishedDocument,falseotherwise.- Specified by:
canUnpublishin interfacePublicationTree- Returns:
trueif the current user can unpublish the given publishedDocument,falseotherwise.
-
hasValidationTask
- Specified by:
hasValidationTaskin interfacePublicationTree
-
canManagePublishing
Description copied from interface:PublicationTreeReturnstrueif the current user can manage the publishing of the given publishedDocument, ie approve or reject the document.- Specified by:
canManagePublishingin interfacePublicationTree
-
wrapToPublishedDocument
- Specified by:
wrapToPublishedDocumentin interfacePublicationTree
-
isPublicationNode
Description copied from interface:PublicationTreeReturnstrueif the givendocumentModelis a PublicationNode of the current tree,falseotherwise.- Specified by:
isPublicationNodein interfacePublicationTree
-
wrapToPublicationNode
Description copied from interface:PublicationTreeReturns a PublicationNode for the current tree built on the givendocumentModel.- Specified by:
wrapToPublicationNodein interfacePublicationTree
-
accept
-