org.alfresco.repo.rule.ruletrigger
Class OnPropertyUpdateRuleTrigger

java.lang.Object
  extended by org.alfresco.repo.rule.ruletrigger.RuleTriggerAbstractBase
      extended by org.alfresco.repo.rule.ruletrigger.OnPropertyUpdateRuleTrigger
All Implemented Interfaces:
NodeServicePolicies.OnUpdatePropertiesPolicy, ClassPolicy, Policy, RuleTrigger

public class OnPropertyUpdateRuleTrigger
extends RuleTriggerAbstractBase
implements NodeServicePolicies.OnUpdatePropertiesPolicy

On propety update trigger


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.alfresco.repo.policy.Policy
Policy.Arg
 
Field Summary
 
Fields inherited from class org.alfresco.repo.rule.ruletrigger.RuleTriggerAbstractBase
authenticationComponent, contentService, dictionaryService, executeRuleImmediately, nodeService, policyComponent
 
Fields inherited from interface org.alfresco.repo.node.NodeServicePolicies.OnUpdatePropertiesPolicy
ARG_0, ARG_1, ARG_2, QNAME
 
Fields inherited from interface org.alfresco.repo.policy.Policy
NAMESPACE
 
Fields inherited from interface org.alfresco.repo.rule.ruletrigger.RuleTrigger
RULE_TRIGGER_NEW_NODES, RULE_TRIGGER_RENAMED_NODES
 
Constructor Summary
OnPropertyUpdateRuleTrigger()
           
 
Method Summary
 void onUpdateProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef, java.util.Map before, java.util.Map after)
          Triggers rules if properties have been updated
 void registerRuleTrigger()
          Register the rule trigger
 void setTriggerParentRules(boolean triggerParentRules)
          Indicates whether the parent rules should be triggered or the rules on the node itself
 
Methods inherited from class org.alfresco.repo.rule.ruletrigger.RuleTriggerAbstractBase
registerRuleType, setAuthenticationComponent, setContentService, setDictionaryService, setExecuteRuleImmediately, setNodeService, setPolicyComponent, triggerRules
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OnPropertyUpdateRuleTrigger

public OnPropertyUpdateRuleTrigger()
Method Detail

setTriggerParentRules

public void setTriggerParentRules(boolean triggerParentRules)
Indicates whether the parent rules should be triggered or the rules on the node itself

Parameters:
triggerParentRules - true trigger parent rules, false otherwise

registerRuleTrigger

public void registerRuleTrigger()
Description copied from interface: RuleTrigger
Register the rule trigger

Specified by:
registerRuleTrigger in interface RuleTrigger

onUpdateProperties

public void onUpdateProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                               java.util.Map before,
                               java.util.Map after)
Triggers rules if properties have been updated

Specified by:
onUpdateProperties in interface NodeServicePolicies.OnUpdatePropertiesPolicy
Parameters:
nodeRef - reference to the updated node
before - the node's properties before the change
after - the node's properties after the change


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.