public class CreateNodeRuleTrigger extends RuleTriggerAbstractBase implements NodeServicePolicies.OnCreateNodePolicy
The create node trigger will only be fired if the object is NOT a sub-type of content.
Policy names supported are:
Policy.Arg
authenticationComponent, contentService, dictionaryService, executeRuleImmediately, nodeService, policyComponent, ruleService
QNAME
RULE_TRIGGER_NEW_NODES, RULE_TRIGGER_RENAMED_NODES
Constructor and Description |
---|
CreateNodeRuleTrigger() |
Modifier and Type | Method and Description |
---|---|
void |
onAddAspect(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName aspectTypeQName)
On add aspect behaviour
|
void |
onCreateNode(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef)
Called when a new node has been created.
|
void |
onRemoveAspect(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.namespace.QName aspectTypeQName)
On remove aspect behaviour
|
void |
registerRuleTrigger()
Register the rule trigger
|
void |
setIsClassBehaviour(boolean isClassBehaviour)
Set whether this is a class behaviour or not
|
void |
setRuntimeRuleService(RuntimeRuleService runtimeRuleService)
Set the rule service
|
areRulesEnabled, getIgnoredAspects, getIgnoredTypes, ignoreTrigger, registerRuleType, setAuthenticationComponent, setContentService, setDictionaryService, setExecuteRuleImmediately, setIgnoredAspectsStr, setIgnoredTypeStr, setNodeService, setPolicyComponent, setRuleService, triggerRules
public void setIsClassBehaviour(boolean isClassBehaviour)
public void setRuntimeRuleService(RuntimeRuleService runtimeRuleService)
public void registerRuleTrigger()
registerRuleTrigger
in interface RuleTrigger
public void onCreateNode(org.alfresco.service.cmr.repository.ChildAssociationRef childAssocRef)
onCreateNode
in interface NodeServicePolicies.OnCreateNodePolicy
childAssocRef
- the created child association referencepublic void onAddAspect(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName aspectTypeQName)
public void onRemoveAspect(org.alfresco.service.cmr.repository.NodeRef nodeRef, org.alfresco.service.namespace.QName aspectTypeQName)
Copyright © 2005–2017 Alfresco Software. All rights reserved.