|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.issue.customfields.manager.DefaultOptionsManager
public class DefaultOptionsManager
| Field Summary | |
|---|---|
static String |
ENTITY_CONFIG_ID
|
| Constructor Summary | |
|---|---|
DefaultOptionsManager(OfBizDelegator delegator,
CollectionReorderer<Option> reorderer,
FieldConfigManager fieldConfigManager)
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ENTITY_CONFIG_ID
| Constructor Detail |
|---|
public DefaultOptionsManager(OfBizDelegator delegator,
CollectionReorderer<Option> reorderer,
FieldConfigManager fieldConfigManager)
| Method Detail |
|---|
public Options getOptions(FieldConfig fieldConfig)
OptionsManager
getOptions in interface OptionsManagerfieldConfig - For example, retrieved from CustomField.getRelevantConfig(com.atlassian.jira.issue.Issue)
public void setRootOptions(FieldConfig fieldConfig,
Options options)
setRootOptions in interface OptionsManagerpublic void removeCustomFieldOptions(CustomField customField)
removeCustomFieldOptions in interface OptionsManagerpublic void removeCustomFieldConfigOptions(FieldConfig fieldConfig)
removeCustomFieldConfigOptions in interface OptionsManagerpublic void updateOptions(Collection<Option> options)
OptionsManagerOptions objects may be stale, and should be
re-fetched with OptionsManager.getOptions(com.atlassian.jira.issue.fields.config.FieldConfig).
updateOptions in interface OptionsManageroptions - Usually an Options implementation.
public Option createOption(FieldConfig fieldConfig,
Long parentOptionId,
Long sequence,
String value)
createOption in interface OptionsManagerpublic void deleteOptionAndChildren(Option option)
deleteOptionAndChildren in interface OptionsManagerpublic List<Option> getAllOptions()
OptionsManagerOption in the system.
getAllOptions in interface OptionsManagerpublic void disableOption(Option option)
OptionsManager
disableOption in interface OptionsManageroption - The option to be disabled.public void enableOption(Option option)
OptionsManager
enableOption in interface OptionsManageroption - The Option to enable.
public void setValue(Option option,
String value)
setValue in interface OptionsManagerpublic List<Option> findByOptionValue(String value)
OptionsManager
findByOptionValue in interface OptionsManagervalue - the value of the options to find (case insensitive). Must not be null.
public Option findByOptionId(Long optionId)
findByOptionId in interface OptionsManagerpublic List<Option> findByParentId(Long parentOptionId)
findByParentId in interface OptionsManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||