Interface PublishedDocumentFactory
-
- All Known Implementing Classes:
AbstractBasePublishedDocumentFactory,CoreProxyFactory,CoreProxyWithWorkflowFactory,FolderishProxyFactory,RenditionPublicationFactory
public interface PublishedDocumentFactoryInterface of the pluggable factory used to create a PublishedDocument in a give PublicationTree.- Author:
- tiry
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanManagePublishing(PublishedDocument publishedDocument)StringgetName()String[]getValidatorsFor(DocumentModel dm)Computes the list of publishing validators given the document model of the document just published.ValidatorsRulegetValidatorsRule()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)PublishedDocumentpublishDocument(DocumentModel doc, PublicationNode targetNode)PublishedDocumentpublishDocument(DocumentModel doc, PublicationNode targetNode, Map<String,String> params)DocumentModelsnapshotDocumentBeforePublish(DocumentModel doc)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.PublishedDocumentwrapDocumentModel(DocumentModel doc)
-
-
-
Method Detail
-
getName
String getName()
-
publishDocument
PublishedDocument publishDocument(DocumentModel doc, PublicationNode targetNode)
-
publishDocument
PublishedDocument publishDocument(DocumentModel doc, PublicationNode targetNode, Map<String,String> params)
-
init
void init(CoreSession coreSession, ValidatorsRule validatorsRule, Map<String,String> parameters)
-
init
void init(CoreSession coreSession, Map<String,String> parameters)
-
snapshotDocumentBeforePublish
DocumentModel snapshotDocumentBeforePublish(DocumentModel doc)
-
wrapDocumentModel
PublishedDocument wrapDocumentModel(DocumentModel doc)
-
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)
-
-