org.alfresco.repo.workflow
Class WorkflowDefinitionType
java.lang.Object
org.alfresco.repo.workflow.WorkflowDefinitionType
- All Implemented Interfaces:
- ContentServicePolicies.OnContentUpdatePolicy, NodeServicePolicies.BeforeDeleteNodePolicy, NodeServicePolicies.OnUpdatePropertiesPolicy, ClassPolicy, Policy
public class WorkflowDefinitionType
- extends java.lang.Object
- implements ContentServicePolicies.OnContentUpdatePolicy, NodeServicePolicies.OnUpdatePropertiesPolicy, NodeServicePolicies.BeforeDeleteNodePolicy
Workflow Definition type behaviour.
Nested classes/interfaces inherited from interface org.alfresco.repo.policy.Policy |
Policy.Arg |
Method Summary |
void |
beforeDeleteNode(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Called before a node is deleted. |
void |
init()
The initialise method |
void |
onContentUpdate(org.alfresco.service.cmr.repository.NodeRef nodeRef,
boolean newContent)
On content update behaviour implementation |
void |
onUpdateProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef,
java.util.Map before,
java.util.Map after)
On update properties behaviour implementation |
void |
setPolicyComponent(PolicyComponent policyComponent)
Set the policy component |
void |
setWorkflowDeployer(WorkflowDeployer workflowDeployer)
Set the workflow deployer / undeployer |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WorkflowDefinitionType
public WorkflowDefinitionType()
setPolicyComponent
public void setPolicyComponent(PolicyComponent policyComponent)
- Set the policy component
- Parameters:
policyComponent
- the policy component
setWorkflowDeployer
public void setWorkflowDeployer(WorkflowDeployer workflowDeployer)
- Set the workflow deployer / undeployer
- Parameters:
workflowDeployer
- the workflow deployer / undeployer
init
public void init()
- The initialise method
onContentUpdate
public void onContentUpdate(org.alfresco.service.cmr.repository.NodeRef nodeRef,
boolean newContent)
- On content update behaviour implementation
- Specified by:
onContentUpdate
in interface ContentServicePolicies.OnContentUpdatePolicy
- Parameters:
nodeRef
- the node reference whose content has been updated
onUpdateProperties
public void onUpdateProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef,
java.util.Map before,
java.util.Map after)
- On update properties behaviour implementation
- Specified by:
onUpdateProperties
in interface NodeServicePolicies.OnUpdatePropertiesPolicy
- Parameters:
nodeRef
- the node referencebefore
- the values of the properties before updateafter
- the values of the properties after the update
beforeDeleteNode
public void beforeDeleteNode(org.alfresco.service.cmr.repository.NodeRef nodeRef)
- Description copied from interface:
NodeServicePolicies.BeforeDeleteNodePolicy
- Called before a node is deleted.
- Specified by:
beforeDeleteNode
in interface NodeServicePolicies.BeforeDeleteNodePolicy
- Parameters:
nodeRef
- the node reference
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.