Nuxeo Enterprise Platform 5.1

org.nuxeo.ecm.platform.forum.workflow
Class AbstractForumWorkflowDocumentHandler

java.lang.Object
  extended by org.nuxeo.ecm.platform.workflow.jbpm.handlers.api.common.AbstractWorkflowDocumentHandler
      extended by org.nuxeo.ecm.platform.workflow.jbpm.handlers.api.client.AbstractWorkflowDocumentActionHandler
          extended by org.nuxeo.ecm.platform.forum.workflow.AbstractForumWorkflowDocumentHandler
All Implemented Interfaces:
Serializable, ActionHandler
Direct Known Subclasses:
ForumEndPublishActionHandler, ForumEndRejectActionHandler, ForumEnterModerationHandler, ForumStartupActionHandler

public abstract class AbstractForumWorkflowDocumentHandler
extends AbstractWorkflowDocumentActionHandler

This abc overrides the process to document ref binding for the post moderation workflow.

Here, we'd like to bind the process not with the post itself but with the thread since the post is right now an hidden object (i.e : comment). Like this, while getting a workitem, the document ref will be the thread and one will be able to access it from dashboard. The rest of the API won't be changed since the security and the life cycle will be updated on the post itself.

Author:
Julien Anguenot
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.nuxeo.ecm.platform.workflow.jbpm.handlers.api.common.AbstractWorkflowDocumentHandler
coreDocBD, lifecycleBD, log, secuBD, secuPolicyBD, wDocRelBD
 
Constructor Summary
protected AbstractForumWorkflowDocumentHandler()
           
 
Method Summary
protected  void bindDocumentToProcess(ExecutionContext ec)
          Bind the actual process with the document, if any, given an execution context.
protected  DocumentRef getThreadRef(ExecutionContext ec)
           
protected  void unbindDocumentToProcess(ExecutionContext ec)
          Unbinds the document from the process if exists.
 
Methods inherited from class org.nuxeo.ecm.platform.workflow.jbpm.handlers.api.common.AbstractWorkflowDocumentHandler
documentFollowTransition, getDocumentAllowedStateTransitions, getDocumentCurrentLifeCycle, getDocumentManager, getDocumentMessageProducer, getDocumentModel, getDocumentRef, getDocumentRepositoryLocationURI, getInfoMap, getLifeCycleManager, getLifeCycleTransitionToDestinationState, getProcessInstance, getProcessInstanceCreator, getProcessInstanceCurrentReviewLevel, getProcessInstanceDocumentModificationPolicy, getProcessInstanceDocumentVersioningPolicy, getProcessInstanceName, getSecuManager, getSecuPolicyManager, getWAPI, getWorkflowDocumentRelation, notifyEvent, removeWFACL, setupDefaultRightsFromPolicy, setupRightsFromPolicy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jbpm.graph.def.ActionHandler
execute
 

Constructor Detail

AbstractForumWorkflowDocumentHandler

protected AbstractForumWorkflowDocumentHandler()
Method Detail

bindDocumentToProcess

protected void bindDocumentToProcess(ExecutionContext ec)
                              throws Exception
Description copied from class: AbstractWorkflowDocumentHandler
Bind the actual process with the document, if any, given an execution context.

Overrides:
bindDocumentToProcess in class AbstractWorkflowDocumentHandler
Parameters:
ec - the jbpm execution context
Throws:
Exception

unbindDocumentToProcess

protected void unbindDocumentToProcess(ExecutionContext ec)
                                throws Exception
Description copied from class: AbstractWorkflowDocumentHandler
Unbinds the document from the process if exists.

Overrides:
unbindDocumentToProcess in class AbstractWorkflowDocumentHandler
Parameters:
ec - the jbpm execution context
Throws:
Exception

getThreadRef

protected DocumentRef getThreadRef(ExecutionContext ec)

Nuxeo Enterprise Platform 5.1

Copyright ? 2007 Nuxeo SAS. All Rights Reserved.