Package org.cyclos.entities.system
Class CustomScript
- java.lang.Object
-
- org.cyclos.entities.SimpleEntity
-
- org.cyclos.entities.NetworkedEntity
-
- org.cyclos.entities.BaseEntity
-
- org.cyclos.entities.NamedEntity
-
- org.cyclos.entities.ConfigurationEntity
-
- org.cyclos.entities.system.CustomScript
-
- All Implemented Interfaces:
Cloneable,Comparable<NamedEntity>,HasNetwork,ProcessableForProxying,DefinesNetwork,IEntity,IInternalNamedEntity,INamedEntity,UsesScript
@Entity public class CustomScript extends ConfigurationEntity implements DefinesNetwork, UsesScript
Stores a custom script, which may be used for custom extension points
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.cyclos.entities.SimpleEntity
SimpleEntity.EntityLoadNotifier
-
-
Constructor Summary
Constructors Constructor Description CustomScript()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<CustomScript>getDependencies()Map<String,String>getFunctions()NetworkgetNetwork()Returns the network this entity belongs toStringgetParameters()CustomScriptUsedInTypegetScriptUsedInType()Returns the type of script usageScriptTypegetType()booleanisRunAsSystem()voidsetDependencies(Set<CustomScript> dependencies)voidsetFunctions(Map<String,String> functions)voidsetNetwork(Network network)voidsetParameters(String parameters)voidsetRunAsSystem(boolean isRunsAsSystem)voidsetType(ScriptType type)-
Methods inherited from class org.cyclos.entities.ConfigurationEntity
getDescription, getInternalName, setDescription, setInternalName, toShortString, toString
-
Methods inherited from class org.cyclos.entities.NamedEntity
compareTo, 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
-
Methods inherited from interface org.cyclos.model.system.scripts.UsesScript
isEnabled
-
-
-
-
Method Detail
-
getDependencies
public Set<CustomScript> getDependencies()
-
getNetwork
public Network getNetwork()
Description copied from interface:HasNetworkReturns the network this entity belongs to- Specified by:
getNetworkin interfaceHasNetwork
-
getParameters
public String getParameters()
-
getScriptUsedInType
public CustomScriptUsedInType getScriptUsedInType()
Description copied from interface:UsesScriptReturns the type of script usage- Specified by:
getScriptUsedInTypein interfaceUsesScript
-
getType
public ScriptType getType()
-
isRunAsSystem
public boolean isRunAsSystem()
-
setDependencies
public void setDependencies(Set<CustomScript> dependencies)
-
setNetwork
public void setNetwork(Network network)
- Specified by:
setNetworkin interfaceDefinesNetwork
-
setParameters
public void setParameters(String parameters)
-
setRunAsSystem
public void setRunAsSystem(boolean isRunsAsSystem)
-
setType
public void setType(ScriptType type)
-
-