|
||||||||||
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 OptionsManager
fieldConfig
- For example, retrieved from CustomField.getRelevantConfig(com.atlassian.jira.issue.Issue)
public void setRootOptions(FieldConfig fieldConfig, Options options)
setRootOptions
in interface OptionsManager
public void removeCustomFieldOptions(CustomField customField)
removeCustomFieldOptions
in interface OptionsManager
public void removeCustomFieldConfigOptions(FieldConfig fieldConfig)
removeCustomFieldConfigOptions
in interface OptionsManager
public void updateOptions(Collection<Option> options)
OptionsManager
Options
objects may be stale, and should be
re-fetched with OptionsManager.getOptions(com.atlassian.jira.issue.fields.config.FieldConfig)
.
updateOptions
in interface OptionsManager
options
- Usually an Options
implementation.public Option createOption(FieldConfig fieldConfig, Long parentOptionId, Long sequence, String value)
createOption
in interface OptionsManager
public void deleteOptionAndChildren(Option option)
deleteOptionAndChildren
in interface OptionsManager
public List<Option> getAllOptions()
OptionsManager
Option
in the system.
getAllOptions
in interface OptionsManager
public void disableOption(Option option)
OptionsManager
disableOption
in interface OptionsManager
option
- The option to be disabled.public void enableOption(Option option)
OptionsManager
enableOption
in interface OptionsManager
option
- The Option to enable.public void setValue(Option option, String value)
setValue
in interface OptionsManager
public List<Option> findByOptionValue(String value)
OptionsManager
findByOptionValue
in interface OptionsManager
value
- the value of the options to find (case insensitive). Must not be null.
public Option findByOptionId(Long optionId)
findByOptionId
in interface OptionsManager
public 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 |