public class ActionsAspect extends Object implements CopyServicePolicies.OnCopyNodePolicy, CopyServicePolicies.OnCopyCompletePolicy, NodeServicePolicies.OnDeleteAssociationPolicy
Policy.Arg
ARG_0, ARG_1, QNAME
QNAME
QNAME
Constructor and Description |
---|
ActionsAspect() |
Modifier and Type | Method and Description |
---|---|
CopyBehaviourCallback |
getCopyCallback(org.alfresco.service.namespace.QName classRef,
CopyDetails copyDetails)
Called for all types and aspects before copying a node.
|
void |
init() |
void |
onAddAspect(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName aspectTypeQName)
On add aspect policy behaviour
|
void |
onCopyComplete(org.alfresco.service.namespace.QName classRef,
org.alfresco.service.cmr.repository.NodeRef sourceNodeRef,
org.alfresco.service.cmr.repository.NodeRef destinationRef,
boolean copyToNewNode,
Map<org.alfresco.service.cmr.repository.NodeRef,org.alfresco.service.cmr.repository.NodeRef> copyMap)
Re-enable aspect behaviour for the source node
|
void |
onDeleteAssociation(org.alfresco.service.cmr.repository.AssociationRef nodeAssocRef)
Called after a regular node association is deleted.
|
void |
setBehaviourFilter(BehaviourFilter behaviourFilter) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
setPolicyComponent(PolicyComponent policyComponent) |
void |
setRuleService(RuleService ruleService) |
public void setPolicyComponent(PolicyComponent policyComponent)
public void setBehaviourFilter(BehaviourFilter behaviourFilter)
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public void setRuleService(RuleService ruleService)
public void init()
public void onDeleteAssociation(org.alfresco.service.cmr.repository.AssociationRef nodeAssocRef)
NodeServicePolicies.OnDeleteAssociationPolicy
onDeleteAssociation
in interface NodeServicePolicies.OnDeleteAssociationPolicy
nodeAssocRef
- the regular node association that was removedpublic void onAddAspect(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName aspectTypeQName)
nodeRef
- NodeRefaspectTypeQName
- QNamepublic CopyBehaviourCallback getCopyCallback(org.alfresco.service.namespace.QName classRef, CopyDetails copyDetails)
CopyServicePolicies.OnCopyNodePolicy
getCopyCallback
in interface CopyServicePolicies.OnCopyNodePolicy
classRef
- the type or aspect qualified namecopyDetails
- the details of the impending copyActionsAspectCopyBehaviourCallback
CopyServicePolicies
public void onCopyComplete(org.alfresco.service.namespace.QName classRef, org.alfresco.service.cmr.repository.NodeRef sourceNodeRef, org.alfresco.service.cmr.repository.NodeRef destinationRef, boolean copyToNewNode, Map<org.alfresco.service.cmr.repository.NodeRef,org.alfresco.service.cmr.repository.NodeRef> copyMap)
onCopyComplete
in interface CopyServicePolicies.OnCopyCompletePolicy
classRef
- the type of the node that was copiedsourceNodeRef
- the original nodedestinationRef
- the destination nodecopyMap
- a map containing all the nodes that have been created during the copyCopyright © 2005–2017 Alfresco Software. All rights reserved.