Class CustomFieldParamsImpl
java.lang.Object
com.atlassian.jira.issue.customfields.view.CustomFieldParamsImpl
- All Implemented Interfaces:
CustomFieldParams,CollectionParams,FieldParams,FieldTransportParams
- Direct Known Subclasses:
CustomFieldAdditionalParamsImpl
-
Constructor Summary
ConstructorsConstructorDescriptionCustomFieldParamsImpl(CustomField customField) CustomFieldParamsImpl(CustomField customField, Object paramsObject) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddValue(String key, Collection<String> values) voidaddValue(Collection<String> values) booleanbooleancontainsKey(String key) booleanReturn all values of all keys, flattened into a single collection.getValuesForKey(String key) This method is a lie, the return type is not a Collectionbut a Collection Return the values of the custom field.inthashCode()booleanisEmpty()voidput(String key, Collection<String> value) Put the values in.voidvoidsetCustomField(CustomField customField) toString()voidtransform(org.apache.commons.collections.Transformer transformer) static voidtransformMultiMap(org.apache.commons.collections.Transformer transformer, Map parameterMap) voidvoid
-
Constructor Details
-
CustomFieldParamsImpl
public CustomFieldParamsImpl() -
CustomFieldParamsImpl
-
CustomFieldParamsImpl
-
-
Method Details
-
getAllKeys
- Specified by:
getAllKeysin interfaceFieldParams
-
getCustomField
- Specified by:
getCustomFieldin interfaceCustomFieldParams
-
setCustomField
- Specified by:
setCustomFieldin interfaceCustomFieldParams
-
getValuesForKey
This method is a lie, the return type is not a Collectionbut a Collection - Specified by:
getValuesForKeyin interfaceCollectionParams- Parameters:
key- that you want to search with.- Returns:
- Collection of values for the key, which are not guaranteed to be Strings.
-
getFirstValueForKey
- Specified by:
getFirstValueForKeyin interfaceFieldTransportParams
-
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
-
addValue
-
addValue
-
put
Description copied from interface:CollectionParamsPut the values in.- Specified by:
putin interfaceCollectionParams- Parameters:
key- for mappingvalue- a Collection of Strings.
-
equals
-
hashCode
public int hashCode() -
toString
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceFieldParams
-
contains
- Specified by:
containsin interfaceCustomFieldParams
-
transformObjectsToStrings
public void transformObjectsToStrings()- Specified by:
transformObjectsToStringsin interfaceCustomFieldParams
-
transformStringsToObjects
public void transformStringsToObjects()- Specified by:
transformStringsToObjectsin interfaceCustomFieldParams
-
transformMultiMap
public static void transformMultiMap(org.apache.commons.collections.Transformer transformer, Map parameterMap) -
transform
public void transform(org.apache.commons.collections.Transformer transformer) - Specified by:
transformin interfaceCustomFieldParams
-
getFirstValueForNullKey
- Specified by:
getFirstValueForNullKeyin interfaceFieldTransportParams
-
getKeysAndValues
- Specified by:
getKeysAndValuesin interfaceCustomFieldParams- Specified by:
getKeysAndValuesin interfaceFieldParams
-
remove
- Specified by:
removein interfaceCustomFieldParams
-
containsKey
- Specified by:
containsKeyin interfaceFieldParams
-