org.alfresco.repo.rule
Class RulesAspect
java.lang.Object
org.alfresco.repo.rule.RulesAspect
- All Implemented Interfaces:
- CopyServicePolicies.OnCopyCompletePolicy, CopyServicePolicies.OnCopyNodePolicy, ClassPolicy, Policy
public class RulesAspect
- extends java.lang.Object
- implements CopyServicePolicies.OnCopyNodePolicy, CopyServicePolicies.OnCopyCompletePolicy
Class containing behaviour for the rules aspect
Nested classes/interfaces inherited from interface org.alfresco.repo.policy.Policy |
Policy.Arg |
Nested classes/interfaces inherited from interface org.alfresco.repo.policy.Policy |
Policy.Arg |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RulesAspect
public RulesAspect()
setPolicyComponent
public void setPolicyComponent(PolicyComponent policyComponent)
setBehaviourFilter
public void setBehaviourFilter(BehaviourFilter behaviourFilter)
setNodeService
public void setNodeService(NodeService nodeService)
setRuleService
public void setRuleService(RuleService ruleService)
init
public void init()
onAddAspect
public void onAddAspect(NodeRef nodeRef,
QName aspectTypeQName)
- Creates the rules folder below the node
getCopyCallback
public CopyBehaviourCallback getCopyCallback(QName classRef,
CopyDetails copyDetails)
- Description copied from interface:
CopyServicePolicies.OnCopyNodePolicy
- Called for all types and aspects before copying a node.
- Specified by:
getCopyCallback
in interface CopyServicePolicies.OnCopyNodePolicy
- Parameters:
classRef
- the type or aspect qualified namecopyDetails
- the details of the impending copy
- Returns:
- Returns
RulesAspectCopyBehaviourCallback
- See Also:
CopyServicePolicies
onCopyComplete
public void onCopyComplete(QName classRef,
NodeRef sourceNodeRef,
NodeRef destinationRef,
boolean copyToNewNode,
java.util.Map copyMap)
- Re-enable aspect behaviour for the source node
- Specified by:
onCopyComplete
in interface CopyServicePolicies.OnCopyCompletePolicy
- Parameters:
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 copy
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.