public abstract class AbstractEventGenerationBehaviours extends Object
| Modifier and Type | Field and Description |
|---|---|
protected List<BehaviourDefinition<ClassBehaviourBinding>> |
behaviours |
protected Set<String> |
includeEventTypes |
protected static org.apache.commons.logging.Log |
logger |
protected PolicyComponent |
policyComponent |
| Constructor and Description |
|---|
AbstractEventGenerationBehaviours() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addBehaviour(BehaviourDefinition<ClassBehaviourBinding> binding) |
protected void |
bindAssociationPolicy(org.alfresco.service.namespace.QName policyName,
String eventTypeToCheck)
Bind an association policy to a JavaBehaviour if a specific event type is enabled
|
protected void |
bindClassPolicy(org.alfresco.service.namespace.QName policyName)
Bind a class policy to a JavaBehaviour.
|
protected void |
bindClassPolicy(org.alfresco.service.namespace.QName policyName,
org.alfresco.service.namespace.QName className,
String eventTypeToCheck)
Bind a class policy to a JavaBehaviour if a specific event type is enabled
|
protected void |
bindClassPolicy(org.alfresco.service.namespace.QName policyName,
String eventTypeToCheck)
Bind a class policy to a JavaBehaviour if a specific event type is enabled
|
void |
cleanUp() |
protected boolean |
includeEventType(String eventType) |
protected void |
removeBehaviour(BehaviourDefinition<ClassBehaviourBinding> binding) |
protected void |
removeBehaviourImpl(BehaviourDefinition<ClassBehaviourBinding> binding) |
void |
setIncludeEventTypes(String includeEventTypesStr) |
void |
setPolicyComponent(PolicyComponent policyComponent) |
protected static org.apache.commons.logging.Log logger
protected PolicyComponent policyComponent
protected List<BehaviourDefinition<ClassBehaviourBinding>> behaviours
protected void addBehaviour(BehaviourDefinition<ClassBehaviourBinding> binding)
protected void removeBehaviour(BehaviourDefinition<ClassBehaviourBinding> binding)
protected void removeBehaviourImpl(BehaviourDefinition<ClassBehaviourBinding> binding)
public void cleanUp()
public void setIncludeEventTypes(String includeEventTypesStr)
public void setPolicyComponent(PolicyComponent policyComponent)
protected boolean includeEventType(String eventType)
protected void bindClassPolicy(org.alfresco.service.namespace.QName policyName,
String eventTypeToCheck)
policyName - the policy to implement or in other words the one we bind to the JavaBehavioureventTypeToCheck - implement the policy only if the event is supportedprotected void bindClassPolicy(org.alfresco.service.namespace.QName policyName,
org.alfresco.service.namespace.QName className,
String eventTypeToCheck)
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 supportedprotected void bindAssociationPolicy(org.alfresco.service.namespace.QName policyName,
String eventTypeToCheck)
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 enabledprotected void bindClassPolicy(org.alfresco.service.namespace.QName policyName)
policyName - the policy to implement or in other words the one we bind to the JavaBehaviourCopyright © 2005–2018 Alfresco Software. All rights reserved.