Class NullCustomFieldParams
java.lang.Object
com.atlassian.jira.issue.customfields.view.NullCustomFieldParams
- All Implemented Interfaces:
CustomFieldParams,CollectionParams,FieldParams,FieldTransportParams
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleancontainsKey(String key) Return all values of all keys, flattened into a single collection.getValuesForKey(String key) Return the values associated with the givenkeyin the parameters.Return the values of the custom field.booleanisEmpty()voidput(String key, Collection<String> value) Put the values in.voidvoidsetCustomField(CustomField customField) voidtransform(org.apache.commons.collections.Transformer transformer) voidvoid
-
Constructor Details
-
NullCustomFieldParams
public NullCustomFieldParams()
-
-
Method Details
-
put
Description copied from interface:CollectionParamsPut the values in.- Specified by:
putin interfaceCollectionParams- Parameters:
key- for mappingvalue- a Collection of Strings.
-
remove
- Specified by:
removein interfaceCustomFieldParams
-
getAllKeys
- Specified by:
getAllKeysin interfaceFieldParams
-
transformStringsToObjects
public void transformStringsToObjects()- Specified by:
transformStringsToObjectsin interfaceCustomFieldParams
-
setCustomField
- Specified by:
setCustomFieldin interfaceCustomFieldParams
-
getCustomField
- Specified by:
getCustomFieldin interfaceCustomFieldParams
-
getValuesForKey
Description copied from interface:CollectionParamsReturn the values associated with the givenkeyin 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.
- Specified by:
getValuesForKeyin interfaceCollectionParams- Parameters:
key- that you want to search with.- Returns:
- a collection of values OR
nullif nothing is found.
-
getValuesForNullKey
Description copied from interface:CollectionParamsReturn the values of the custom field.The 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.- Specified by:
getValuesForNullKeyin interfaceCollectionParams
-
getAllValues
Description copied from interface:CollectionParamsReturn all values of all keys, flattened into a single collection. UseCollectionParams.getValuesForNullKey()instead if, for example, you just need the values of the custom field.- Specified by:
getAllValuesin interfaceCollectionParams
-
getQueryString
- Specified by:
getQueryStringin interfaceCustomFieldParams
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceFieldParams
-
contains
- Specified by:
containsin interfaceCustomFieldParams
-
transformObjectsToStrings
public void transformObjectsToStrings()- Specified by:
transformObjectsToStringsin interfaceCustomFieldParams
-
getFirstValueForNullKey
- Specified by:
getFirstValueForNullKeyin interfaceFieldTransportParams
-
getKeysAndValues
- Specified by:
getKeysAndValuesin interfaceCustomFieldParams- Specified by:
getKeysAndValuesin interfaceFieldParams
-
containsKey
- Specified by:
containsKeyin interfaceFieldParams
-
getFirstValueForKey
- Specified by:
getFirstValueForKeyin interfaceFieldTransportParams
-
transform
public void transform(org.apache.commons.collections.Transformer transformer) - Specified by:
transformin interfaceCustomFieldParams
-