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

All Known Implementing Classes:
OfBizOptionsManager

public interface OptionsManager


Method Summary
 Option createOption(CustomField customField, java.lang.Long parentOptionId, java.lang.Long sequence, java.lang.String value)
           
 void deleteOptionAndChildren(Option option)
           
 Option findByOptionId(java.lang.Long optionId)
           
 java.util.List findByParentId(java.lang.Long parentOptionId)
           
 Option findByValueAndParent(java.lang.String value, java.lang.Long parentOptionId)
           
 Options getOptions(CustomField customField)
          Get options for this particular custom field type.
 void setRootOptions(CustomField customField, Options options)
           
 void updateOptions(java.util.Collection options)
           
 

Method Detail

getOptions

Options getOptions(CustomField customField)
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

Returns:
An option Object of Options

setRootOptions

void setRootOptions(CustomField customField,
                    Options options)

updateOptions

void updateOptions(java.util.Collection options)

createOption

Option createOption(CustomField customField,
                    java.lang.Long parentOptionId,
                    java.lang.Long sequence,
                    java.lang.String value)

deleteOptionAndChildren

void deleteOptionAndChildren(Option option)

findByOptionId

Option findByOptionId(java.lang.Long optionId)

findByValueAndParent

Option findByValueAndParent(java.lang.String value,
                            java.lang.Long parentOptionId)

findByParentId

java.util.List findByParentId(java.lang.Long parentOptionId)


Copyright © 2002-2006 Atlassian. All Rights Reserved.