com.atlassian.jira.issue.fields.config.manager
Interface IssueTypeSchemeManager

All Known Implementing Classes:
IssueTypeSchemeManagerImpl

public interface IssueTypeSchemeManager

A manager to manage IssueType's unique set of circumstances. That is, it circumvents the scheme system by collpasing the scheme and config


Method Summary
 void addOptionToDefault(String id)
          Adds the option with the issue type id to the default issue type scheme
 FieldConfigScheme create(String schemeName, String schemeDescription, List optionIds)
           
 void deleteScheme(FieldConfigScheme configScheme)
           
 Collection getAllRelatedSchemes(String optionId)
          Gets all schemes that has the issue type as part of its options
 List getAllSchemes()
           
 FieldConfigScheme getConfigScheme(org.ofbiz.core.entity.GenericValue project)
          Returns a config scheme for a given project
 FieldConfigScheme getDefaultIssueTypeScheme()
          Returns the default global issue type, to which all issue types are added to
 IssueType getDefaultValue(FieldConfig config)
          Returns the IssueType object that is the default for thie configuration
 IssueType getDefaultValue(org.ofbiz.core.entity.GenericValue project)
          Returns the default IssueType object based on the passed in project.
 IssueType getDefaultValue(Issue issue)
           
 Collection getIssueTypesForProject(org.ofbiz.core.entity.GenericValue project)
          Return the collection of issue types associated with this project
 boolean isDefaultIssueTypeScheme(FieldConfigScheme configScheme)
           
 void removeOptionFromAllSchemes(String optionId)
           
 void setDefaultValue(FieldConfig config, String optionId)
           
 FieldConfigScheme update(FieldConfigScheme configScheme, Collection optionIds)
           
 

Method Detail

create

public FieldConfigScheme create(String schemeName,
                                String schemeDescription,
                                List optionIds)

update

public FieldConfigScheme update(FieldConfigScheme configScheme,
                                Collection optionIds)

getDefaultIssueTypeScheme

public FieldConfigScheme getDefaultIssueTypeScheme()
Returns the default global issue type, to which all issue types are added to

Returns:
FieldConfigScheme

isDefaultIssueTypeScheme

public boolean isDefaultIssueTypeScheme(FieldConfigScheme configScheme)

addOptionToDefault

public void addOptionToDefault(String id)
Adds the option with the issue type id to the default issue type scheme

Parameters:
id - issue type id

getAllRelatedSchemes

public Collection getAllRelatedSchemes(String optionId)
Gets all schemes that has the issue type as part of its options

Parameters:
optionId - Issue type id being queried
Returns:
Collection of FieldConfigScheme objects

removeOptionFromAllSchemes

public void removeOptionFromAllSchemes(String optionId)

deleteScheme

public void deleteScheme(FieldConfigScheme configScheme)

getAllSchemes

public List getAllSchemes()

getDefaultValue

public IssueType getDefaultValue(Issue issue)

getDefaultValue

public IssueType getDefaultValue(FieldConfig config)
Returns the IssueType object that is the default for thie configuration

Parameters:
config -
Returns:
IssueType representing the default value of this config

setDefaultValue

public void setDefaultValue(FieldConfig config,
                            String optionId)

getDefaultValue

public IssueType getDefaultValue(org.ofbiz.core.entity.GenericValue project)
Returns the default IssueType object based on the passed in project.

Parameters:
project -
Returns:
IssueType or null if there is no default

getConfigScheme

public FieldConfigScheme getConfigScheme(org.ofbiz.core.entity.GenericValue project)
Returns a config scheme for a given project

Parameters:
project -
Returns:
Relevent configscheme

getIssueTypesForProject

public Collection getIssueTypesForProject(org.ofbiz.core.entity.GenericValue project)
Return the collection of issue types associated with this project

Parameters:
project -
Returns:
collection of issue type objects


Copyright © 2002-2006 Atlassian. All Rights Reserved.