Interface PublishedDocumentFactory

    • Method Detail

      • getValidatorsFor

        String[] getValidatorsFor​(DocumentModel dm)
        Computes the list of publishing validators given the document model of the document just published. The string can be prefixed with 'group:' or 'user:'. If there is no prefix (no : in the string) it is assumed to be a user.
        Parameters:
        dm - a Nuxeo Core document model. (the document that just has been published)
        Returns:
        a list of principal names.
      • getValidatorsRule

        ValidatorsRule getValidatorsRule()
        Returns the registered section validators rule.
        Returns:
        a validators rule
      • 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
      • hasValidationTask

        boolean hasValidationTask​(PublishedDocument publishedDocument)
      • canManagePublishing

        boolean canManagePublishing​(PublishedDocument publishedDocument)