org.alfresco.repo.rule.ruletrigger
Class OnContentUpdateRuleTrigger

java.lang.Object
  extended by org.alfresco.repo.rule.ruletrigger.RuleTriggerAbstractBase
      extended by org.alfresco.repo.rule.ruletrigger.OnContentUpdateRuleTrigger
All Implemented Interfaces:
ContentServicePolicies.OnContentUpdatePolicy, ClassPolicy, Policy, RuleTrigger

public class OnContentUpdateRuleTrigger
extends RuleTriggerAbstractBase
implements ContentServicePolicies.OnContentUpdatePolicy


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.content.ContentServicePolicies.OnContentUpdatePolicy
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
OnContentUpdateRuleTrigger()
           
 
Method Summary
 void onContentUpdate(org.alfresco.service.cmr.repository.NodeRef nodeRef, boolean newContent)
           
 void registerRuleTrigger()
          Register the rule trigger
 void setOnNewContent(boolean onNewContent)
          If set to true the trigger will fire on new content, otherwise it will fire on content update
 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

OnContentUpdateRuleTrigger

public OnContentUpdateRuleTrigger()
Method Detail

setOnNewContent

public void setOnNewContent(boolean onNewContent)
If set to true the trigger will fire on new content, otherwise it will fire on content update

Parameters:
onNewContent - indicates whether to fire on content create or update

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

onContentUpdate

public void onContentUpdate(org.alfresco.service.cmr.repository.NodeRef nodeRef,
                            boolean newContent)
Specified by:
onContentUpdate in interface ContentServicePolicies.OnContentUpdatePolicy
Parameters:
nodeRef - the node reference
See Also:
ContentServicePolicies.OnContentUpdatePolicy.onContentUpdate(org.alfresco.service.cmr.repository.NodeRef, boolean)


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