Class AbstractEventGenerationBehaviours

  • Direct Known Subclasses:
    EventGenerationBehaviours

    public abstract class AbstractEventGenerationBehaviours
    extends java.lang.Object
    Author:
    steveglover
    • Field Detail

      • logger

        protected static org.apache.commons.logging.Log logger
      • includeEventTypes

        protected java.util.Set<java.lang.String> includeEventTypes
    • Constructor Detail

      • AbstractEventGenerationBehaviours

        public AbstractEventGenerationBehaviours()
    • Method Detail

      • 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 JavaBehaviour
        eventTypeToCheck - 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 JavaBehaviour
        className - the class to bind to
        eventTypeToCheck - 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 JavaBehaviour
        eventTypeToCheck - 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