com.atlassian.jira.project.type.ProjectTypeManager |
Known Indirect Subclasses |
Clients of @PublicApi
can expect
that programs compiled against a given version will remain binary compatible with later versions of the
@PublicApi
as per each product's API policy as long as the client does not implement/extend
@PublicApi
interfaces or classes (refer to each product's API policy for the exact
guarantee---usually binary compatibility is guaranteed at least across minor versions).
@PublicApi
interfaces and classes are not designed to be implemented or extended by clients,
we may perform certain types of binary-incompatible changes to these classes and interfaces, but these will not
affect well-behaved clients that do not extend/implement these types (in general, only classes and interfaces
annotated with @PublicSpi
are safe to extend/implement).
Manager to access information about the different project types defined on the JIRA instance.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the project type with the given key, if it is accessible for the given user.
| |||||||||||
Returns the project type with the given key, if it is accessible.
| |||||||||||
Returns all the accessible project types defined on the JIRA instance sorted by weight.
| |||||||||||
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.
| |||||||||||
Returns the application that provides the given project type.
| |||||||||||
Returns the project type with the given key, if it is present on the JIRA instance.
| |||||||||||
Returns a project type with information to be displayed to users when a specific project type is not accessible.
| |||||||||||
Returns whether the project type with the given key is installed but inaccessible.
| |||||||||||
Returns whether the project type with the given key is uninstalled.
|
Returns the project type with the given key, if it is accessible for the given user. A project type is considered accessible for an user if the application that defines it is present on the JIRA instance, that application has a license and the given user is licensed for that application.
user | The user |
---|---|
key | The project type key |
Returns the project type with the given key, if it is accessible. A project type is considered accessible if the application that defines it is present on the JIRA instance and if there is a license for that application in the instance. Generally this method should be used when retrieving a project type for display in the application. The convention is to always display the project type if the application is licensed, even if the current user isn't licensed to access that application. Not showing the project type due to the user's individual license access should be the exception.
key | The project type key |
---|
Returns all the accessible project types defined on the JIRA instance sorted by weight. A project type is considered accessible if the application that defines it is present on the JIRA instance and if there is a license for that application on the instance. This method should be used when displaying available project types to admins (e.g. project create dialog, change project type dialog)
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.
Returns the application that provides the given project type.
key | The project type key |
---|
Returns the project type with the given key, if it is present on the JIRA instance.
key | The project type key |
---|
Returns a project type with information to be displayed to users when a specific project type is not accessible.
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.
Returns whether the project type with the given key is installed but inaccessible.
projectTypeKey | The key of the project type for which we are performing the check. |
---|
Returns whether the project type with the given key is uninstalled.
projectTypeKey | The key of the project type for which we are performing the check. |
---|