public class CustomFieldParamsImpl extends Object implements CustomFieldParams
| Constructor and Description |
|---|
CustomFieldParamsImpl() |
CustomFieldParamsImpl(CustomField customField) |
CustomFieldParamsImpl(CustomField customField,
Object paramsObject) |
| Modifier and Type | Method and Description |
|---|---|
void |
addValue(Collection<String> values) |
void |
addValue(String key,
Collection<String> values) |
boolean |
contains(String key,
String value) |
boolean |
containsKey(String key) |
boolean |
equals(Object o) |
Set<String> |
getAllKeys() |
Collection |
getAllValues()
Return all values of all keys, flattened into a single collection.
|
CustomField |
getCustomField() |
Object |
getFirstValueForKey(String key) |
Object |
getFirstValueForNullKey() |
Map |
getKeysAndValues() |
String |
getQueryString() |
Collection<String> |
getValuesForKey(String key)
Return the values associated with the given
key in the parameters. |
Collection |
getValuesForNullKey()
Return the values of the custom field.
|
int |
hashCode() |
boolean |
isEmpty() |
void |
put(String key,
Collection<String> value)
Put the values in.
|
void |
remove(String key) |
void |
setCustomField(CustomField customField) |
String |
toString() |
void |
transform(org.apache.commons.collections.Transformer transformer) |
static void |
transformMultiMap(org.apache.commons.collections.Transformer transformer,
Map parameterMap) |
void |
transformObjectsToStrings() |
void |
transformStringsToObjects() |
public CustomFieldParamsImpl()
public CustomFieldParamsImpl(CustomField customField)
public CustomFieldParamsImpl(CustomField customField, Object paramsObject)
public Set<String> getAllKeys()
getAllKeys in interface FieldParamspublic CustomField getCustomField()
getCustomField in interface CustomFieldParamspublic void setCustomField(CustomField customField)
setCustomField in interface CustomFieldParamspublic Collection<String> getValuesForKey(@Nullable String key)
CollectionParamskey in the parameters.
Depending on the type of field, additional keys might be introduced in addition to the null key. JIRA might also add additional keys into the parameters. For example, issue id and project id might be passed into the parameters under separate keys during custom field validation.
getValuesForKey in interface CollectionParamspublic Object getFirstValueForKey(@Nullable String key)
getFirstValueForKey in interface FieldTransportParamspublic Collection getValuesForNullKey()
CollectionParamsThe values associated with the null key represents the values of the custom field. For example, the user selected in a single user picker, or the list of users selected in a multiple user picker.
Note that unlike CollectionParams.getAllValues(), this method does not return values associated with other non-null keys.
getValuesForNullKey in interface CollectionParamspublic Collection getAllValues()
CollectionParamsCollectionParams.getValuesForNullKey() instead if, for example, you just need the values of the custom field.getAllValues in interface CollectionParamspublic String getQueryString()
getQueryString in interface CustomFieldParamspublic void addValue(String key, Collection<String> values)
public void addValue(Collection<String> values)
public void put(String key, Collection<String> value)
CollectionParamsput in interface CollectionParamskey - for mappingvalue - a Collection of Strings.public boolean isEmpty()
isEmpty in interface FieldParamspublic boolean contains(String key, String value)
contains in interface CustomFieldParamspublic void transformObjectsToStrings()
transformObjectsToStrings in interface CustomFieldParamspublic void transformStringsToObjects()
transformStringsToObjects in interface CustomFieldParamspublic static void transformMultiMap(org.apache.commons.collections.Transformer transformer,
Map parameterMap)
public void transform(org.apache.commons.collections.Transformer transformer)
transform in interface CustomFieldParamspublic Object getFirstValueForNullKey()
getFirstValueForNullKey in interface FieldTransportParamspublic Map getKeysAndValues()
getKeysAndValues in interface CustomFieldParamsgetKeysAndValues in interface FieldParamspublic void remove(String key)
remove in interface CustomFieldParamspublic boolean containsKey(String key)
containsKey in interface FieldParamsCopyright © 2002-2018 Atlassian. All Rights Reserved.