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 IssueTypeSchemeManagerpublic FieldConfigScheme update(FieldConfigScheme configScheme, Collection<String> optionIds)
update in interface IssueTypeSchemeManagerpublic FieldConfigScheme getDefaultIssueTypeScheme()
IssueTypeSchemeManagergetDefaultIssueTypeScheme in interface IssueTypeSchemeManagerpublic boolean isDefaultIssueTypeScheme(FieldConfigScheme configScheme)
isDefaultIssueTypeScheme in interface IssueTypeSchemeManagerpublic void addOptionToDefault(String id)
IssueTypeSchemeManageraddOptionToDefault in interface IssueTypeSchemeManagerid - issue type idpublic Collection<FieldConfigScheme> getAllRelatedSchemes(String optionId)
IssueTypeSchemeManagergetAllRelatedSchemes in interface IssueTypeSchemeManageroptionId - Issue type id being queriedFieldConfigScheme objectspublic void removeOptionFromAllSchemes(String optionId)
removeOptionFromAllSchemes in interface IssueTypeSchemeManagerpublic void deleteScheme(FieldConfigScheme configScheme)
deleteScheme in interface IssueTypeSchemeManagerpublic 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 IssueTypeSchemeManagerpublic IssueType getDefaultValue(Issue issue)
getDefaultValue in interface IssueTypeSchemeManagerpublic IssueType getDefaultValue(FieldConfig config)
IssueTypeSchemeManagerIssueType for the given field configuration.getDefaultValue in interface IssueTypeSchemeManagerconfig - the field configuration of interestpublic IssueType getDefaultValue(org.ofbiz.core.entity.GenericValue project)
IssueTypeSchemeManagerIssueType object based on the passed in project.getDefaultValue in interface IssueTypeSchemeManagerproject - the projectpublic IssueType getDefaultIssueType(Project project)
IssueTypeSchemeManagerIssueType object based on the passed in project.getDefaultIssueType in interface IssueTypeSchemeManagerproject - the Projectpublic void setDefaultValue(FieldConfig config, String optionId)
setDefaultValue in interface IssueTypeSchemeManagerpublic FieldConfigScheme getConfigScheme(org.ofbiz.core.entity.GenericValue project)
IssueTypeSchemeManagergetConfigScheme in interface IssueTypeSchemeManagerproject - the project of interestpublic FieldConfigScheme getConfigScheme(Project project)
IssueTypeSchemeManagergetConfigScheme in interface IssueTypeSchemeManagerproject - the project of interest@Nonnull public Collection<IssueType> getIssueTypesForProject(org.ofbiz.core.entity.GenericValue project)
IssueTypeSchemeManagergetIssueTypesForProject in interface IssueTypeSchemeManagerproject - project generic value@Nonnull public Collection<IssueType> getIssueTypesForProject(Project project)
IssueTypeSchemeManagergetIssueTypesForProject in interface IssueTypeSchemeManagerproject - project to return the issue types ofIssueType objects (possibly empty; never null).@Nonnull public Collection<IssueType> getIssueTypesForDefaultScheme()
IssueTypeSchemeManagergetIssueTypesForDefaultScheme in interface IssueTypeSchemeManagerIssueType objects (possibly empty, never null).@Nonnull public Collection<IssueType> getNonSubTaskIssueTypesForProject(Project project)
IssueTypeSchemeManagerIssueTypeSchemeManager.getSubTaskIssueTypesForProject(com.atlassian.jira.project.Project)
produces the same result as a call to
IssueTypeSchemeManager.getIssueTypesForProject(com.atlassian.jira.project.Project).getNonSubTaskIssueTypesForProject in interface IssueTypeSchemeManagerproject - project to return the issue types ofIssueType objects@Nonnull public Collection<IssueType> getSubTaskIssueTypesForProject(@Nonnull Project project)
IssueTypeSchemeManagerIssueTypeSchemeManager.getNonSubTaskIssueTypesForProject(com.atlassian.jira.project.Project)
produces the same result as a call to
IssueTypeSchemeManager.getIssueTypesForProject(com.atlassian.jira.project.Project).getSubTaskIssueTypesForProject in interface IssueTypeSchemeManagerproject - project to return the issue types ofIssueType objects (possibly empty, never null).Copyright © 2002-2017 Atlassian. All Rights Reserved.