Overview  Package   Class  Use  Tree  Deprecated  Index  Help 
PREV CLASS   NEXT CLASS FRAMES    NO FRAMES    All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

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

public abstract class BaseBehaviour
extends Object
implements Behaviour
Base behaviour implementation
Author:
Roy Wetherall

Nested classes/interfaces inherited from interface org.alfresco.repo.policy.Behaviour
Behaviour.NotificationFrequency
Field Summary
frequency
          The notification frequency
protected Map<Class,Object>
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
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 Map<Class,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
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

Overview  Package   Class  Use  Tree  Deprecated  Index  Help 
PREV CLASS   NEXT CLASS FRAMES    NO FRAMES    All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Copyright © 2005–2016 Alfresco Software. All rights reserved.

Java API documentation generated with DocFlex/Javadoc 1.6.1 using JavadocPro template set.