public class IssueTypeSchemeManagerImpl extends Object implements IssueTypeSchemeManager
IssueType
's unique set of circumstances.
That is, it circumvents the scheme system by collapsing the scheme and config.Constructor and Description |
---|
IssueTypeSchemeManagerImpl(FieldConfigSchemeManager configSchemeManager,
OptionSetManager optionSetManager,
GenericConfigManager genericConfigManager,
ConstantsManager constantsManager,
com.atlassian.event.api.EventPublisher eventPublisher) |
Modifier and Type | Method and Description |
---|---|
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<String> optionIds) |
void |
deleteScheme(FieldConfigScheme configScheme) |
Collection<FieldConfigScheme> |
getAllRelatedSchemes(String optionId)
Gets all schemes that has the issue type as part of its options
|
List<FieldConfigScheme> |
getAllSchemes()
Retrieves all schemes and sorts them.
|
FieldConfigScheme |
getConfigScheme(org.ofbiz.core.entity.GenericValue project)
Returns a config scheme for a given project.
|
FieldConfigScheme |
getConfigScheme(Project project)
Returns a config scheme for a given project.
|
IssueType |
getDefaultIssueType(Project project)
Returns the default
IssueType object based on the passed in project. |
FieldConfigScheme |
getDefaultIssueTypeScheme()
Returns the default global issue type, to which all issue types are added to
|
IssueType |
getDefaultValue(FieldConfig config)
Returns the default
IssueType for the given field 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<IssueType> |
getIssueTypesForDefaultScheme()
Return the collection of issue types associated with the default scheme.
|
Collection<IssueType> |
getIssueTypesForProject(org.ofbiz.core.entity.GenericValue project)
Return the collection of issue types associated with this project.
|
Collection<IssueType> |
getIssueTypesForProject(Project project)
Return the collection of issue types associated with this project.
|
Collection<IssueType> |
getNonSubTaskIssueTypesForProject(Project project)
Return the collection of issue types other than sub-tasks associated with this project.
|
Collection<IssueType> |
getSubTaskIssueTypesForProject(Project project)
Return the collection of sub-task issue types associated with this project
Join of the result of this method and
IssueTypeSchemeManager.getNonSubTaskIssueTypesForProject(com.atlassian.jira.project.Project)
produces the same result as a call to
IssueTypeSchemeManager.getIssueTypesForProject(com.atlassian.jira.project.Project) . |
boolean |
isDefaultIssueTypeScheme(FieldConfigScheme configScheme) |
void |
removeOptionFromAllSchemes(String optionId) |
void |
setDefaultValue(FieldConfig config,
String optionId) |
FieldConfigScheme |
update(FieldConfigScheme configScheme,
Collection<String> optionIds) |
public IssueTypeSchemeManagerImpl(FieldConfigSchemeManager configSchemeManager, OptionSetManager optionSetManager, GenericConfigManager genericConfigManager, ConstantsManager constantsManager, com.atlassian.event.api.EventPublisher eventPublisher)
public FieldConfigScheme create(String schemeName, String schemeDescription, List<String> optionIds)
create
in interface IssueTypeSchemeManager
public FieldConfigScheme update(FieldConfigScheme configScheme, Collection<String> optionIds)
update
in interface IssueTypeSchemeManager
public FieldConfigScheme getDefaultIssueTypeScheme()
IssueTypeSchemeManager
getDefaultIssueTypeScheme
in interface IssueTypeSchemeManager
public boolean isDefaultIssueTypeScheme(FieldConfigScheme configScheme)
isDefaultIssueTypeScheme
in interface IssueTypeSchemeManager
public void addOptionToDefault(String id)
IssueTypeSchemeManager
addOptionToDefault
in interface IssueTypeSchemeManager
id
- issue type idpublic Collection<FieldConfigScheme> getAllRelatedSchemes(String optionId)
IssueTypeSchemeManager
getAllRelatedSchemes
in interface IssueTypeSchemeManager
optionId
- Issue type id being queriedFieldConfigScheme
objectspublic void removeOptionFromAllSchemes(String optionId)
removeOptionFromAllSchemes
in interface IssueTypeSchemeManager
public void deleteScheme(FieldConfigScheme configScheme)
deleteScheme
in interface IssueTypeSchemeManager
public List<FieldConfigScheme> getAllSchemes()
Schemes with the default scheme ID are first Schemes with null names are second the rest are sorted on name
getAllSchemes
in interface IssueTypeSchemeManager
public IssueType getDefaultValue(Issue issue)
getDefaultValue
in interface IssueTypeSchemeManager
public IssueType getDefaultValue(FieldConfig config)
IssueTypeSchemeManager
IssueType
for the given field configuration.getDefaultValue
in interface IssueTypeSchemeManager
config
- the field configuration of interestpublic IssueType getDefaultValue(org.ofbiz.core.entity.GenericValue project)
IssueTypeSchemeManager
IssueType
object based on the passed in project.getDefaultValue
in interface IssueTypeSchemeManager
project
- the projectpublic IssueType getDefaultIssueType(Project project)
IssueTypeSchemeManager
IssueType
object based on the passed in project.getDefaultIssueType
in interface IssueTypeSchemeManager
project
- the Projectpublic void setDefaultValue(FieldConfig config, String optionId)
setDefaultValue
in interface IssueTypeSchemeManager
public FieldConfigScheme getConfigScheme(org.ofbiz.core.entity.GenericValue project)
IssueTypeSchemeManager
getConfigScheme
in interface IssueTypeSchemeManager
project
- the project of interestpublic FieldConfigScheme getConfigScheme(Project project)
IssueTypeSchemeManager
getConfigScheme
in interface IssueTypeSchemeManager
project
- the project of interest@Nonnull public Collection<IssueType> getIssueTypesForProject(org.ofbiz.core.entity.GenericValue project)
IssueTypeSchemeManager
getIssueTypesForProject
in interface IssueTypeSchemeManager
project
- project generic value@Nonnull public Collection<IssueType> getIssueTypesForProject(Project project)
IssueTypeSchemeManager
getIssueTypesForProject
in interface IssueTypeSchemeManager
project
- project to return the issue types ofIssueType
objects (possibly empty; never null).@Nonnull public Collection<IssueType> getIssueTypesForDefaultScheme()
IssueTypeSchemeManager
getIssueTypesForDefaultScheme
in interface IssueTypeSchemeManager
IssueType
objects (possibly empty, never null).@Nonnull public Collection<IssueType> getNonSubTaskIssueTypesForProject(Project project)
IssueTypeSchemeManager
IssueTypeSchemeManager.getSubTaskIssueTypesForProject(com.atlassian.jira.project.Project)
produces the same result as a call to
IssueTypeSchemeManager.getIssueTypesForProject(com.atlassian.jira.project.Project)
.getNonSubTaskIssueTypesForProject
in interface IssueTypeSchemeManager
project
- project to return the issue types ofIssueType
objects@Nonnull public Collection<IssueType> getSubTaskIssueTypesForProject(@Nonnull Project project)
IssueTypeSchemeManager
IssueTypeSchemeManager.getNonSubTaskIssueTypesForProject(com.atlassian.jira.project.Project)
produces the same result as a call to
IssueTypeSchemeManager.getIssueTypesForProject(com.atlassian.jira.project.Project)
.getSubTaskIssueTypesForProject
in interface IssueTypeSchemeManager
project
- project to return the issue types ofIssueType
objects (possibly empty, never null).Copyright © 2002-2017 Atlassian. All Rights Reserved.