Package org.alfresco.repo.events
Class AbstractEventGenerationBehaviours
- java.lang.Object
-
- org.alfresco.repo.events.AbstractEventGenerationBehaviours
-
- Direct Known Subclasses:
EventGenerationBehaviours
public abstract class AbstractEventGenerationBehaviours extends java.lang.Object- Author:
- steveglover
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<BehaviourDefinition<ClassBehaviourBinding>>behavioursprotected java.util.Set<java.lang.String>includeEventTypesprotected static org.apache.commons.logging.Logloggerprotected PolicyComponentpolicyComponent
-
Constructor Summary
Constructors Constructor Description AbstractEventGenerationBehaviours()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddBehaviour(BehaviourDefinition<ClassBehaviourBinding> binding)protected voidbindAssociationPolicy(org.alfresco.service.namespace.QName policyName, java.lang.String eventTypeToCheck)Bind an association policy to a JavaBehaviour if a specific event type is enabledprotected voidbindClassPolicy(org.alfresco.service.namespace.QName policyName)Bind a class policy to a JavaBehaviour.protected voidbindClassPolicy(org.alfresco.service.namespace.QName policyName, java.lang.String eventTypeToCheck)Bind a class policy to a JavaBehaviour if a specific event type is enabledprotected voidbindClassPolicy(org.alfresco.service.namespace.QName policyName, org.alfresco.service.namespace.QName className, java.lang.String eventTypeToCheck)Bind a class policy to a JavaBehaviour if a specific event type is enabledvoidcleanUp()protected booleanincludeEventType(java.lang.String eventType)protected voidremoveBehaviour(BehaviourDefinition<ClassBehaviourBinding> binding)protected voidremoveBehaviourImpl(BehaviourDefinition<ClassBehaviourBinding> binding)voidsetIncludeEventTypes(java.lang.String includeEventTypesStr)voidsetPolicyComponent(PolicyComponent policyComponent)
-
-
-
Field Detail
-
logger
protected static org.apache.commons.logging.Log logger
-
includeEventTypes
protected java.util.Set<java.lang.String> includeEventTypes
-
policyComponent
protected PolicyComponent policyComponent
-
behaviours
protected java.util.List<BehaviourDefinition<ClassBehaviourBinding>> behaviours
-
-
Method Detail
-
addBehaviour
protected void addBehaviour(BehaviourDefinition<ClassBehaviourBinding> binding)
-
removeBehaviour
protected void removeBehaviour(BehaviourDefinition<ClassBehaviourBinding> binding)
-
removeBehaviourImpl
protected void removeBehaviourImpl(BehaviourDefinition<ClassBehaviourBinding> binding)
-
cleanUp
public void cleanUp()
-
setIncludeEventTypes
public void setIncludeEventTypes(java.lang.String includeEventTypesStr)
-
setPolicyComponent
public void setPolicyComponent(PolicyComponent policyComponent)
-
includeEventType
protected boolean includeEventType(java.lang.String eventType)
-
bindClassPolicy
protected void bindClassPolicy(org.alfresco.service.namespace.QName policyName, java.lang.String eventTypeToCheck)Bind a class policy to a JavaBehaviour if a specific event type is enabled- Parameters:
policyName- the policy to implement or in other words the one we bind to the JavaBehavioureventTypeToCheck- implement the policy only if the event is supported
-
bindClassPolicy
protected void bindClassPolicy(org.alfresco.service.namespace.QName policyName, org.alfresco.service.namespace.QName className, java.lang.String eventTypeToCheck)Bind a class policy to a JavaBehaviour if a specific event type is enabled- Parameters:
policyName- the policy to implement or in other words the one we bind to the JavaBehaviourclassName- the class to bind toeventTypeToCheck- implement the policy only if the event is supported
-
bindAssociationPolicy
protected void bindAssociationPolicy(org.alfresco.service.namespace.QName policyName, java.lang.String eventTypeToCheck)Bind an association policy to a JavaBehaviour if a specific event type is enabled- Parameters:
policyName- the policy to implement or in other words the one we bind to the JavaBehavioureventTypeToCheck- implement the policy only if this event type is enabled
-
bindClassPolicy
protected void bindClassPolicy(org.alfresco.service.namespace.QName policyName)
Bind a class policy to a JavaBehaviour.- Parameters:
policyName- the policy to implement or in other words the one we bind to the JavaBehaviour
-
-