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 TypeMethodDescriptionboolean
canManagePublishing
(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.boolean
hasValidationTask
(PublishedDocument publishedDocument) void
init
(CoreSession coreSession, Map<String, String> parameters) void
init
(CoreSession coreSession, ValidatorsRule validatorsRule, Map<String, String> parameters) publishDocument
(DocumentModel doc, PublicationNode targetNode) publishDocument
(DocumentModel doc, PublicationNode targetNode, Map<String, String> params) void
validatorPublishDocument
(PublishedDocument publishedDocument, String comment) A validator (the current user) approves the publication.void
validatorRejectPublication
(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
-