org.alfresco.repo.policy
Class BaseBehaviour

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

public abstract class BaseBehaviour
extends java.lang.Object
implements Behaviour

Base behaviour implementation


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.alfresco.repo.policy.Behaviour
Behaviour.NotificationFrequency
 
Field Summary
protected  Behaviour.NotificationFrequency frequency
          The notification frequency
protected  java.util.Map proxies
          Proxies
 
Constructor Summary
BaseBehaviour()
          Default constructor
BaseBehaviour(Behaviour.NotificationFrequency frequency)
          Constructor
 
Method Summary
 void disable()
          Disable this behaviour for the curent thread
 void enable()
          Enable this behaviour for the current thread
 Behaviour.NotificationFrequency getNotificationFrequency()
          Get the notification frequency
 boolean isEnabled()
          Indicates whether the this behaviour is current enabled or not
 void setNotificationFrequency(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 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

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


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.