org.nuxeo.ecm.platform.forum.workflow
Class AbstractForumWorkflowDocumentHandler
java.lang.Object
org.nuxeo.ecm.platform.workflow.jbpm.handlers.api.common.AbstractWorkflowDocumentHandler
org.nuxeo.ecm.platform.workflow.jbpm.handlers.api.client.AbstractWorkflowDocumentActionHandler
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
| 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 |
AbstractForumWorkflowDocumentHandler
protected AbstractForumWorkflowDocumentHandler()
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)
Copyright ? 2007 Nuxeo SAS. All Rights Reserved.