|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@PublicApi public interface OptionsManager
Manages option values for fields (eg. custom field select lists).
Method Summary | |
---|---|
Option |
createOption(FieldConfig fieldConfig,
Long parentOptionId,
Long sequence,
String value)
|
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. |
Method Detail |
---|
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)
void deleteOptionAndChildren(Option option)
Option findByOptionId(Long optionId)
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.void setValue(Option option, String value)
List<Option> findByOptionValue(String value)
value
- the value of the options to find (case insensitive). Must not be null.
List<Option> findByParentId(Long parentOptionId)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |