Package com.atlassian.jira.application
Class DefaultApplicationRoleDefinitions
java.lang.Object
com.atlassian.jira.application.DefaultApplicationRoleDefinitions
- All Implemented Interfaces:
ApplicationRoleDefinitions
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.jira.application.ApplicationRoleDefinitions
ApplicationRoleDefinitions.ApplicationRoleDefinition -
Constructor Summary
ConstructorsConstructorDescriptionDefaultApplicationRoleDefinitions(JiraLicenseManager licenseManager, com.atlassian.application.host.plugin.PluginApplicationMetaDataManager metaDataManager) -
Method Summary
Modifier and TypeMethodDescriptionReturn all the definedApplicationRoleDefinitions.io.atlassian.fugue.Option<ApplicationRoleDefinitions.ApplicationRoleDefinition>getDefined(com.atlassian.application.api.ApplicationKey applicationKey) 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 applicationKey) Returntrueif theApplicationRoleDefinitions.ApplicationRoleDefinitionidentified by the givenApplicationKeyis defined.booleanisLicensed(com.atlassian.application.api.ApplicationKey key) Returntrueif theApplicationRoleDefinitions.ApplicationRoleDefinitionidentified by the givenApplicationKeyis licensed.
-
Constructor Details
-
DefaultApplicationRoleDefinitions
public DefaultApplicationRoleDefinitions(JiraLicenseManager licenseManager, com.atlassian.application.host.plugin.PluginApplicationMetaDataManager metaDataManager)
-
-
Method Details
-
getDefined
Description copied from interface:ApplicationRoleDefinitionsReturn all the definedApplicationRoleDefinitions.- Specified by:
getDefinedin interfaceApplicationRoleDefinitions- Returns:
- all the defined
ApplicationRoleDefinitions.
-
getDefined
@Nonnull public io.atlassian.fugue.Option<ApplicationRoleDefinitions.ApplicationRoleDefinition> getDefined(com.atlassian.application.api.ApplicationKey applicationKey) Description copied from interface:ApplicationRoleDefinitionsReturn theApplicationRoleDefinitions.ApplicationRoleDefinitionassociated with the passedApplicationKeyprovided it is defined. A value ofOption.none()is returned if the passedApplicationKeyis undefined.- Specified by:
getDefinedin interfaceApplicationRoleDefinitions- Parameters:
applicationKey- the ID to check.- Returns:
- Return the
ApplicationRoleDefinitions.ApplicationRoleDefinitionassociated with the passedApplicationKeyif it is defined orOption.none()otherwise.
-
isDefined
public boolean isDefined(com.atlassian.application.api.ApplicationKey applicationKey) Description copied from interface:ApplicationRoleDefinitionsReturntrueif theApplicationRoleDefinitions.ApplicationRoleDefinitionidentified by the givenApplicationKeyis defined.- Specified by:
isDefinedin interfaceApplicationRoleDefinitions- Parameters:
applicationKey- the key to check.- Returns:
truewhen the passedApplicationRoleDefinitions.ApplicationRoleDefinitionis defined.
-
getLicensed
Description copied from interface:ApplicationRoleDefinitionsReturn all the licensedApplicationRoleDefinitions.- Specified by:
getLicensedin interfaceApplicationRoleDefinitions- Returns:
- all the licensed
ApplicationRoleDefinitions.
-
getLicensed
public io.atlassian.fugue.Option<ApplicationRoleDefinitions.ApplicationRoleDefinition> getLicensed(com.atlassian.application.api.ApplicationKey key) Description copied from interface:ApplicationRoleDefinitionsReturn 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.- Specified by:
getLicensedin interfaceApplicationRoleDefinitions- Parameters:
key- the ID to check.- Returns:
- Return the
ApplicationRoleDefinitions.ApplicationRoleDefinitionassociated with the passedApplicationKeyif it has a license orOption.none()otherwise.
-
isLicensed
public boolean isLicensed(com.atlassian.application.api.ApplicationKey key) Description copied from interface:ApplicationRoleDefinitionsReturntrueif theApplicationRoleDefinitions.ApplicationRoleDefinitionidentified by the givenApplicationKeyis licensed.- Specified by:
isLicensedin interfaceApplicationRoleDefinitions- Parameters:
key- the key to check.- Returns:
truewhen the passedApplicationRoleDefinitions.ApplicationRoleDefinitionis licensed.
-