@PublicApi
public interface OptionsManager
Modifier and Type | Method and Description |
---|---|
Option |
createOption(FieldConfig fieldConfig,
Long parentOptionId,
Long sequence,
String value) |
List<Option> |
createOptions(FieldConfig config,
Long parentOptionId,
Long sequence,
Iterable<String> options)
Bulk version of
createOption(FieldConfig, Long, Long, String) method |
void |
deleteOptionAndChildren(Option option) |
void |
disableOption(Option option)
Set an option to disabled.
|
void |
enableOption(Option option)
Set an option to enabled.
|
Option |
findByOptionId(Long optionId) |
List<Option> |
findByOptionValue(String value)
Finds all options with the given value.
|
List<Option> |
findByParentId(Long parentOptionId) |
List<Option> |
getAllOptions()
Retreives all
Option in the system. |
Options |
getOptions(FieldConfig fieldConfig)
Get options for this particular custom field type.
|
void |
removeCustomFieldConfigOptions(FieldConfig fieldConfig) |
void |
removeCustomFieldOptions(CustomField customField) |
void |
setRootOptions(FieldConfig fieldConfig,
Options options) |
void |
setValue(Option option,
String value) |
void |
updateOptions(Collection<Option> options)
Update a set of options.
|
Options getOptions(FieldConfig fieldConfig)
fieldConfig
- For example, retrieved from CustomField.getRelevantConfig(com.atlassian.jira.issue.Issue)
void setRootOptions(FieldConfig fieldConfig, Options options)
void removeCustomFieldOptions(CustomField customField)
void removeCustomFieldConfigOptions(FieldConfig fieldConfig)
void updateOptions(Collection<Option> options)
Options
objects may be stale, and should be
re-fetched with getOptions(com.atlassian.jira.issue.fields.config.FieldConfig)
.options
- Usually an Options
implementation.Option createOption(FieldConfig fieldConfig, Long parentOptionId, Long sequence, String value)
@ExperimentalApi List<Option> createOptions(FieldConfig config, Long parentOptionId, Long sequence, Iterable<String> options)
createOption(FieldConfig, Long, Long, String)
methodvoid deleteOptionAndChildren(Option option)
List<Option> getAllOptions()
Option
in the system.void enableOption(Option option)
option
- The Option to enable.void disableOption(Option option)
option
- The option to be disabled.List<Option> findByOptionValue(String value)
value
- the value of the options to find (case insensitive). Must not be null.Copyright © 2002-2019 Atlassian. All Rights Reserved.