|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ParameterValues
This interface is used by the plugin to access the different parameters attached to its job and configuration.
Method Summary | ||
---|---|---|
int |
getId()
Get the ID of the job or configuration the parameters comes from. |
|
Job |
getJob()
Get the job that we are executing/configuring. |
|
PluginConfiguration |
getPluginConfiguration()
Get the configuration that we are using/configuring. |
|
PluginDefinition |
getPluginDefinition()
Get the plugin that we are executing/configuring. |
|
Object |
getValue(String name)
Get a single value for a specific parameter. |
|
List<?> |
getValues(String name)
Get a List of values for a specific parameter. |
|
|
setValue(String name,
ParameterType<T> type,
T value)
Set a single value for a parameter. |
|
|
setValues(String name,
ParameterType<T> type,
List<T> values)
Set a list of values for a parameter. |
Method Detail |
---|
PluginDefinition getPluginDefinition()
Job getJob()
PluginConfiguration getPluginConfiguration()
int getId()
Object getValue(String name) throws PermissionDeniedException, BaseException
getValues(String)
to return
all values as a list.
name
- the name of the parameter
PermissionDeniedException
- If the logged in user doesn't
have permission to read the value
BaseException
- If there is another errorList<?> getValues(String name) throws PermissionDeniedException, BaseException
List
of values for a specific parameter.
name
- The name of the parameter
PermissionDeniedException
- If the logged in user doesn't
have permission to read the values
BaseException
- If there is another error<T> void setValue(String name, ParameterType<T> type, T value) throws PermissionDeniedException, InvalidDataException, BaseException
name
- The name of the parametertype
- The type of the valuevalue
- The value to be set
PermissionDeniedException
- If the logged in user doesn't
have write permission
InvalidDataException
- If the value is invalid according
to the settings in the type
BaseException
- If there is another error<T> void setValues(String name, ParameterType<T> type, List<T> values) throws PermissionDeniedException, InvalidDataException, BaseException
name
- The name of the parametertype
- The type of the valuevalues
- A list containing the values
PermissionDeniedException
- If the logged in user doesn't
have write permission
InvalidDataException
- If any of the values is invalid according
to the settings in the type
BaseException
- If there is another error
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |