public class WorkflowDefinitionType extends Object implements ContentServicePolicies.OnContentUpdatePolicy, NodeServicePolicies.OnUpdatePropertiesPolicy, NodeServicePolicies.BeforeDeleteNodePolicy
Policy.Arg
QNAME
ARG_0, ARG_1, ARG_2, QNAME
QNAME
Constructor and Description |
---|
WorkflowDefinitionType() |
Modifier and Type | Method and Description |
---|---|
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,
Map<org.alfresco.service.namespace.QName,Serializable> before,
Map<org.alfresco.service.namespace.QName,Serializable> after)
On update properties behaviour implementation
|
void |
setPolicyComponent(PolicyComponent policyComponent)
Set the policy component
|
void |
setWorkflowDeployer(WorkflowDeployer workflowDeployer)
Set the workflow deployer / undeployer
|
public void setPolicyComponent(PolicyComponent policyComponent)
policyComponent
- the policy componentpublic void setWorkflowDeployer(WorkflowDeployer workflowDeployer)
workflowDeployer
- the workflow deployer / undeployerpublic void init()
public void onContentUpdate(org.alfresco.service.cmr.repository.NodeRef nodeRef, boolean newContent)
onContentUpdate
in interface ContentServicePolicies.OnContentUpdatePolicy
nodeRef
- the node reference whose content has been updatedpublic void onUpdateProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef, Map<org.alfresco.service.namespace.QName,Serializable> before, Map<org.alfresco.service.namespace.QName,Serializable> after)
onUpdateProperties
in interface NodeServicePolicies.OnUpdatePropertiesPolicy
nodeRef
- the node referencebefore
- the values of the properties before updateafter
- the values of the properties after the updatepublic void beforeDeleteNode(org.alfresco.service.cmr.repository.NodeRef nodeRef)
NodeServicePolicies.BeforeDeleteNodePolicy
beforeDeleteNode
in interface NodeServicePolicies.BeforeDeleteNodePolicy
nodeRef
- the node referenceCopyright © 2005–2017 Alfresco Software. All rights reserved.