@PublicApi
public interface ProjectTypeManager
Modifier and Type | Method and Description |
---|---|
io.atlassian.fugue.Option<ProjectType> |
getAccessibleProjectType(ApplicationUser user,
ProjectTypeKey key)
Returns the project type with the given key, if it is accessible for the given user.
|
io.atlassian.fugue.Option<ProjectType> |
getAccessibleProjectType(ProjectTypeKey key)
Returns the project type with the given key, if it is accessible.
|
List<ProjectType> |
getAllAccessibleProjectTypes()
Returns all the accessible project types defined on the JIRA instance sorted by weight.
|
List<ProjectType> |
getAllProjectTypes()
Returns all the project types defined on the JIRA instance sorted by weight not taking into account whether
the license to use those project types is valid or not.
|
io.atlassian.fugue.Option<com.atlassian.application.api.Application> |
getApplicationWithType(ProjectTypeKey key)
Returns the application that provides the given project type.
|
io.atlassian.fugue.Option<ProjectType> |
getByKey(ProjectTypeKey key)
Returns the project type with the given key, if it is present on the JIRA instance.
|
ProjectType |
getInaccessibleProjectType()
Returns a project type with information to be displayed to users when a specific project type is not accessible.
|
boolean |
isProjectTypeInstalledButInaccessible(ProjectTypeKey projectTypeKey)
Returns whether the project type with the given key is installed but inaccessible.
|
boolean |
isProjectTypeUninstalled(ProjectTypeKey projectTypeKey)
Returns whether the project type with the given key is uninstalled.
|
List<ProjectType> getAllProjectTypes()
List<ProjectType> getAllAccessibleProjectTypes()
io.atlassian.fugue.Option<ProjectType> getByKey(ProjectTypeKey key)
key
- The project type keyio.atlassian.fugue.Option<ProjectType> getAccessibleProjectType(ProjectTypeKey key)
key
- The project type keyio.atlassian.fugue.Option<ProjectType> getAccessibleProjectType(ApplicationUser user, ProjectTypeKey key)
user
- The userkey
- The project type keyProjectType getInaccessibleProjectType()
A project type might be inaccessible if the user is not licensed under the application that defines the type or if the application that defines the type is not installed on the JIRA instance.
io.atlassian.fugue.Option<com.atlassian.application.api.Application> getApplicationWithType(ProjectTypeKey key)
key
- The project type keyboolean isProjectTypeUninstalled(ProjectTypeKey projectTypeKey)
projectTypeKey
- The key of the project type for which we are performing the check.boolean isProjectTypeInstalledButInaccessible(ProjectTypeKey projectTypeKey)
projectTypeKey
- The key of the project type for which we are performing the check.Copyright © 2002-2019 Atlassian. All Rights Reserved.