Interface PublishedDocumentFactory
- All Known Implementing Classes:
AbstractBasePublishedDocumentFactory,CoreProxyFactory,CoreProxyWithWorkflowFactory,FolderishProxyFactory,RenditionPublicationFactory
public interface PublishedDocumentFactory
Interface of the pluggable factory used to create a PublishedDocument in a give PublicationTree.
- Author:
- tiry
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanManagePublishing(PublishedDocument publishedDocument) getName()String[]Computes the list of publishing validators given the document model of the document just published.Returns the registered section validators rule.booleanhasValidationTask(PublishedDocument publishedDocument) voidinit(CoreSession coreSession, Map<String, String> parameters) voidinit(CoreSession coreSession, ValidatorsRule validatorsRule, Map<String, String> parameters) publishDocument(DocumentModel doc, PublicationNode targetNode) publishDocument(DocumentModel doc, PublicationNode targetNode, Map<String, String> params) 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.
-
Method Details
-
getName
String getName() -
publishDocument
-
publishDocument
PublishedDocument publishDocument(DocumentModel doc, PublicationNode targetNode, Map<String, String> params) -
init
-
init
-
snapshotDocumentBeforePublish
-
wrapDocumentModel
-
getValidatorsFor
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
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
-
hasValidationTask
-
canManagePublishing
-