com.atlassian.jira.issue.customfields.manager
Class DefaultOptionsManager

java.lang.Object
  extended by com.atlassian.jira.issue.customfields.manager.DefaultOptionsManager
All Implemented Interfaces:
OptionsManager
Direct Known Subclasses:
CachedOptionsManager

public class DefaultOptionsManager
extends Object
implements OptionsManager


Field Summary
static String ENTITY_CONFIG_ID
           
 
Constructor Summary
DefaultOptionsManager(OfBizDelegator delegator, CollectionReorderer reorderer, FieldConfigManager fieldConfigManager)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENTITY_CONFIG_ID

public static final String ENTITY_CONFIG_ID
See Also:
Constant Field Values
Constructor Detail

DefaultOptionsManager

public DefaultOptionsManager(OfBizDelegator delegator,
                             CollectionReorderer reorderer,
                             FieldConfigManager fieldConfigManager)
Method Detail

getOptions

public Options getOptions(FieldConfig fieldConfig)
Description copied from interface: OptionsManager
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

Specified by:
getOptions in interface OptionsManager
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)
Specified by:
setRootOptions in interface OptionsManager

removeCustomFieldOptions

public void removeCustomFieldOptions(CustomField customField)
Specified by:
removeCustomFieldOptions in interface OptionsManager

updateOptions

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

Specified by:
updateOptions in interface OptionsManager
Parameters:
options - Usually an Options implementation.

createOption

public Option createOption(FieldConfig fieldConfig,
                           Long parentOptionId,
                           Long sequence,
                           String value)
Specified by:
createOption in interface OptionsManager

deleteOptionAndChildren

public void deleteOptionAndChildren(Option option)
Specified by:
deleteOptionAndChildren in interface OptionsManager

findByOptionId

public Option findByOptionId(Long optionId)
Specified by:
findByOptionId in interface OptionsManager

findByParentId

public List findByParentId(Long parentOptionId)
Specified by:
findByParentId in interface OptionsManager


Copyright © 2002-2008 Atlassian. All Rights Reserved.