Package com.atlassian.jira.application
Interface ApplicationRoleDefinitions
- All Known Implementing Classes:
DefaultApplicationRoleDefinitions,MockApplicationRoleDefinitions
@ParametersAreNonnullByDefault
public interface ApplicationRoleDefinitions
Manager for accessing the
ApplicationRoleDefinitions.ApplicationRoleDefinitions in JIRA.
An ApplicationRoleDefinition can be in these states:
- Defined
-
The
ApplicationRoleDefinitiondefined by a plugin or by JIRA directly. A defined plugin may or may not have a license associated. - Licensed
-
The
ApplicationRoleDefinitionhas an associated license in JIRA (irrespective of the license state whether it has expired or it user limit has been exceeded).
- Since:
- v7.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceDefinition of anApplicationRole. -
Method Summary
Modifier and TypeMethodDescriptionReturn all the definedApplicationRoleDefinitions.io.atlassian.fugue.Option<ApplicationRoleDefinitions.ApplicationRoleDefinition> getDefined(com.atlassian.application.api.ApplicationKey key) Return theApplicationRoleDefinitions.ApplicationRoleDefinitionassociated with the passedApplicationKeyprovided it is defined.Return all the licensedApplicationRoleDefinitions.io.atlassian.fugue.Option<ApplicationRoleDefinitions.ApplicationRoleDefinition> getLicensed(com.atlassian.application.api.ApplicationKey key) Return theApplicationRoleDefinitions.ApplicationRoleDefinitionassociated with the passedApplicationKeyprovided it has a license (irrespective of the license state whether it has expired or it user limit has been exceeded).booleanisDefined(com.atlassian.application.api.ApplicationKey key) Returntrueif theApplicationRoleDefinitions.ApplicationRoleDefinitionidentified by the givenApplicationKeyis defined.booleanisLicensed(com.atlassian.application.api.ApplicationKey key) Returntrueif theApplicationRoleDefinitions.ApplicationRoleDefinitionidentified by the givenApplicationKeyis licensed.
-
Method Details
-
getDefined
Return all the definedApplicationRoleDefinitions.- Returns:
- all the defined
ApplicationRoleDefinitions.
-
getDefined
@Nonnull io.atlassian.fugue.Option<ApplicationRoleDefinitions.ApplicationRoleDefinition> getDefined(com.atlassian.application.api.ApplicationKey key) Return theApplicationRoleDefinitions.ApplicationRoleDefinitionassociated with the passedApplicationKeyprovided it is defined. A value ofOption.none()is returned if the passedApplicationKeyis undefined.- Parameters:
key- the ID to check.- Returns:
- Return the
ApplicationRoleDefinitions.ApplicationRoleDefinitionassociated with the passedApplicationKeyif it is defined orOption.none()otherwise.
-
isDefined
boolean isDefined(com.atlassian.application.api.ApplicationKey key) Returntrueif theApplicationRoleDefinitions.ApplicationRoleDefinitionidentified by the givenApplicationKeyis defined.- Parameters:
key- the key to check.- Returns:
truewhen the passedApplicationRoleDefinitions.ApplicationRoleDefinitionis defined.
-
getLicensed
Return all the licensedApplicationRoleDefinitions.- Returns:
- all the licensed
ApplicationRoleDefinitions.
-
getLicensed
io.atlassian.fugue.Option<ApplicationRoleDefinitions.ApplicationRoleDefinition> getLicensed(com.atlassian.application.api.ApplicationKey key) Return theApplicationRoleDefinitions.ApplicationRoleDefinitionassociated with the passedApplicationKeyprovided it has a license (irrespective of the license state whether it has expired or it user limit has been exceeded). A value ofOption.none()is returned if the passedApplicationKeydoes not have a license.- Parameters:
key- the ID to check.- Returns:
- Return the
ApplicationRoleDefinitions.ApplicationRoleDefinitionassociated with the passedApplicationKeyif it has a license orOption.none()otherwise.
-
isLicensed
boolean isLicensed(com.atlassian.application.api.ApplicationKey key) Returntrueif theApplicationRoleDefinitions.ApplicationRoleDefinitionidentified by the givenApplicationKeyis licensed.- Parameters:
key- the key to check.- Returns:
truewhen the passedApplicationRoleDefinitions.ApplicationRoleDefinitionis licensed.
-