java.lang.Object | |
↳ | com.atlassian.jira.util.ParameterUtils |
This class can be used to "parse" values from a map of parameters. This is really intended to be used in webwork.action.Action code that needs to read input parameters from getParameters()
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ParameterUtils.DateTooEarlyException | This class is deprecated. Only used in deprecated method. Since v5.2. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a boolean value from the map of parameters.
| |||||||||||
This method is deprecated.
Use
DateTimeFormatterFactory instead. Since v5.2.
| |||||||||||
Gets a int value from the map and uses the defaultValue if the value can be converted.
| |||||||||||
Create a List from the parameter with the specified key.
| |||||||||||
Given an array of Strings, return a list of Longs representing the IDs
| |||||||||||
Given a collection of entities, return an array of Strings representing the IDs
| |||||||||||
Returns the value of the specified parameter name as a String[]
| |||||||||||
Searches through the Map (params) for the given targetKey and targetValue extracting the index (i) and uses this
to extract the corresponding index value with the desiredKey.
| |||||||||||
Make a list of Strings into a list of Longs
| |||||||||||
Checks if the given key, value pair exists in the given params Map
| |||||||||||
This method is deprecated.
Use
DateTimeFormatterFactory instead. Since v5.2.
| |||||||||||
Convert all null values in a collection into "-1"s.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Returns a boolean value from the map of parameters. if it does no exist in the map, then false is returned
mapOfParameters | the map of parameters |
---|---|
paramName | the parameter name to use |
Gets a int value from the map and uses the defaultValue if the value can be converted.
mapOfParameters | the map of parameters |
---|---|
paramName | the parameter name to use |
defaultValue | the default value in case things cant be converted |
Create a List from the parameter with the specified key.
Given an array of Strings, return a list of Longs representing the IDs
Given a collection of entities, return an array of Strings representing the IDs
Returns the value of the specified parameter name as a String[]
params | the map of parameters |
---|---|
paramName | the name of the parameter |
Searches through the Map (params) for the given targetKey and targetValue extracting the index (i) and uses this to extract the corresponding index value with the desiredKey. if there is no match, the first value or null is returned
Checks if the given key, value pair exists in the given params Map
params | the map of web parameters |
---|---|
key | the name of the parameter to check |
value | the value to check for |
Convert all null values in a collection into "-1"s.