public class OnContentUpdateRuleTrigger extends RuleTriggerAbstractBase implements ContentServicePolicies.OnContentPropertyUpdatePolicy
Policy.ArgauthenticationComponent, contentService, dictionaryService, executeRuleImmediately, nodeService, policyComponent, ruleServiceQNAMERULE_TRIGGER_NEW_NODES, RULE_TRIGGER_RENAMED_NODES| Constructor and Description |
|---|
OnContentUpdateRuleTrigger() |
| Modifier and Type | Method and Description |
|---|---|
void |
onContentPropertyUpdate(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName propertyQName,
org.alfresco.service.cmr.repository.ContentData beforeValue,
org.alfresco.service.cmr.repository.ContentData afterValue) |
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
|
areRulesEnabled, registerRuleType, setAuthenticationComponent, setContentService, setDictionaryService, setExecuteRuleImmediately, setNodeService, setPolicyComponent, setRuleService, triggerRulespublic void setOnNewContent(boolean onNewContent)
onNewContent - indicates whether to fire on content create or updatepublic void setTriggerParentRules(boolean triggerParentRules)
triggerParentRules - true trigger parent rules, false otherwisepublic void registerRuleTrigger()
RuleTriggerregisterRuleTrigger in interface RuleTriggerpublic void onContentPropertyUpdate(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName propertyQName,
org.alfresco.service.cmr.repository.ContentData beforeValue,
org.alfresco.service.cmr.repository.ContentData afterValue)
onContentPropertyUpdate in interface ContentServicePolicies.OnContentPropertyUpdatePolicynodeRef - the node referencepropertyQName - the name of the property that changedbeforeValue - the value of the content data prior to the change.
Note that this value may be null or any of it's member
values may be null according to the contract of the
ContentData class.afterValue - the value of the content data after the changeContentServicePolicies.OnContentPropertyUpdatePolicy.onContentPropertyUpdate(org.alfresco.service.cmr.repository.NodeRef, org.alfresco.service.namespace.QName, org.alfresco.service.cmr.repository.ContentData, org.alfresco.service.cmr.repository.ContentData)Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.