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
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 -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorBaseBehaviour(Behaviour.NotificationFrequency frequency) Constructor -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.alfresco.repo.policy.Behaviour
getInterface
-
Field Details
-
frequency
The notification frequency -
proxies
Proxies
-
-
Constructor Details
-
BaseBehaviour
public BaseBehaviour()Default constructor -
BaseBehaviour
Constructor- Parameters:
frequency- the notification frequency
-
-
Method Details
-
setNotificationFrequency
-
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
Get the notification frequency- Specified by:
getNotificationFrequencyin interfaceBehaviour- Returns:
- the notification frequency
-