public class RulesAspect extends Object implements CopyServicePolicies.OnCopyNodePolicy, CopyServicePolicies.OnCopyCompletePolicy, NodeServicePolicies.OnAddAspectPolicy, NodeServicePolicies.BeforeRemoveAspectPolicy, NodeServicePolicies.BeforeDeleteNodePolicy
Policy.ArgARG_0, ARG_1, QNAMEQNAMEQNAMEQNAMEQNAME| Constructor and Description |
|---|
RulesAspect() |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeDeleteNode(NodeRef nodeRef)
author Neil McErlean |
void |
beforeRemoveAspect(NodeRef nodeRef,
QName aspectTypeQName)
The rule folder & below will be deleted automatically in the normal way, so we don't need to worry about them.
|
CopyBehaviourCallback |
getCopyCallback(QName classRef,
CopyDetails copyDetails)
Called for all types and aspects before copying a node.
|
void |
init() |
void |
onAddAspect(NodeRef nodeRef,
QName aspectTypeQName)
Creates the rules folder below the node
|
void |
onCopyComplete(QName classRef,
NodeRef sourceNodeRef,
NodeRef destinationRef,
boolean copyToNewNode,
Map<NodeRef,NodeRef> copyMap)
Re-enable aspect behaviour for the source node
|
void |
setBehaviourFilter(BehaviourFilter behaviourFilter) |
void |
setNodeService(NodeService nodeService) |
void |
setPolicyComponent(PolicyComponent policyComponent) |
void |
setRuleService(RuleService ruleService) |
public void setPolicyComponent(PolicyComponent policyComponent)
public void setBehaviourFilter(BehaviourFilter behaviourFilter)
public void setNodeService(NodeService nodeService)
public void setRuleService(RuleService ruleService)
public void init()
public void onAddAspect(NodeRef nodeRef, QName aspectTypeQName)
onAddAspect in interface NodeServicePolicies.OnAddAspectPolicynodeRef - the node to which the aspect was addedaspectTypeQName - the type of the aspectpublic void beforeRemoveAspect(NodeRef nodeRef, QName aspectTypeQName)
beforeRemoveAspect in interface NodeServicePolicies.BeforeRemoveAspectPolicynodeRef - the node from which the aspect will be removedaspectTypeQName - the type of the aspectNodeServicePolicies.BeforeRemoveAspectPolicy.beforeRemoveAspect(org.alfresco.service.cmr.repository.NodeRef, org.alfresco.service.namespace.QName)public void beforeDeleteNode(NodeRef nodeRef)
beforeDeleteNode in interface NodeServicePolicies.BeforeDeleteNodePolicynodeRef - the node referencepublic CopyBehaviourCallback getCopyCallback(QName classRef, CopyDetails copyDetails)
CopyServicePolicies.OnCopyNodePolicygetCopyCallback in interface CopyServicePolicies.OnCopyNodePolicyclassRef - the type or aspect qualified namecopyDetails - the details of the impending copyCopyServicePoliciespublic void onCopyComplete(QName classRef, NodeRef sourceNodeRef, NodeRef destinationRef, boolean copyToNewNode, Map<NodeRef,NodeRef> copyMap)
onCopyComplete in interface CopyServicePolicies.OnCopyCompletePolicyclassRef - 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–2021 Alfresco Software. All rights reserved.