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:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
call()
void
checkRoles(org.jenkinsci.remoting.RoleChecker roleChecker)
String
getName()
Get script callback name.Map<String,String>
getParameters()
Get script parameters.Script
getScript()
Get the script.
-
-
-
Method Detail
-
getName
public String getName()
Get script callback name.- Returns:
- name
-
getParameters
public Map<String,String> getParameters()
Get script parameters. Used to populate bound variables.- Returns:
- Map with parameters
-
getScript
public Script getScript()
Get the script.- Returns:
- Script script
-
checkRoles
public void checkRoles(org.jenkinsci.remoting.RoleChecker roleChecker) throws SecurityException
- Specified by:
checkRoles
in interfaceorg.jenkinsci.remoting.RoleSensitive
- Throws:
SecurityException
-
-