org.nuxeo.ecm.platform.publisher.jbpm
Class CoreProxyWithWorkflowFactory
java.lang.Object
org.nuxeo.ecm.platform.publisher.api.AbstractBasePublishedDocumentFactory
org.nuxeo.ecm.platform.publisher.impl.core.CoreProxyFactory
org.nuxeo.ecm.platform.publisher.jbpm.CoreProxyWithWorkflowFactory
- All Implemented Interfaces:
- PublishedDocumentFactory
public class CoreProxyWithWorkflowFactory
- extends CoreProxyFactory
- implements PublishedDocumentFactory
Implementation of the PublishedDocumentFactory
for core
implementation using native proxy system with validation workflow.
- Author:
- Thomas Roger, Thierry Martins
TASK_NAME
public static final String TASK_NAME
- See Also:
- Constant Field Values
ACL_NAME
public static final String ACL_NAME
- See Also:
- Constant Field Values
CoreProxyWithWorkflowFactory
public CoreProxyWithWorkflowFactory()
publishDocument
public PublishedDocument publishDocument(DocumentModel doc,
PublicationNode targetNode,
Map<String,String> params)
throws ClientException
- Specified by:
publishDocument
in interface PublishedDocumentFactory
- Overrides:
publishDocument
in class CoreProxyFactory
- Throws:
ClientException
validatorPublishDocument
public void validatorPublishDocument(PublishedDocument publishedDocument,
String comment)
throws PublishingException
- Description copied from interface:
PublishedDocumentFactory
- A validator (the current user) approves the publication.
- Specified by:
validatorPublishDocument
in interface PublishedDocumentFactory
- Overrides:
validatorPublishDocument
in class AbstractBasePublishedDocumentFactory
- Parameters:
publishedDocument
- the current published document that will be
approved
- Throws:
PublishingException
validatorRejectPublication
public void validatorRejectPublication(PublishedDocument publishedDocument,
String comment)
throws PublishingException
- Description copied from interface:
PublishedDocumentFactory
- A validator (the current user) rejects the publication.
- Specified by:
validatorRejectPublication
in interface PublishedDocumentFactory
- Overrides:
validatorRejectPublication
in class AbstractBasePublishedDocumentFactory
- Parameters:
publishedDocument
- the currently published document that will be
rejected
- Throws:
PublishingException
wrapDocumentModel
public PublishedDocument wrapDocumentModel(DocumentModel doc)
throws ClientException
- Specified by:
wrapDocumentModel
in interface PublishedDocumentFactory
- Overrides:
wrapDocumentModel
in class CoreProxyFactory
- Throws:
ClientException
canManagePublishing
public boolean canManagePublishing(PublishedDocument publishedDocument)
throws ClientException
- Specified by:
canManagePublishing
in interface PublishedDocumentFactory
- Overrides:
canManagePublishing
in class AbstractBasePublishedDocumentFactory
- Throws:
ClientException
hasValidationTask
public boolean hasValidationTask(PublishedDocument publishedDocument)
throws ClientException
- Specified by:
hasValidationTask
in interface PublishedDocumentFactory
- Overrides:
hasValidationTask
in class AbstractBasePublishedDocumentFactory
- Throws:
ClientException
Copyright © 2011 Nuxeo SAS. All Rights Reserved.