com.atlassian.jira.issue.customfields.manager
Interface OptionsManager

All Known Implementing Classes:
DefaultOptionsManager

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)
           
 Option findByOptionId(Long optionId)
           
 List findByParentId(Long parentOptionId)
           
 Options getOptions(FieldConfig fieldConfig)
          Get options for this particular custom field type.
 void removeCustomFieldOptions(CustomField customField)
           
 void setRootOptions(FieldConfig fieldConfig, Options options)
           
 void updateOptions(Collection options)
          Update a set of options.
 

Method Detail

getOptions

public Options getOptions(FieldConfig fieldConfig)
Get options for this particular custom field type. As a custom field may have multiple types of options (eg cascading drop downs), the type can be used to signify this

Parameters:
fieldConfig - For example, retrieved from CustomField.getRelevantConfig(com.atlassian.jira.issue.Issue)
Returns:
An option Object of Options

setRootOptions

public void setRootOptions(FieldConfig fieldConfig,
                           Options options)

removeCustomFieldOptions

public void removeCustomFieldOptions(CustomField customField)

updateOptions

public void updateOptions(Collection options)
Update a set of options. After doing this, any existing Options objects may be stale, and should be re-fetched with getOptions(com.atlassian.jira.issue.fields.config.FieldConfig).

Parameters:
options - Usually an Options implementation.

createOption

public Option createOption(FieldConfig fieldConfig,
                           Long parentOptionId,
                           Long sequence,
                           String value)

deleteOptionAndChildren

public void deleteOptionAndChildren(Option option)

findByOptionId

public Option findByOptionId(Long optionId)

findByParentId

public List findByParentId(Long parentOptionId)


Copyright © 2002-2006 Atlassian. All Rights Reserved.