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
Interface Behaviour
All Known Implementing Classes:
BaseBehaviour, JavaBehaviour

@org.alfresco.api.AlfrescoPublicApi
public interface Behaviour
A Behaviour represents an encapsulated piece of logic (system or business) that may be bound to a Policy. The logic may be expressed in any language (java, script etc). Once bound to a Policy, the behaviour must be able to provide the interface declared by that policy.
Author:
David Caruana

Nested Class Summary
static enum
Behaviour.NotificationFrequency
          When should behaviour be notified?
Method Summary
void
disable()
          Disable the behaviour (for this thread only)
void
enable()
          Enable the behaviour (for this thread only)
<T> T
getInterface(Class<T> policy)
          Gets the requested policy interface onto the behaviour
getNotificationFrequency()
boolean
isEnabled()
Method Detail
getInterface
<T> T getInterface(Class<T> policy)
Gets the requested policy interface onto the behaviour
Parameters:
policy - the policy interface class
Returns:
the policy interface

disable
void disable()
Disable the behaviour (for this thread only)

enable
void enable()
Enable the behaviour (for this thread only)

isEnabled
boolean isEnabled()
Returns:
is the behaviour enabled (for this thread only)

getNotificationFrequency
Behaviour.NotificationFrequency getNotificationFrequency()
Returns:
the notification

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–2018 Alfresco Software. All rights reserved.

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