public abstract class RuleTriggerAbstractBase extends Object implements RuleTrigger
Modifier and Type | Field and Description |
---|---|
protected AuthenticationComponent |
authenticationComponent |
protected ContentService |
contentService |
protected org.alfresco.service.cmr.dictionary.DictionaryService |
dictionaryService |
protected boolean |
executeRuleImmediately
Indicates whether the rule should be executed immediately or at the end of the transaction.
|
protected org.alfresco.service.cmr.repository.NodeService |
nodeService |
protected PolicyComponent |
policyComponent |
protected RuleService |
ruleService |
RULE_TRIGGER_NEW_NODES, RULE_TRIGGER_RENAMED_NODES
Constructor and Description |
---|
RuleTriggerAbstractBase() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
areRulesEnabled()
Helper method to allow triggers to check if rules are enabled or disabled
(ALF-10839: Eliminate rule discovery overhead on property update when rules have been disabled)
|
Set<org.alfresco.service.namespace.QName> |
getIgnoredAspects() |
Set<org.alfresco.service.namespace.QName> |
getIgnoredTypes() |
protected boolean |
ignoreTrigger(org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
Indicate whether the trigger should be ignored or not
|
void |
registerRuleType(RuleType ruleType)
Registration of an interested rule type
|
void |
setAuthenticationComponent(AuthenticationComponent authenticationComponent)
Set the authenticationComponent
|
void |
setContentService(ContentService contentService)
Set the content service
|
void |
setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
Set the dictionary service
|
void |
setExecuteRuleImmediately(boolean executeRuleImmediately)
Sets the values that indicates whether the rule should be executed immediately or not.
|
void |
setIgnoredAspectsStr(List<String> ignoredAspects)
Converting String Aspects from Spring context to QNames
|
void |
setIgnoredTypeStr(List<String> ignoredTypes)
Converting String ignored Types from Spring context to QNames
|
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Set the node service
|
void |
setPolicyComponent(PolicyComponent policyComponent)
Set the policy component
|
void |
setRuleService(RuleService ruleService)
Set the RuleService to assist with enabled/disabled check
|
protected void |
triggerRules(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
Trigger the rules that relate to any interested rule types for the node
references passed.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
registerRuleTrigger
protected PolicyComponent policyComponent
protected org.alfresco.service.cmr.repository.NodeService nodeService
protected ContentService contentService
protected AuthenticationComponent authenticationComponent
protected org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService
protected RuleService ruleService
protected boolean executeRuleImmediately
public void setPolicyComponent(PolicyComponent policyComponent)
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public void setContentService(ContentService contentService)
public void setAuthenticationComponent(AuthenticationComponent authenticationComponent)
public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
public void setRuleService(RuleService ruleService)
public void setExecuteRuleImmediately(boolean executeRuleImmediately)
executeRuleImmediately
- true execute the rule immediaely, false otherwisepublic void registerRuleType(RuleType ruleType)
registerRuleType
in interface RuleTrigger
ruleType
- the rule typeprotected void triggerRules(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
nodeRef
- the node reference who rules are to be triggeredactionedUponNodeRef
- the node reference that will be actioned upon by the rulesprotected boolean areRulesEnabled()
protected boolean ignoreTrigger(org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
actionedUponNodeRef
- actioned upon node referencepublic Set<org.alfresco.service.namespace.QName> getIgnoredAspects()
public void setIgnoredAspectsStr(List<String> ignoredAspects)
ignoredAspects
- List of ignoredAspectspublic Set<org.alfresco.service.namespace.QName> getIgnoredTypes()
Copyright © 2005–2017 Alfresco Software. All rights reserved.