Package org.alfresco.repo.jscript
Class ScriptBehaviour
- java.lang.Object
-
- org.alfresco.repo.policy.BaseBehaviour
-
- org.alfresco.repo.jscript.ScriptBehaviour
-
- All Implemented Interfaces:
Behaviour
public class ScriptBehaviour extends BaseBehaviour
JavaScript behaviour implementation- Author:
- Roy Wetherall
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.alfresco.repo.policy.Behaviour
Behaviour.NotificationFrequency
-
-
Field Summary
-
Fields inherited from class org.alfresco.repo.policy.BaseBehaviour
frequency, proxies
-
-
Constructor Summary
Constructors Constructor Description ScriptBehaviour()ScriptBehaviour(ServiceRegistry serviceRegistry, ScriptLocation location)ScriptBehaviour(ServiceRegistry serviceRegistry, ScriptLocation location, Behaviour.NotificationFrequency frequency)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> TgetInterface(java.lang.Class<T> policy)Gets the requested policy interface onto the behaviourvoidsetLocation(ScriptLocation location)voidsetServiceRegistry(ServiceRegistry serviceRegistry)java.lang.StringtoString()-
Methods inherited from class org.alfresco.repo.policy.BaseBehaviour
disable, enable, getNotificationFrequency, isEnabled, setNotificationFrequency
-
-
-
-
Constructor Detail
-
ScriptBehaviour
public ScriptBehaviour()
-
ScriptBehaviour
public ScriptBehaviour(ServiceRegistry serviceRegistry, ScriptLocation location)
-
ScriptBehaviour
public ScriptBehaviour(ServiceRegistry serviceRegistry, ScriptLocation location, Behaviour.NotificationFrequency frequency)
-
-
Method Detail
-
setServiceRegistry
public void setServiceRegistry(ServiceRegistry serviceRegistry)
-
setLocation
public void setLocation(ScriptLocation location)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getInterface
public <T> T getInterface(java.lang.Class<T> policy)
Description copied from interface:BehaviourGets the requested policy interface onto the behaviour- Parameters:
policy- the policy interface class- Returns:
- the policy interface
-
-