|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.issue.customfields.option.MockOptionsManager
public class MockOptionsManager
Constructor Summary | |
---|---|
MockOptionsManager()
|
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. |
static List<String> |
optionsToPaths(Iterable<? extends Option> options)
|
void |
removeCustomFieldConfigOptions(FieldConfig fieldConfig)
|
void |
removeCustomFieldOptions(CustomField customField)
|
void |
setRootOptions(FieldConfig fieldConfig,
Options options)
|
void |
setValue(Option option,
String value)
|
void |
store(Option option)
|
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 |
Constructor Detail |
---|
public MockOptionsManager()
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 Option findByOptionId(Long optionId)
findByOptionId
in interface OptionsManager
public List<Option> getAllOptions()
OptionsManager
Option
in the system.
getAllOptions
in interface OptionsManager
public void enableOption(Option option)
OptionsManager
enableOption
in interface OptionsManager
option
- The Option to enable.public void disableOption(Option option)
OptionsManager
disableOption
in interface OptionsManager
option
- The option to be disabled.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 List<Option> findByParentId(Long parentOptionId)
findByParentId
in interface OptionsManager
public void store(Option option)
public static List<String> optionsToPaths(Iterable<? extends Option> options)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |