|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.rule.ruletrigger.RuleTriggerAbstractBase
org.alfresco.repo.rule.ruletrigger.OnContentUpdateRuleTrigger
public class OnContentUpdateRuleTrigger
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 |
---|
public OnContentUpdateRuleTrigger()
Method Detail |
---|
public 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()
RuleTrigger
registerRuleTrigger
in interface RuleTrigger
public void onContentUpdate(org.alfresco.service.cmr.repository.NodeRef nodeRef, boolean newContent)
onContentUpdate
in interface ContentServicePolicies.OnContentUpdatePolicy
nodeRef
- the node referenceContentServicePolicies.OnContentUpdatePolicy.onContentUpdate(org.alfresco.service.cmr.repository.NodeRef, boolean)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |