|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.model.ParameterDefinition
hudson.model.SimpleParameterDefinition
com.seitenbau.jenkins.plugins.dynamicparameter.BaseParameterDefinition
public abstract class BaseParameterDefinition
Base class for all script parameter definition classes.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class hudson.model.ParameterDefinition |
|---|
hudson.model.ParameterDefinition.ParameterDescriptor |
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
|---|
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Field Summary | |
|---|---|
protected static Logger |
logger
Logger. |
| Fields inherited from class hudson.model.ParameterDefinition |
|---|
LIST |
| Constructor Summary | |
|---|---|
protected |
BaseParameterDefinition(String name,
String description,
String uuid,
boolean remote)
Constructor. |
| Method Summary | |
|---|---|
protected hudson.model.StringParameterValue |
checkParameterValue(hudson.model.StringParameterValue value)
Checks the validity of the given parameter value. |
hudson.model.ParameterValue |
createValue(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject jo)
|
hudson.model.ParameterValue |
createValue(String value)
Return a Parameter value object for a command line parameter. |
List<Object> |
getScriptResultAsList()
Get the script result as a list. |
String |
getScriptResultAsString()
Get the script result as a string. |
UUID |
getUUID()
Get unique id for this parameter definition. |
boolean |
isRemote()
Should the script be executed to on a remote slave? |
protected abstract hudson.remoting.Callable<Object,Throwable> |
prepareLocalCall()
Prepare a local call. |
protected abstract hudson.remoting.Callable<Object,Throwable> |
prepareRemoteCall(hudson.remoting.VirtualChannel channel)
Prepare a remote call. |
| Methods inherited from class hudson.model.SimpleParameterDefinition |
|---|
createValue, createValue |
| Methods inherited from class hudson.model.ParameterDefinition |
|---|
all, copyWithDefaultValue, getDefaultParameterValue, getDescription, getDescriptor, getName, getType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final Logger logger
| Constructor Detail |
|---|
protected BaseParameterDefinition(String name,
String description,
String uuid,
boolean remote)
name - parameter namedescription - parameter descriptionuuid - UUID of the parameter definitionremote - flag showing if the script should be executed remotely| Method Detail |
|---|
public hudson.model.ParameterValue createValue(String value)
createValue in class hudson.model.SimpleParameterDefinitionpublic final boolean isRemote()
true if the script should be executed remotelypublic final UUID getUUID()
public final List<Object> getScriptResultAsList()
Collections.EMPTY_LIST, otherwisepublic final String getScriptResultAsString()
null
public final hudson.model.ParameterValue createValue(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject jo)
createValue in class hudson.model.ParameterDefinitionprotected hudson.model.StringParameterValue checkParameterValue(hudson.model.StringParameterValue value)
value - parameter value to check
IllegalArgumentException - if the value in not valid
protected abstract hudson.remoting.Callable<Object,Throwable> prepareLocalCall()
throws Exception
Exception - if a call instance cannot be created
protected abstract hudson.remoting.Callable<Object,Throwable> prepareRemoteCall(hudson.remoting.VirtualChannel channel)
throws Exception
channel - channel to the remote slave where the call will be executed
Exception - if a call instance cannot be created
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||