com.atlassian.jira.issue.customfields
Interface MultipleSettableCustomFieldType<T,S>

Type Parameters:
T - Transport Object See CustomFieldType for more information.
S - Single Form of Transport Object. See CustomFieldType for more information.
All Superinterfaces:
CustomFieldType<T,S>, MultipleCustomFieldType<T,S>
All Known Implementing Classes:
AbstractMultiSettableCFType, CascadingSelectCFType, MultiSelectCFType, SelectCFType

@PublicSpi
public interface MultipleSettableCustomFieldType<T,S>
extends MultipleCustomFieldType<T,S>

Custom field which can have multiple Options to select from. Provides support for removing a possible option from the Field configuration.


Field Summary
 
Fields inherited from interface com.atlassian.jira.issue.customfields.CustomFieldType
DEFAULT_VALUE_TYPE
 
Method Summary
 Set<Long> getIssueIdsWithValue(CustomField field, Option option)
          Returns a Set of issue ids (Long) that have the given option selected.
 void removeValue(CustomField field, Issue issue, Option optionObject)
          Perform any actions required if the option selected by the issue is removed.
 
Methods inherited from interface com.atlassian.jira.issue.customfields.MultipleCustomFieldType
getOptions
 
Methods inherited from interface com.atlassian.jira.issue.customfields.CustomFieldType
availableForBulkEdit, createValue, getChangelogString, getChangelogValue, getConfigurationItemTypes, getDefaultValue, getDescription, getDescriptor, getKey, getName, getRelatedIndexers, getSingularObjectFromString, getStringFromSingularObject, getStringValueFromCustomFieldParams, getValueFromCustomFieldParams, getValueFromIssue, getVelocityParameters, init, isRenderable, remove, setDefaultValue, updateValue, validateFromParams, valuesEqual
 

Method Detail

getIssueIdsWithValue

Set<Long> getIssueIdsWithValue(CustomField field,
                               Option option)
Returns a Set of issue ids (Long) that have the given option selected.

Parameters:
field - the CustomField to search on
option - the Object representing a single value to search on.
Returns:
Set of Longs

removeValue

void removeValue(CustomField field,
                 Issue issue,
                 Option optionObject)
Perform any actions required if the option selected by the issue is removed.

Parameters:
field - being edited
issue - to remove stuff from
optionObject - option being removed.


Copyright © 2002-2013 Atlassian. All Rights Reserved.