public class

DefaultApplicationRoleDefinitions

extends Object
implements ApplicationRoleDefinitions
java.lang.Object
   ↳ com.atlassian.jira.application.DefaultApplicationRoleDefinitions

Summary

Public Constructors
DefaultApplicationRoleDefinitions(JiraLicenseManager licenseManager, PluginApplicationMetaDataManager metaDataManager)
Public Methods
@Nonnull Iterable<ApplicationRoleDefinitions.ApplicationRoleDefinition> getDefined()
Return all the defined ApplicationRoleDefinitions.
@Nonnull Option<ApplicationRoleDefinitions.ApplicationRoleDefinition> getDefined(ApplicationKey applicationKey)
Return the ApplicationRoleDefinitions.ApplicationRoleDefinition associated with the passed ApplicationKey provided it is defined.
Option<ApplicationRoleDefinitions.ApplicationRoleDefinition> getLicensed(ApplicationKey key)
Return the ApplicationRoleDefinitions.ApplicationRoleDefinition associated with the passed ApplicationKey provided it has a license (irrespective of the license state whether it has expired or it user limit has been exceeded).
@Nonnull Iterable<ApplicationRoleDefinitions.ApplicationRoleDefinition> getLicensed()
Return all the licensed ApplicationRoleDefinitions.
boolean isDefined(ApplicationKey applicationKey)
Return true if the ApplicationRoleDefinitions.ApplicationRoleDefinition identified by the given ApplicationKey is defined.
boolean isLicensed(ApplicationKey key)
Return true if the ApplicationRoleDefinitions.ApplicationRoleDefinition identified by the given ApplicationKey is licensed.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.application.ApplicationRoleDefinitions

Public Constructors

public DefaultApplicationRoleDefinitions (JiraLicenseManager licenseManager, PluginApplicationMetaDataManager metaDataManager)

Public Methods

@Nonnull public Iterable<ApplicationRoleDefinitions.ApplicationRoleDefinition> getDefined ()

Return all the defined ApplicationRoleDefinitions.

Returns
  • all the defined ApplicationRoleDefinitions.

@Nonnull public Option<ApplicationRoleDefinitions.ApplicationRoleDefinition> getDefined (ApplicationKey applicationKey)

Return the ApplicationRoleDefinitions.ApplicationRoleDefinition associated with the passed ApplicationKey provided it is defined. A value of none() is returned if the passed ApplicationKey is undefined.

Parameters
applicationKey the ID to check.
Returns

public Option<ApplicationRoleDefinitions.ApplicationRoleDefinition> getLicensed (ApplicationKey key)

Return the ApplicationRoleDefinitions.ApplicationRoleDefinition associated with the passed ApplicationKey provided it has a license (irrespective of the license state whether it has expired or it user limit has been exceeded). A value of none() is returned if the passed ApplicationKey does not have a license.

Parameters
key the ID to check.
Returns

@Nonnull public Iterable<ApplicationRoleDefinitions.ApplicationRoleDefinition> getLicensed ()

Return all the licensed ApplicationRoleDefinitions.

Returns
  • all the licensed ApplicationRoleDefinitions.

public boolean isDefined (ApplicationKey applicationKey)

Return true if the ApplicationRoleDefinitions.ApplicationRoleDefinition identified by the given ApplicationKey is defined.

Parameters
applicationKey the key to check.
Returns

public boolean isLicensed (ApplicationKey key)

Return true if the ApplicationRoleDefinitions.ApplicationRoleDefinition identified by the given ApplicationKey is licensed.

Parameters
key the key to check.
Returns