Package org.cyclos.entities.system
Class ServiceInterceptor
-
- All Implemented Interfaces:
Cloneable,Comparable<NamedEntity>,HasNetwork,HasOrder,ProcessableForProxying,DefinesNetwork,IEntity,IInternalNamedEntity,INamedEntity,UsesScript
@Entity public class ServiceInterceptor extends ConfigurationOrderableEntity implements DefinesNetwork, UsesScript
A service interceptor works like an AOP pointcut, defining the intercepted operations for a script
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.cyclos.entities.SimpleEntity
SimpleEntity.EntityLoadNotifier
-
-
Constructor Summary
Constructors Constructor Description ServiceInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NetworkgetNetwork()Returns the network this entity belongs toStringgetOperations()CustomScriptgetScript()StringgetScriptParameters()CustomScriptUsedInTypegetScriptUsedInType()Returns the type of script usageStringgetServices()booleanisAllOperations()booleanisAllServices()booleanisEnabled()Indicates whether this entity is enabledvoidsetEnabled(boolean enabled)voidsetNetwork(Network network)voidsetOperations(String operations)voidsetScript(CustomScript script)voidsetScriptParameters(String scriptParameters)voidsetServices(String services)-
Methods inherited from class org.cyclos.entities.ConfigurationOrderableEntity
compareTo, getOrder, setOrder, toString
-
Methods inherited from class org.cyclos.entities.ConfigurationEntity
getDescription, getInternalName, setDescription, setInternalName, toShortString
-
Methods inherited from class org.cyclos.entities.NamedEntity
getName, getNames, setName
-
Methods inherited from class org.cyclos.entities.BaseEntity
getDataTranslationType, getVersion
-
Methods inherited from class org.cyclos.entities.NetworkedEntity
isGlobal
-
Methods inherited from class org.cyclos.entities.SimpleEntity
equals, getId, hashCode, id, ids, isPersistent, isTransient, register, setId, uniqueIds, uniqueIds
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.cyclos.model.IInternalNamedEntity
matches
-
Methods inherited from interface org.cyclos.entities.ProcessableForProxying
getProxyClass
-
-
-
-
Method Detail
-
getNetwork
public Network getNetwork()
Description copied from interface:HasNetworkReturns the network this entity belongs to- Specified by:
getNetworkin interfaceHasNetwork
-
getOperations
public String getOperations()
-
getScript
public CustomScript getScript()
-
getScriptParameters
public String getScriptParameters()
-
getScriptUsedInType
public CustomScriptUsedInType getScriptUsedInType()
Description copied from interface:UsesScriptReturns the type of script usage- Specified by:
getScriptUsedInTypein interfaceUsesScript
-
getServices
public String getServices()
-
isAllOperations
public boolean isAllOperations()
-
isAllServices
public boolean isAllServices()
-
isEnabled
public boolean isEnabled()
Description copied from interface:UsesScriptIndicates whether this entity is enabled- Specified by:
isEnabledin interfaceUsesScript
-
setEnabled
public void setEnabled(boolean enabled)
-
setNetwork
public void setNetwork(Network network)
- Specified by:
setNetworkin interfaceDefinesNetwork
-
setOperations
public void setOperations(String operations)
-
setScript
public void setScript(CustomScript script)
-
setScriptParameters
public void setScriptParameters(String scriptParameters)
-
setServices
public void setServices(String services)
-
-