@PublicApi
public interface ProjectTypeManager
Modifier and Type | Method and Description |
---|---|
com.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.
|
com.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.
|
com.atlassian.fugue.Option<com.atlassian.application.api.Application> |
getApplicationWithType(ProjectTypeKey key)
Returns the application that provides the given project type.
|
com.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()
com.atlassian.fugue.Option<ProjectType> getByKey(ProjectTypeKey key)
key
- The project type keycom.atlassian.fugue.Option<ProjectType> getAccessibleProjectType(ProjectTypeKey key)
key
- The project type keycom.atlassian.fugue.Option<ProjectType> getAccessibleProjectType(ApplicationUser user, ProjectTypeKey key)
user
- The userkey
- The project type keyProjectType getInaccessibleProjectType()
com.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-2015 Atlassian. All Rights Reserved.