Class BaseBehaviour

java.lang.Object
org.alfresco.repo.policy.BaseBehaviour
All Implemented Interfaces:
Behaviour
Direct Known Subclasses:
EventBehaviour, JavaBehaviour, ScriptBehaviour

@AlfrescoPublicApi public abstract class BaseBehaviour extends Object implements Behaviour
Base behaviour implementation
Author:
Roy Wetherall
  • Field Details

  • Constructor Details

    • BaseBehaviour

      public BaseBehaviour()
      Default constructor
    • BaseBehaviour

      public BaseBehaviour(Behaviour.NotificationFrequency frequency)
      Constructor
      Parameters:
      frequency - the notification frequency
  • Method Details

    • setNotificationFrequency

      public void setNotificationFrequency(Behaviour.NotificationFrequency frequency)
    • disable

      public void disable()
      Disable this behaviour for the curent thread
      Specified by:
      disable in interface Behaviour
    • enable

      public void enable()
      Enable this behaviour for the current thread
      Specified by:
      enable in interface Behaviour
    • isEnabled

      public boolean isEnabled()
      Indicates whether the this behaviour is current enabled or not
      Specified by:
      isEnabled in interface Behaviour
      Returns:
      true if the behaviour is enabled, false otherwise
    • getNotificationFrequency

      public Behaviour.NotificationFrequency getNotificationFrequency()
      Get the notification frequency
      Specified by:
      getNotificationFrequency in interface Behaviour
      Returns:
      the notification frequency