public class CoreProxyWithWorkflowFactory extends CoreProxyFactory implements PublishedDocumentFactory
PublishedDocumentFactory
for core
implementation using native proxy system with validation workflow.Modifier and Type | Field and Description |
---|---|
static String |
ACL_NAME |
static String |
JBPM_ACL_NAME |
static String |
LOOKUP_STATE_PARAM_BYACL |
static String |
LOOKUP_STATE_PARAM_BYTASK |
static String |
LOOKUP_STATE_PARAM_KEY |
static String |
PUBLISH_TASK_TYPE |
static String |
TASK_NAME |
ENABLE_SNAPSHOT, TARGET_PUBLISHED_DOCUMENT_STATE
Constructor and Description |
---|
CoreProxyWithWorkflowFactory() |
Modifier and Type | Method and Description |
---|---|
boolean |
canManagePublishing(PublishedDocument publishedDocument) |
boolean |
hasValidationTask(PublishedDocument publishedDocument) |
void |
init(CoreSession coreSession,
ValidatorsRule validatorsRule,
Map<String,String> parameters) |
PublishedDocument |
publishDocument(DocumentModel doc,
PublicationNode targetNode,
Map<String,String> params) |
void |
setLookupByACL() |
void |
setLookupByTask() |
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) |
snapshotDocumentBeforePublish, unwrapPublishedDocument
getName, getValidatorsFor, getValidatorsRule, init, publishDocument
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName, getValidatorsFor, getValidatorsRule, init, publishDocument, snapshotDocumentBeforePublish
public static final String TASK_NAME
public static final String ACL_NAME
public static final String JBPM_ACL_NAME
public static final String PUBLISH_TASK_TYPE
public static final String LOOKUP_STATE_PARAM_KEY
public static final String LOOKUP_STATE_PARAM_BYACL
public static final String LOOKUP_STATE_PARAM_BYTASK
public void init(CoreSession coreSession, ValidatorsRule validatorsRule, Map<String,String> parameters) throws ClientException
init
in interface PublishedDocumentFactory
init
in class AbstractBasePublishedDocumentFactory
ClientException
public void setLookupByTask()
public void setLookupByACL()
public PublishedDocument publishDocument(DocumentModel doc, PublicationNode targetNode, Map<String,String> params) throws ClientException
publishDocument
in interface PublishedDocumentFactory
publishDocument
in class CoreProxyFactory
ClientException
public void validatorPublishDocument(PublishedDocument publishedDocument, String comment) throws PublishingException
PublishedDocumentFactory
validatorPublishDocument
in interface PublishedDocumentFactory
validatorPublishDocument
in class AbstractBasePublishedDocumentFactory
publishedDocument
- the current published document that will be
approvedPublishingException
public void validatorRejectPublication(PublishedDocument publishedDocument, String comment) throws PublishingException
PublishedDocumentFactory
validatorRejectPublication
in interface PublishedDocumentFactory
validatorRejectPublication
in class AbstractBasePublishedDocumentFactory
publishedDocument
- the currently published document that will be
rejectedPublishingException
public PublishedDocument wrapDocumentModel(DocumentModel doc) throws ClientException
wrapDocumentModel
in interface PublishedDocumentFactory
wrapDocumentModel
in class CoreProxyFactory
ClientException
public boolean canManagePublishing(PublishedDocument publishedDocument) throws ClientException
canManagePublishing
in interface PublishedDocumentFactory
canManagePublishing
in class AbstractBasePublishedDocumentFactory
ClientException
public boolean hasValidationTask(PublishedDocument publishedDocument) throws ClientException
hasValidationTask
in interface PublishedDocumentFactory
hasValidationTask
in class AbstractBasePublishedDocumentFactory
ClientException
Copyright © 2013 Nuxeo SA. All Rights Reserved.