public abstract class AbstractBasePublishedDocumentFactory extends Object implements PublishedDocumentFactory
Modifier and Type | Field and Description |
---|---|
static String |
ENABLE_SNAPSHOT |
static String |
TARGET_PUBLISHED_DOCUMENT_STATE |
Constructor and Description |
---|
AbstractBasePublishedDocumentFactory() |
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) |
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.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
publishDocument, wrapDocumentModel
public static final String ENABLE_SNAPSHOT
public static final String TARGET_PUBLISHED_DOCUMENT_STATE
public AbstractBasePublishedDocumentFactory()
public void init(CoreSession coreSession, ValidatorsRule validatorsRule, Map<String,String> parameters) throws ClientException
init
in interface PublishedDocumentFactory
ClientException
public void init(CoreSession coreSession, Map<String,String> parameters) throws ClientException
init
in interface PublishedDocumentFactory
ClientException
public String getName()
getName
in interface PublishedDocumentFactory
public PublishedDocument publishDocument(DocumentModel doc, PublicationNode targetNode) throws ClientException
publishDocument
in interface PublishedDocumentFactory
ClientException
public DocumentModel snapshotDocumentBeforePublish(DocumentModel doc) throws ClientException
snapshotDocumentBeforePublish
in interface PublishedDocumentFactory
ClientException
public String[] getValidatorsFor(DocumentModel dm) throws PublishingValidatorException
PublishedDocumentFactory
getValidatorsFor
in interface PublishedDocumentFactory
dm
- a Nuxeo Core document model. (the document that just has been
published)PublishingValidatorException
public ValidatorsRule getValidatorsRule() throws PublishingValidatorException
PublishedDocumentFactory
getValidatorsRule
in interface PublishedDocumentFactory
PublishingValidatorException
public void validatorPublishDocument(PublishedDocument publishedDocument, String comment) throws ClientException
PublishedDocumentFactory
validatorPublishDocument
in interface PublishedDocumentFactory
publishedDocument
- the current published document that will be
approvedPublishingException
ClientException
public void validatorRejectPublication(PublishedDocument publishedDocument, String comment) throws ClientException
PublishedDocumentFactory
validatorRejectPublication
in interface PublishedDocumentFactory
publishedDocument
- the currently published document that will be
rejectedPublishingException
ClientException
public boolean canManagePublishing(PublishedDocument publishedDocument) throws ClientException
canManagePublishing
in interface PublishedDocumentFactory
ClientException
public boolean hasValidationTask(PublishedDocument publishedDocument) throws ClientException
hasValidationTask
in interface PublishedDocumentFactory
ClientException
Copyright © 2013 Nuxeo SA. All Rights Reserved.