public class OnPropertyUpdateRuleTrigger extends RuleTriggerAbstractBase implements NodeServicePolicies.OnUpdatePropertiesPolicy
Policy.ArgauthenticationComponent, contentService, dictionaryService, executeRuleImmediately, nodeService, policyComponent, ruleServiceARG_0, ARG_1, ARG_2, QNAMERULE_TRIGGER_NEW_NODES, RULE_TRIGGER_RENAMED_NODES| Constructor and Description |
|---|
OnPropertyUpdateRuleTrigger() |
| Modifier and Type | Method and Description |
|---|---|
void |
onUpdateProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef,
Map<org.alfresco.service.namespace.QName,Serializable> before,
Map<org.alfresco.service.namespace.QName,Serializable> after)
Triggers rules if properties have been updated
|
void |
registerRuleTrigger()
Register the rule trigger
|
void |
setIgnoreEmptyContent(boolean ignoreEmptyContent)
If set to true, then we consider zero byte content to be equivalent to no content.
|
void |
setOnNewContent(boolean onNewContent)
If set to true the trigger will fire on new content, otherwise it will fire on content update
|
void |
setRuntimeRuleService(RuntimeRuleService runtimeRuleService)
Set the rule service
|
void |
setTriggerParentRules(boolean triggerParentRules)
Indicates whether the parent rules should be triggered or the rules on the node itself
|
areRulesEnabled, getIgnoredAspects, getIgnoredTypes, ignoreTrigger, registerRuleType, setAuthenticationComponent, setContentService, setDictionaryService, setExecuteRuleImmediately, setIgnoredAspectsStr, setIgnoredTypeStr, setNodeService, setPolicyComponent, setRuleService, triggerRulespublic void setOnNewContent(boolean onNewContent)
onNewContent - indicates whether to fire on content create or updatepublic void setIgnoreEmptyContent(boolean ignoreEmptyContent)
ignoreEmptyContent - booleanpublic void setTriggerParentRules(boolean triggerParentRules)
triggerParentRules - true trigger parent rules, false otherwisepublic void setRuntimeRuleService(RuntimeRuleService runtimeRuleService)
public void registerRuleTrigger()
RuleTriggerregisterRuleTrigger in interface RuleTriggerpublic void onUpdateProperties(org.alfresco.service.cmr.repository.NodeRef nodeRef,
Map<org.alfresco.service.namespace.QName,Serializable> before,
Map<org.alfresco.service.namespace.QName,Serializable> after)
onUpdateProperties in interface NodeServicePolicies.OnUpdatePropertiesPolicynodeRef - reference to the updated nodebefore - the node's properties before the changeafter - the node's properties after the changeCopyright © 2005–2018 Alfresco Software. All rights reserved.