Package org.biouno.unochoice.util
Class ScriptCallback<T extends Throwable>
java.lang.Object
org.biouno.unochoice.util.ScriptCallback<T>
- All Implemented Interfaces:
hudson.remoting.Callable<Object,
,T> Serializable
,org.jenkinsci.remoting.RoleSensitive
public class ScriptCallback<T extends Throwable>
extends Object
implements hudson.remoting.Callable<Object,T>
A callable (Jenkins remoting API) object that executes the script locally (when executed in the master)
or remotely.
- Since:
- 0.1
- Author:
- dynamic-parameter-plugin, Bruno P. Kinoshita
- See Also:
-
Constructor Details
-
ScriptCallback
Create a new ScriptCallback. This can be used to execute code either local or remotely.- Parameters:
name
- callable namescript
- scriptparameters
- Map of parameters
-
-
Method Details
-
getName
Get script callback name.- Returns:
- name
-
getParameters
Get script parameters. Used to populate bound variables.- Returns:
- Map with parameters
-
getScript
Get the script.- Returns:
- Script script
-
call
-
checkRoles
- Specified by:
checkRoles
in interfaceorg.jenkinsci.remoting.RoleSensitive
- Throws:
SecurityException
-