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
Modifier and TypeMethodDescriptionvoid
Adds the option with the issue type id to the default issue type schemeaddProjectAssociations
(FieldConfigScheme initialScheme, Collection<Project> projectsToAdd) Adds associations to the issueTypeScheme for the specified projects, then returns the updated scheme.void
deleteScheme
(FieldConfigScheme configScheme) getAllRelatedSchemes
(String optionId) Gets all schemes that has the issue type as part of its optionsgetConfigScheme
(Project project) Returns a config scheme for a given project.getConfigScheme
(org.ofbiz.core.entity.GenericValue project) Deprecated.getDefaultIssueType
(Project project) Returns the defaultIssueType
object based on the passed in project.Returns the default global issue type, to which all issue types are added tolong
Retrieves the unique identifier that corresponds with the system's default issue type scheme.getDefaultValue
(FieldConfig config) Returns the defaultIssueType
for the given field configuration.getDefaultValue
(Issue issue) getDefaultValue
(org.ofbiz.core.entity.GenericValue project) Deprecated.UsegetDefaultIssueType(Project)
instead.Return the collection of issue types associated with the default scheme.getIssueTypesForProject
(Project project) Return the collection of issue types associated with this project.getIssueTypesForProject
(org.ofbiz.core.entity.GenericValue project) Deprecated.Use ofGenericValue
is discouraged.getIssueTypesForScheme
(FieldConfigScheme issueTypeScheme) Return the collection of issue types associated with the specified IssueType[FieldConfig]SchemegetNonSubTaskIssueTypesForProject
(Project project) Return the collection of issue types other than sub-tasks associated with this project.getSubTaskIssueTypesForProject
(Project project) Return the collection of sub-task issue types associated with this project Join of the result of this method andgetNonSubTaskIssueTypesForProject(com.atlassian.jira.project.Project)
produces the same result as a call togetIssueTypesForProject(com.atlassian.jira.project.Project)
.boolean
isDefaultIssueTypeScheme
(FieldConfigScheme configScheme) void
removeOptionFromAllSchemes
(String optionId) removeProjectAssociations
(FieldConfigScheme initialScheme, Collection<Project> projectsToRemove) Removes any associations from the issueTypeScheme for the specified projects, then returns the updated scheme.void
setDefaultValue
(FieldConfig config, String optionId) setProjectAssociationsForIssueTypeScheme
(FieldConfigScheme issueTypeScheme, Collection<Project> projects) Deprecated.update
(FieldConfigScheme configScheme, Collection<String> optionIds)
-
Method Details
-
create
-
update
-
getDefaultIssueTypeScheme
FieldConfigScheme getDefaultIssueTypeScheme()Returns the default global issue type, to which all issue types are added to- Returns:
- FieldConfigScheme
-
isDefaultIssueTypeScheme
-
addOptionToDefault
Adds the option with the issue type id to the default issue type scheme- Parameters:
id
- issue type id
-
getAllRelatedSchemes
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
-
deleteScheme
-
getDefaultIssueTypeSchemeId
long getDefaultIssueTypeSchemeId()Retrieves the unique identifier that corresponds with the system's default issue type scheme.- Returns:
- ID for the system-wide default issue type scheme.
-
getAllSchemes
List<FieldConfigScheme> getAllSchemes() -
getDefaultValue
-
getDefaultValue
Returns the defaultIssueType
for the given field configuration.- Parameters:
config
- the field configuration of interest- Returns:
- IssueType representing the default value of this config
-
setDefaultValue
-
getDefaultValue
Deprecated.UsegetDefaultIssueType(Project)
instead. Since v5.2.Returns the defaultIssueType
object based on the passed in project.- Parameters:
project
- the project- Returns:
- IssueType or null if there is no default
-
getDefaultIssueType
Returns the defaultIssueType
object based on the passed in project.- Parameters:
project
- the Project- Returns:
- IssueType or null if there is no default
-
getConfigScheme
Deprecated.Use ofGenericValue
is discouraged. Deprecated since: v4.0. UsegetConfigScheme(Project)
instead.Returns a config scheme for a given project.- Parameters:
project
- the project of interest- Returns:
- Relevent field configuration scheme
-
getConfigScheme
Returns a config scheme for a given project.- Parameters:
project
- the project of interest- Returns:
- Relevent field configuration scheme
-
getIssueTypesForProject
@Nonnull @Deprecated Collection<IssueType> getIssueTypesForProject(org.ofbiz.core.entity.GenericValue project) Deprecated.Use ofGenericValue
is discouraged. Deprecated since: 3.9. UsegetIssueTypesForProject(Project)
instead.Return the collection of issue types associated with this project.- Parameters:
project
- project generic value- Returns:
- collection of issue type objects
-
getIssueTypesForProject
Return the collection of issue types associated with this project.- Parameters:
project
- project to return the issue types of- Returns:
- collection of
IssueType
objects (possibly empty; never null).
-
getIssueTypesForDefaultScheme
Return the collection of issue types associated with the default scheme.- Returns:
- collection of
IssueType
objects (possibly empty, never null).
-
getIssueTypesForScheme
Return the collection of issue types associated with the specified IssueType[FieldConfig]Scheme- Returns:
- collection of
IssueType
objects (possibly empty, never null).
-
addProjectAssociations
FieldConfigScheme addProjectAssociations(FieldConfigScheme initialScheme, Collection<Project> projectsToAdd) Adds associations to the issueTypeScheme for the specified projects, then returns the updated scheme. Existing associations are not modified by this method.NOTE: this method does not perform any checks to see if issuetype migrations or other safety measures need to be taken. For that sort of thing, use
IssueTypeSchemeService
instead.- Parameters:
initialScheme
- [IssueType] scheme whose project associations we'd like to expandprojectsToAdd
- projects to be added to those associated with the specified IssueTypeScheme- Returns:
- the scheme whose update project associations have been updated.
-
removeProjectAssociations
FieldConfigScheme removeProjectAssociations(FieldConfigScheme initialScheme, Collection<Project> projectsToRemove) Removes any associations from the issueTypeScheme for the specified projects, then returns the updated scheme. Other existing associations are left as-is.NOTE: this method does not perform any checks to see if issuetype migrations or other safety measures need to be taken. For that sort of thing, use
IssueTypeSchemeService
instead.- Parameters:
initialScheme
- [IssueType] scheme whose project associations we'd like to reduceprojectsToRemove
- projects to be un-associated from the specified IssueTypeScheme- Returns:
- the scheme whose update project associations have been updated.
-
setProjectAssociationsForIssueTypeScheme
@Nonnull @Deprecated FieldConfigScheme setProjectAssociationsForIssueTypeScheme(FieldConfigScheme issueTypeScheme, Collection<Project> projects) Deprecated.Associates the issueTypeScheme with the specified projects, then returns the updated scheme. Note, any existing associations will be overwritten.NOTE: this method does not perform any checks to see if issuetype migrations or other safety measures need to be taken. For that sort of thing, use
IssueTypeSchemeService
instead.- Parameters:
issueTypeScheme
- scheme whose project associations we'd like to changeprojects
- projects to be associated with the specified IssueTypeScheme- Returns:
- the scheme whose update project associations have been updated.
-
getSubTaskIssueTypesForProject
Return the collection of sub-task issue types associated with this project Join of the result of this method andgetNonSubTaskIssueTypesForProject(com.atlassian.jira.project.Project)
produces the same result as a call togetIssueTypesForProject(com.atlassian.jira.project.Project)
.- Parameters:
project
- project to return the issue types of- Returns:
- collection of
IssueType
objects (possibly empty, never null).
-
getNonSubTaskIssueTypesForProject
Return the collection of issue types other than sub-tasks associated with this project. Join of the result of this method andgetSubTaskIssueTypesForProject(com.atlassian.jira.project.Project)
produces the same result as a call togetIssueTypesForProject(com.atlassian.jira.project.Project)
.- Parameters:
project
- project to return the issue types of- Returns:
- collection of
IssueType
objects
-
GenericValue
is discouraged.