|
Nuxeo Enterprise Platform 5.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuxeo.ecm.platform.workflow.jbpm.handlers.api.common.AbstractWorkflowDocumentHandler
public abstract class AbstractWorkflowDocumentHandler
Base handler for both jBPM action and assignment handlers.
Defines an API to interact with NXWorkflow and NXWorkflowDocument from jBPM handlers. Expected to be used and extended to define custom business rules around process dealing with documents.
Current implementation assumes only one document bound to the process...
AbstractWorkflowDocumentActionHandler,
AbstractWorkflowDocumentAssignmentHandler| Field Summary | |
|---|---|
protected CoreDocumentManagerBusinessDelegate |
coreDocBD
|
protected WorkflowDocumentLifeCycleBusinessDelegate |
lifecycleBD
|
protected static Log |
log
|
protected WorkflowDocumentSecurityBusinessDelegate |
secuBD
|
protected WorkflowDocumentSecurityPolicyBusinessDelegate |
secuPolicyBD
|
protected WorkflowDocumentRelationBusinessDelegate |
wDocRelBD
|
| Constructor Summary | |
|---|---|
AbstractWorkflowDocumentHandler()
|
|
| Method Summary | |
|---|---|
protected void |
bindDocumentToProcess(ExecutionContext ec)
Bind the actual process with the document, if any, given an execution context. |
protected boolean |
documentFollowTransition(ExecutionContext ec,
String transition)
Makes the document bound to the process, if it exists, follow a transition. |
protected Collection<String> |
getDocumentAllowedStateTransitions(ExecutionContext ec)
Returns the allows state transitions for the document bound the process if any. |
protected String |
getDocumentCurrentLifeCycle(ExecutionContext ec)
Returns the current life cycle state for the document bound to the process if any. |
protected CoreSession |
getDocumentManager(ExecutionContext ec)
Returns the document manager bean (core session). |
protected DocumentMessageProducer |
getDocumentMessageProducer()
Returns the document message producer bean. |
protected DocumentModel |
getDocumentModel(ExecutionContext ec)
Returns the document model if one is bound to the actual process. |
protected DocumentRef |
getDocumentRef(ExecutionContext ec)
Returns the document ref if one is bound to the actual process. |
protected String |
getDocumentRepositoryLocationURI(ExecutionContext ec)
Returns the repository location URI if a document ref is bound to the actual process. |
protected Map<String,Serializable> |
getInfoMap(ExecutionContext ec)
Computes a process info map => optimization. |
protected WorkflowDocumentLifeCycleManager |
getLifeCycleManager(ExecutionContext ec)
Returns the workflow document life cycle manager bean. |
protected String |
getLifeCycleTransitionToDestinationState(ExecutionContext ec)
Returns the transition to destination life cycle after the process if any bound to the actual process. |
protected ProcessInstance |
getProcessInstance(ExecutionContext ec)
Returns the actual process instance. |
protected String |
getProcessInstanceCreator(ExecutionContext ec)
Returns the actual process creator. |
protected int |
getProcessInstanceCurrentReviewLevel(ExecutionContext ec)
Returns the actual process instance review level. |
protected String |
getProcessInstanceDocumentModificationPolicy(ExecutionContext ec)
Returns the actual process instance modification policy. |
protected String |
getProcessInstanceDocumentVersioningPolicy(ExecutionContext ec)
Returns the actual process instance versioning policy. |
protected String |
getProcessInstanceName(ExecutionContext ec)
Returns the process instance name. |
protected WorkflowDocumentSecurityManager |
getSecuManager(ExecutionContext ec)
Returns the workflow document security manager bean. |
protected WorkflowDocumentSecurityPolicyManager |
getSecuPolicyManager()
Returns the worflow document security policy manager bean. |
protected WAPI |
getWAPI()
Returns the workflow api bean. |
protected WorkflowDocumentRelationManager |
getWorkflowDocumentRelation()
Returns the workflow document relation manager bean. |
protected void |
notifyEvent(ExecutionContext ec,
String eventId)
Notify event. |
protected void |
removeWFACL(ExecutionContext ec)
Removes the ACL the actual process added on the document if one is bound to the process. |
protected void |
setupDefaultRightsFromPolicy(ExecutionContext ec)
Setup the default rights on the document bound to the actual process, if any, using the security policy bound to the process, if any. |
protected void |
setupRightsFromPolicy(ExecutionContext ec)
Setup the rights on the document bound to the actual process, if any, using the security policy bound to the process, if any. |
protected void |
unbindDocumentToProcess(ExecutionContext ec)
Unbinds the document from the process if exists. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final Log log
protected final WorkflowDocumentLifeCycleBusinessDelegate lifecycleBD
protected final WorkflowDocumentSecurityBusinessDelegate secuBD
protected final WorkflowDocumentSecurityPolicyBusinessDelegate secuPolicyBD
protected final WorkflowDocumentRelationBusinessDelegate wDocRelBD
protected final CoreDocumentManagerBusinessDelegate coreDocBD
| Constructor Detail |
|---|
public AbstractWorkflowDocumentHandler()
| Method Detail |
|---|
protected WorkflowDocumentLifeCycleManager getLifeCycleManager(ExecutionContext ec)
throws Exception
ec - the jbpm execution context.
Exception
protected CoreSession getDocumentManager(ExecutionContext ec)
throws Exception
ec - the jbpm execution context.
Exception
protected DocumentMessageProducer getDocumentMessageProducer()
throws Exception
NamingException
Exception
protected WAPI getWAPI()
throws Exception
Exception
protected WorkflowDocumentSecurityManager getSecuManager(ExecutionContext ec)
throws Exception
ec - the jbpm execution context
Exception
protected WorkflowDocumentSecurityPolicyManager getSecuPolicyManager()
throws Exception
Exception
protected WorkflowDocumentRelationManager getWorkflowDocumentRelation()
throws Exception
Exception
protected void notifyEvent(ExecutionContext ec,
String eventId)
throws Exception
Uses the document message producer bean which forwards on the NXP JMS topic.
ec - the jbpm execution context
Exceptionprotected ProcessInstance getProcessInstance(ExecutionContext ec)
ec - the jbpm execution context
Exception
protected String getProcessInstanceCreator(ExecutionContext ec)
throws Exception
ec - the jbpm execution context
Exception
protected String getProcessInstanceDocumentModificationPolicy(ExecutionContext ec)
throws Exception
ec - the jbpm execution context
Exception
protected String getProcessInstanceDocumentVersioningPolicy(ExecutionContext ec)
throws Exception
ec - the jbpm execution context
Exception
protected int getProcessInstanceCurrentReviewLevel(ExecutionContext ec)
throws Exception
ec - the jbpm execution context
Exceptionprotected DocumentRef getDocumentRef(ExecutionContext ec)
ec - the jbpm execution context
protected DocumentModel getDocumentModel(ExecutionContext ec)
throws Exception
ec - the jbpm execution context
Exceptionprotected String getDocumentRepositoryLocationURI(ExecutionContext ec)
Repository location are mandatory beside document ref to identify a document using Nuxeo core remoting, currently. (5.1.x)
ec - the jbpm execution context
protected String getLifeCycleTransitionToDestinationState(ExecutionContext ec)
ec - the jbpm execution context
protected Collection<String> getDocumentAllowedStateTransitions(ExecutionContext ec)
throws Exception
ec - the jbpm execution context
Exception
protected boolean documentFollowTransition(ExecutionContext ec,
String transition)
throws Exception
ec - the jbpm execution contexttransition - a life cycle transtion name
Exception
protected String getDocumentCurrentLifeCycle(ExecutionContext ec)
throws Exception
ec - the jbpm execution context
Exception
protected void bindDocumentToProcess(ExecutionContext ec)
throws Exception
ec - the jbpm execution context
Exception
protected void unbindDocumentToProcess(ExecutionContext ec)
throws Exception
ec - the jbpm execution context
Exception
protected void removeWFACL(ExecutionContext ec)
throws Exception
ec - the jbpm execution context
Exception
protected String getProcessInstanceName(ExecutionContext ec)
throws Exception
ec - the jbpm execution context
Exception
protected void setupRightsFromPolicy(ExecutionContext ec)
throws Exception
ec - the jbpm execution context
Exception
protected void setupDefaultRightsFromPolicy(ExecutionContext ec)
throws Exception
ec - the jbpm execution context
Exception
protected Map<String,Serializable> getInfoMap(ExecutionContext ec)
throws Exception
ec - the jbpm execution context.
Exception
|
Nuxeo Enterprise Platform 5.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||