Interface PublicationTree

    • Method Detail

      • getConfigName

        String getConfigName()
      • getTreeType

        String getTreeType()
      • getTreeTitle

        String getTreeTitle()
      • setCurrentDocument

        void setCurrentDocument​(DocumentModel currentDocument)
        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

        void validatorPublishDocument​(PublishedDocument publishedDocument,
                                      String comment)
        A validator (the current user) approves the publication.
        Parameters:
        publishedDocument - the current published document that will be approved
      • validatorRejectPublication

        void validatorRejectPublication​(PublishedDocument publishedDocument,
                                        String comment)
        A validator (the current user) rejects the publication.
        Parameters:
        publishedDocument - the currently published document that will be rejected
      • canPublishTo

        boolean canPublishTo​(PublicationNode publicationNode)
        Returns true if the current user can publish to the specified publicationNode, false otherwise.
        Returns:
        true if the current user can publish to the specified publicationNode, false otherwise.
      • canUnpublish

        boolean canUnpublish​(PublishedDocument publishedDocument)
        Returns true if the current user can unpublish the given publishedDocument, false otherwise.
        Returns:
        true if the current user can unpublish the given publishedDocument, false otherwise.
      • hasValidationTask

        boolean hasValidationTask​(PublishedDocument publishedDocument)
      • canManagePublishing

        boolean canManagePublishing​(PublishedDocument publishedDocument)
        Returns true if the current user can manage the publishing of the given publishedDocument, ie approve or reject the document.
      • isPublicationNode

        boolean isPublicationNode​(DocumentModel documentModel)
        Returns true if the given documentModel is a PublicationNode of the current tree, false otherwise.
      • wrapToPublicationNode

        PublicationNode wrapToPublicationNode​(DocumentModel documentModel)
        Returns a PublicationNode for the current tree built on the given documentModel.