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) |
String getName()
PublishedDocument publishDocument(DocumentModel doc, PublicationNode targetNode) throws ClientException
ClientException
PublishedDocument publishDocument(DocumentModel doc, PublicationNode targetNode, Map<String,String> params) throws ClientException
ClientException
void init(CoreSession coreSession, ValidatorsRule validatorsRule, Map<String,String> parameters) throws ClientException
ClientException
void init(CoreSession coreSession, Map<String,String> parameters) throws ClientException
ClientException
DocumentModel snapshotDocumentBeforePublish(DocumentModel doc) throws ClientException
ClientException
PublishedDocument wrapDocumentModel(DocumentModel doc) throws ClientException
ClientException
String[] getValidatorsFor(DocumentModel dm) throws PublishingValidatorException
dm
- a Nuxeo Core document model. (the document that just has been
published)PublishingValidatorException
ValidatorsRule getValidatorsRule() throws PublishingValidatorException
PublishingValidatorException
void validatorPublishDocument(PublishedDocument publishedDocument, String comment) throws ClientException
publishedDocument
- the current published document that will be
approvedcomment
- PublishingException
ClientException
void validatorRejectPublication(PublishedDocument publishedDocument, String comment) throws ClientException
publishedDocument
- the currently published document that will be
rejectedcomment
- PublishingException
ClientException
boolean hasValidationTask(PublishedDocument publishedDocument) throws ClientException
ClientException
boolean canManagePublishing(PublishedDocument publishedDocument) throws ClientException
ClientException
Copyright © 2011 Nuxeo SA. All Rights Reserved.