Package org.alfresco.repo.events
Class AbstractEventGenerationBehaviours
java.lang.Object
org.alfresco.repo.events.AbstractEventGenerationBehaviours
- Direct Known Subclasses:
EventGenerationBehaviours
- Author:
- steveglover
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<BehaviourDefinition<ClassBehaviourBinding>>protected static org.apache.commons.logging.Logprotected PolicyComponent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidbindAssociationPolicy(QName policyName, String eventTypeToCheck) Bind an association policy to a JavaBehaviour if a specific event type is enabledprotected voidbindClassPolicy(QName policyName) Bind a class policy to a JavaBehaviour.protected voidbindClassPolicy(QName policyName, String eventTypeToCheck) Bind a class policy to a JavaBehaviour if a specific event type is enabledprotected voidbindClassPolicy(QName policyName, QName className, String eventTypeToCheck) Bind a class policy to a JavaBehaviour if a specific event type is enabledvoidcleanUp()protected booleanincludeEventType(String eventType) protected voidprotected voidvoidsetIncludeEventTypes(String includeEventTypesStr) voidsetPolicyComponent(PolicyComponent policyComponent)
-
Field Details
-
logger
protected static org.apache.commons.logging.Log logger -
includeEventTypes
-
policyComponent
-
behaviours
-
-
Constructor Details
-
AbstractEventGenerationBehaviours
public AbstractEventGenerationBehaviours()
-
-
Method Details
-
addBehaviour
-
removeBehaviour
-
removeBehaviourImpl
-
cleanUp
public void cleanUp() -
setIncludeEventTypes
-
setPolicyComponent
-
includeEventType
-
bindClassPolicy
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
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
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
Bind a class policy to a JavaBehaviour.- Parameters:
policyName- the policy to implement or in other words the one we bind to the JavaBehaviour
-