Interface GroovyActionsService
-
- All Known Implementing Classes:
GroovyActionsServiceImpl
public interface GroovyActionsService
A service to load groovy files and manageGroovyAction
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description groovy.lang.GroovyCodeSource
getGroovyCodeSource(String id)
Get a groovy code source object by an idgroovy.lang.GroovyShell
getGroovyShell()
Get an instantiated groovy shell objectvoid
remove(String id)
Remove a groovy actionvoid
save(String actionName, String groovyScript)
Save a groovy action from a groovy file
-
-
-
Method Detail
-
save
void save(String actionName, String groovyScript)
Save a groovy action from a groovy file- Parameters:
actionName
- actionNamegroovyScript
- script to save
-
remove
void remove(String id)
Remove a groovy action- Parameters:
id
- of the action to remove
-
getGroovyCodeSource
groovy.lang.GroovyCodeSource getGroovyCodeSource(String id)
Get a groovy code source object by an id- Parameters:
id
- of the action to get- Returns:
- Groovy code source
-
getGroovyShell
groovy.lang.GroovyShell getGroovyShell()
Get an instantiated groovy shell object- Returns:
- GroovyShell
-
-