public interface CustomScriptServiceLocal extends CRUDServiceLocal<CustomScript,CustomScriptDTO,CustomScriptData,ScriptType>, CustomScriptService
CustomScriptServiceLocal| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ATTR_ENTITY_MANAGER
Script context binding: the JPA EntityManager instance
|
static java.lang.String |
ATTR_FORMATTER
Script context binding: the
FormatterImpl instance |
static java.lang.String |
ATTR_SCRIPT_HELPER
Script context binding: the
ScriptHelper instance |
static java.lang.String |
ATTR_SCRIPT_PARAMETERS
Script context binding: script parameters, as
Properties |
static java.lang.String |
ATTR_SESSION_DATA
Script context binding: the
SessionData instance |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<java.lang.Long> |
getReverseDependencyIds(java.lang.Long id)
Returns the identifiers of all scripts which depend, directly or indirectly on the script with the given id.
|
java.util.List<CustomScript> |
listByType(ScriptType type)
Returns a list of scripts by type
|
org.cyclos.impl.system.CustomScriptAccessor |
newAccessor(CustomScript script,
java.lang.String scriptParameters)
Returns a
CustomScriptAccessor which can be used to run the given script. |
Pair<java.lang.String,java.util.Map<ScriptFunction,java.lang.String>> |
resolveCode(CustomScript script)
Returns the final code for each script function, including dependencies.
|
find, findAll, getEntityClass, newEntity, remove, removeAll, toDTO, toEntity, validaterun, searchgetData, getDataForNew, load, remove, removeAll, savestatic final java.lang.String ATTR_SCRIPT_PARAMETERS
Propertiesstatic final java.lang.String ATTR_SCRIPT_HELPER
ScriptHelper instancestatic final java.lang.String ATTR_SESSION_DATA
SessionData instancestatic final java.lang.String ATTR_ENTITY_MANAGER
static final java.lang.String ATTR_FORMATTER
FormatterImpl instancejava.util.Set<java.lang.Long> getReverseDependencyIds(java.lang.Long id)
java.util.List<CustomScript> listByType(ScriptType type)
org.cyclos.impl.system.CustomScriptAccessor newAccessor(CustomScript script, java.lang.String scriptParameters)
CustomScriptAccessor which can be used to run the given script.Pair<java.lang.String,java.util.Map<ScriptFunction,java.lang.String>> resolveCode(CustomScript script)