|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.issue.fields.config.manager.IssueTypeSchemeManagerImpl
public class IssueTypeSchemeManagerImpl
A manager to manage IssueType
's unique set of circumstances. That is, it circumvents the scheme system by
collpasing the scheme and config
Constructor Summary | |
---|---|
IssueTypeSchemeManagerImpl(FieldConfigSchemeManager configSchemeManager,
OptionSetManager optionSetManager,
GenericConfigManager genericConfigManager,
ConstantsManager constantsManager)
|
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<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 |
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 for a 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 optionIds)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IssueTypeSchemeManagerImpl(FieldConfigSchemeManager configSchemeManager, OptionSetManager optionSetManager, GenericConfigManager genericConfigManager, ConstantsManager constantsManager)
Method Detail |
---|
public FieldConfigScheme create(String schemeName, String schemeDescription, List optionIds)
create
in interface IssueTypeSchemeManager
public FieldConfigScheme update(FieldConfigScheme configScheme, Collection 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 queried
FieldConfigScheme
objectspublic void removeOptionFromAllSchemes(String optionId)
removeOptionFromAllSchemes
in interface IssueTypeSchemeManager
public void deleteScheme(FieldConfigScheme configScheme)
deleteScheme
in interface IssueTypeSchemeManager
public List<FieldConfigScheme> getAllSchemes()
getAllSchemes
in interface IssueTypeSchemeManager
public IssueType getDefaultValue(Issue issue)
getDefaultValue
in interface IssueTypeSchemeManager
public IssueType getDefaultValue(FieldConfig config)
IssueTypeSchemeManager
IssueType
object that is the default for thie configuration
getDefaultValue
in interface IssueTypeSchemeManager
public IssueType getDefaultValue(org.ofbiz.core.entity.GenericValue project)
getDefaultValue
in interface IssueTypeSchemeManager
project
-
public void setDefaultValue(FieldConfig config, String optionId)
setDefaultValue
in interface IssueTypeSchemeManager
public FieldConfigScheme getConfigScheme(org.ofbiz.core.entity.GenericValue project)
IssueTypeSchemeManager
getConfigScheme
in interface IssueTypeSchemeManager
public FieldConfigScheme getConfigScheme(Project project)
IssueTypeSchemeManager
getConfigScheme
in interface IssueTypeSchemeManager
public Collection<IssueType> getIssueTypesForProject(org.ofbiz.core.entity.GenericValue project)
IssueTypeSchemeManager
getIssueTypesForProject
in interface IssueTypeSchemeManager
project
- project generic value
public Collection<IssueType> getIssueTypesForProject(Project project)
IssueTypeSchemeManager
getIssueTypesForProject
in interface IssueTypeSchemeManager
project
- project to return the issue types of
IssueType
objects (possibly empty, never null).public Collection<IssueType> getIssueTypesForDefaultScheme()
IssueTypeSchemeManager
getIssueTypesForDefaultScheme
in interface IssueTypeSchemeManager
IssueType
objects (possibly empty, never null).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 of
IssueType
objectspublic Collection<IssueType> getSubTaskIssueTypesForProject(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 of
IssueType
objects (possibly empty, never null).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |