Class RulesAspect

    • Constructor Detail

      • RulesAspect

        public RulesAspect()
    • Method Detail

      • setPolicyComponent

        public void setPolicyComponent​(PolicyComponent policyComponent)
      • setBehaviourFilter

        public void setBehaviourFilter​(BehaviourFilter behaviourFilter)
      • setNodeService

        public void setNodeService​(org.alfresco.service.cmr.repository.NodeService nodeService)
      • setRuleService

        public void setRuleService​(RuleService ruleService)
      • init

        public void init()
      • onAddAspect

        public void onAddAspect​(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                                org.alfresco.service.namespace.QName aspectTypeQName)
        Creates the rules folder below the node
        Specified by:
        onAddAspect in interface NodeServicePolicies.OnAddAspectPolicy
        Parameters:
        nodeRef - the node to which the aspect was added
        aspectTypeQName - the type of the aspect
      • onCopyComplete

        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,
                                   java.util.Map<org.alfresco.service.cmr.repository.NodeRef,​org.alfresco.service.cmr.repository.NodeRef> 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 copied
        sourceNodeRef - the original node
        destinationRef - the destination node
        copyMap - a map containing all the nodes that have been created during the copy