Package org.alfresco.repo.policy
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 java.lang.Object implements Behaviour
Base behaviour implementation- Author:
- Roy Wetherall
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.alfresco.repo.policy.Behaviour
Behaviour.NotificationFrequency
-
-
Field Summary
Fields Modifier and Type Field Description protected Behaviour.NotificationFrequencyfrequencyThe notification frequencyprotected java.util.Map<java.lang.Class,java.lang.Object>proxiesProxies
-
Constructor Summary
Constructors Constructor Description BaseBehaviour()Default constructorBaseBehaviour(Behaviour.NotificationFrequency frequency)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddisable()Disable this behaviour for the curent threadvoidenable()Enable this behaviour for the current threadBehaviour.NotificationFrequencygetNotificationFrequency()Get the notification frequencybooleanisEnabled()Indicates whether the this behaviour is current enabled or notvoidsetNotificationFrequency(Behaviour.NotificationFrequency frequency)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.alfresco.repo.policy.Behaviour
getInterface
-
-
-
-
Field Detail
-
frequency
protected Behaviour.NotificationFrequency frequency
The notification frequency
-
proxies
protected java.util.Map<java.lang.Class,java.lang.Object> proxies
Proxies
-
-
Constructor Detail
-
BaseBehaviour
public BaseBehaviour()
Default constructor
-
BaseBehaviour
public BaseBehaviour(Behaviour.NotificationFrequency frequency)
Constructor- Parameters:
frequency- the notification frequency
-
-
Method Detail
-
setNotificationFrequency
public void setNotificationFrequency(Behaviour.NotificationFrequency frequency)
-
disable
public void disable()
Disable this behaviour for the curent thread
-
enable
public void enable()
Enable this behaviour for the current thread
-
isEnabled
public boolean isEnabled()
Indicates whether the this behaviour is current enabled or not
-
getNotificationFrequency
public Behaviour.NotificationFrequency getNotificationFrequency()
Get the notification frequency- Specified by:
getNotificationFrequencyin interfaceBehaviour- Returns:
- the notification frequency
-
-