java.lang.Object | ||
↳ | com.microstrategy.utils.config.AbstractConfigurationElement | |
↳ | com.microstrategy.web.tasks.config.TaskParameterMetadataImpl |
THIS CLASS IS NOT SUPPORTED FOR USE IN CUSTOM APPLICATION DEVELOPMENT. THE CLASS IS SUBJECT TO CHANGE IN FUTURE RELEASES AND SOME METHODS AND PROPERTIES MAY NOT BE SUITABLE FOR CUSTOM DEVELOPMENT.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | NODE_PARAMETER |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
TaskParameterMetadataImpl()
Constructs a TaskParameterMetadataImpl object.
| |||||||||||
TaskParameterMetadataImpl(String name)
Constructs a TaskParameterMetadataImpl object.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String[] |
getArrayValue(RequestKeys requestKeys)
Returns an array of string values by parsing the parameter
value.
| ||||||||||
String[] |
getArrayValue(RequestKeys requestKeys, String delim)
Returns an array of string values by parsing the parameter value
and using the specified delimiter.
| ||||||||||
boolean |
getBooleanValue(RequestKeys requestKeys)
Returns the boolean value of a parameter.
| ||||||||||
String |
getDefaultValue()
Get the default value associated with this parameter.
| ||||||||||
Object |
getDefaultValueObject()
Get the default generic object associated with this parameter.
| ||||||||||
String |
getDescription()
Returns the textual description of this Task parameter.
| ||||||||||
int |
getIntValue(RequestKeys requestKeys)
Returns the integer value of a parameter.
| ||||||||||
long |
getLongValue(RequestKeys requestKeys)
Returns the long value of a parameter.
| ||||||||||
String |
getName()
Returns the name of this Task parameter.
| ||||||||||
PostedFile |
getPostedFile(TaskRequestContext context)
Returns data file uploaded by user via a "multipart/form-data" request form.
| ||||||||||
String |
getType()
Returns the data type of this Task parameter.
| ||||||||||
String |
getValidator()
Returns the data type validator of this Task parameter.
| ||||||||||
String |
getValue(RequestKeys requestKeys)
Returns the value of a parameter, given the supplied input
parameters.
| ||||||||||
Enumeration |
getValueObject(RequestKeys requestKeys)
Returns the enumeration of value objects of a parameter, given the supplied input
parameters.
| ||||||||||
boolean | isHidden() | ||||||||||
boolean |
isRequired()
Whether this Task parameter is required, and must be supplied in
all Task invocations.
| ||||||||||
void |
setDefaultValue(Object defValue)
Specifies a default value for this parameter.
| ||||||||||
void |
setDefaultValue(String defValue)
This method is deprecated.
Use
setDefaultValue(Object) instead
| ||||||||||
void |
setDescription(String desc)
Sets the description for a task parameter.
| ||||||||||
void |
setHidden(boolean isHidden)
Sets whether this parameter is private or not.
| ||||||||||
void | setName(String name) | ||||||||||
void |
setRequired(boolean required)
Sets whether this parameter is required or not.
| ||||||||||
void | setType(String type) | ||||||||||
void | setValidator(String validator) |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String |
getKeyAttribute()
This method must return the attribute that uniquely identifies this element among its siblings;
if no single attribute can be used, return null and override the
getKey and
setKey methods. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Constructs a TaskParameterMetadataImpl object.
Constructs a TaskParameterMetadataImpl object.
name | The name of the task parameter. |
---|
Returns an array of string values by parsing the parameter value. It assumes that array elements are separated (delimited) by commas.
Returns an array of string values by parsing the parameter value and using the specified delimiter.
requestKeys | A RequestKeys object that contains the input
parameters. |
---|---|
delim | The String delimiter used to separate array elements. |
Returns the boolean value of a parameter. If not specified, a parameter's default value may be used.
requestKeys | A RequestKeys object that contains the input
parameters. |
---|
Get the default value associated with this parameter.
Get the default generic object associated with this parameter.
Returns the textual description of this Task parameter.
Returns the integer value of a parameter. If not specified, a parameter's default value may be used.
requestKeys | A RequestKeys object that contains the input
parameters. |
---|
Returns the long value of a parameter. If not specified, a parameter's default value may be used.
requestKeys | A RequestKeys object that contains the input
parameters. |
---|
Returns the name of this Task parameter.
Returns data file uploaded by user via a "multipart/form-data" request form.
Note that PostedFile
is always returned even if the user uploaded
nothing - getLength()
should be checked for non-zero to
indicate existence of data.
Returns the data type of this Task parameter.
Returns the data type validator of this Task parameter.
Returns the value of a parameter, given the supplied input parameters. If the parameter has been explicitly specified in the input parameters, it is returned. If not, and the default value is non-null, then that is returned. Otherwise, null is returned.
requestKeys | A RequestKeys object that contains the input
parameters. |
---|
Returns the enumeration of value objects of a parameter, given the supplied input parameters. If the parameter has been explicitly specified in the input parameters, it is returned. If not, and the default value is non-null, then that is returned. Otherwise, null is returned.
requestKeys | A RequestKeys object that contains the input
parameters. |
---|
Whether this Task parameter is required, and must be supplied in all Task invocations.
Specifies a default value for this parameter.
defValue | The value to use if none is supplied. |
---|
This method is deprecated.
Use setDefaultValue(Object)
instead
Specifies a default value for this parameter.
defValue | The value to use if none is supplied. |
---|
Sets the description for a task parameter.
desc | The description to associate with this task parameter. |
---|
Sets whether this parameter is private or not.
Sets whether this parameter is required or not.
required | Whether this parameter is required or not. |
---|
This method must return the attribute that uniquely identifies this element among its siblings;
if no single attribute can be used, return null and override the getKey
and
setKey
methods.