public interface PublishedDocumentFactory
Modifier and Type | Method and Description |
---|---|
boolean |
canManagePublishing(PublishedDocument publishedDocument) |
String |
getName() |
String[] |
getValidatorsFor(DocumentModel dm)
Computes the list of publishing validators given the document model of the document just published.
|
ValidatorsRule |
getValidatorsRule()
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) |
PublishedDocument |
publishDocument(DocumentModel doc,
PublicationNode targetNode) |
PublishedDocument |
publishDocument(DocumentModel doc,
PublicationNode targetNode,
Map<String,String> params) |
DocumentModel |
snapshotDocumentBeforePublish(DocumentModel doc) |
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.
|
PublishedDocument |
wrapDocumentModel(DocumentModel doc) |
PublishedDocument publishDocument(DocumentModel doc, PublicationNode targetNode)
PublishedDocument publishDocument(DocumentModel doc, PublicationNode targetNode, Map<String,String> params)
void init(CoreSession coreSession, ValidatorsRule validatorsRule, Map<String,String> parameters)
void init(CoreSession coreSession, Map<String,String> parameters)
DocumentModel snapshotDocumentBeforePublish(DocumentModel doc)
PublishedDocument wrapDocumentModel(DocumentModel doc)
String[] getValidatorsFor(DocumentModel dm)
dm
- a Nuxeo Core document model. (the document that just has been published)ValidatorsRule getValidatorsRule()
void validatorPublishDocument(PublishedDocument publishedDocument, String comment)
publishedDocument
- the current published document that will be approvedcomment
- void validatorRejectPublication(PublishedDocument publishedDocument, String comment)
publishedDocument
- the currently published document that will be rejectedcomment
- boolean hasValidationTask(PublishedDocument publishedDocument)
boolean canManagePublishing(PublishedDocument publishedDocument)
Copyright © 2018 Nuxeo. All rights reserved.