Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.publisher.jbpm
Class CoreProxyWithWorkflowFactory

java.lang.Object
  extended by org.nuxeo.ecm.platform.publisher.api.AbstractBasePublishedDocumentFactory
      extended by org.nuxeo.ecm.platform.publisher.impl.core.CoreProxyFactory
          extended by 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

Field Summary
static String ACL_NAME
           
static String TASK_NAME
           
 
Fields inherited from class org.nuxeo.ecm.platform.publisher.api.AbstractBasePublishedDocumentFactory
ENABLE_SNAPSHOT, TARGET_PUBLISHED_DOCUMENT_STATE
 
Constructor Summary
CoreProxyWithWorkflowFactory()
           
 
Method Summary
 boolean canManagePublishing(PublishedDocument publishedDocument)
           
 boolean hasValidationTask(PublishedDocument publishedDocument)
           
 PublishedDocument publishDocument(DocumentModel doc, PublicationNode targetNode, Map<String,String> params)
           
 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)
           
 
Methods inherited from class org.nuxeo.ecm.platform.publisher.impl.core.CoreProxyFactory
snapshotDocumentBeforePublish, unwrapPublishedDocument
 
Methods inherited from class org.nuxeo.ecm.platform.publisher.api.AbstractBasePublishedDocumentFactory
getName, getValidatorsFor, getValidatorsRule, init, init, publishDocument
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.nuxeo.ecm.platform.publisher.api.PublishedDocumentFactory
getName, getValidatorsFor, getValidatorsRule, init, init, publishDocument, snapshotDocumentBeforePublish
 

Field Detail

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
Constructor Detail

CoreProxyWithWorkflowFactory

public CoreProxyWithWorkflowFactory()
Method Detail

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

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.