Package net.sf.basedb.plugins.executor
Class ExternalProgramExecutor.RequestWrapper
java.lang.Object
net.sf.basedb.plugins.executor.ExternalProgramExecutor.RequestWrapper
- All Implemented Interfaces:
Request
- Enclosing class:
- ExternalProgramExecutor
-
Field Summary
Fields inherited from interface net.sf.basedb.core.plugin.Request
COMMAND_CONFIGURE_JOB, COMMAND_CONFIGURE_PLUGIN, COMMAND_EXECUTE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe command the plugin should execute.<T> T
getParameterValue
(String name) Get the value for the parameter with the specified name.<T> List<T>
getParameterValues
(String name) Get the values for the parameter with the specified name.getState()
Get state information that was previously saved byResponse.setPause(String, String, java.io.Serializable)
orResponse.setContinue(String, java.io.Serializable)
.boolean
If this plugin has been allowed immediate execution or not.(package private) void
setParameter
(String key, Object value)
-
Field Details
-
command
-
parent
-
parameters
-
-
Constructor Details
-
RequestWrapper
-
-
Method Details
-
setParameter
-
getCommand
Description copied from interface:Request
The command the plugin should execute. This value is one of the predefined constants above, or some other value that is supported by the specific plugin.- Specified by:
getCommand
in interfaceRequest
-
getState
Description copied from interface:Request
Get state information that was previously saved byResponse.setPause(String, String, java.io.Serializable)
orResponse.setContinue(String, java.io.Serializable)
. -
getParameterValue
Description copied from interface:Request
Get the value for the parameter with the specified name.- Specified by:
getParameterValue
in interfaceRequest
- Parameters:
name
- The name of the parameter- Returns:
- An object with the value, or null if no value is given
- Throws:
ParameterException
- If getting the value fails.
-
getParameterValues
Description copied from interface:Request
Get the values for the parameter with the specified name.- Specified by:
getParameterValues
in interfaceRequest
- Parameters:
name
- The name of the parameter- Returns:
- An object with the value, or null if no value is given
-
isAllowedImmediateExecution
public boolean isAllowedImmediateExecution()Description copied from interface:Request
If this plugin has been allowed immediate execution or not. If this is true the plugin may end a job configuration sequence withResponse.setExecuteImmediately(String, Job.ExecutionTime, boolean)
or, if the plugin is aImmediateDownloadExporter
,Response.setDownloadImmediately(String, Job.ExecutionTime, boolean)
.- Specified by:
isAllowedImmediateExecution
in interfaceRequest
- Returns:
- TRUE if it is allowed, FALSE otherwise
-