public class DefaultApplicationRoleDefinitions extends Object implements ApplicationRoleDefinitions
ApplicationRoleDefinitions.ApplicationRoleDefinition
Constructor and Description |
---|
DefaultApplicationRoleDefinitions(JiraLicenseManager licenseManager,
com.atlassian.application.host.plugin.PluginApplicationMetaDataManager metaDataManager) |
Modifier and Type | Method and Description |
---|---|
Iterable<ApplicationRoleDefinitions.ApplicationRoleDefinition> |
getDefined()
Return all the defined
ApplicationRoleDefinition s. |
io.atlassian.fugue.Option<ApplicationRoleDefinitions.ApplicationRoleDefinition> |
getDefined(com.atlassian.application.api.ApplicationKey applicationKey)
Return the
ApplicationRoleDefinitions.ApplicationRoleDefinition associated with the passed ApplicationKey
provided it is defined. |
Iterable<ApplicationRoleDefinitions.ApplicationRoleDefinition> |
getLicensed()
Return all the licensed
ApplicationRoleDefinition s. |
io.atlassian.fugue.Option<ApplicationRoleDefinitions.ApplicationRoleDefinition> |
getLicensed(com.atlassian.application.api.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). |
boolean |
isDefined(com.atlassian.application.api.ApplicationKey applicationKey)
Return
true if the ApplicationRoleDefinitions.ApplicationRoleDefinition identified by the given ApplicationKey
is defined. |
boolean |
isLicensed(com.atlassian.application.api.ApplicationKey key)
Return
true if the ApplicationRoleDefinitions.ApplicationRoleDefinition identified by the given ApplicationKey
is licensed. |
public DefaultApplicationRoleDefinitions(JiraLicenseManager licenseManager, com.atlassian.application.host.plugin.PluginApplicationMetaDataManager metaDataManager)
@Nonnull public Iterable<ApplicationRoleDefinitions.ApplicationRoleDefinition> getDefined()
ApplicationRoleDefinitions
ApplicationRoleDefinition
s.getDefined
in interface ApplicationRoleDefinitions
ApplicationRoleDefinition
s.@Nonnull public io.atlassian.fugue.Option<ApplicationRoleDefinitions.ApplicationRoleDefinition> getDefined(com.atlassian.application.api.ApplicationKey applicationKey)
ApplicationRoleDefinitions
ApplicationRoleDefinitions.ApplicationRoleDefinition
associated with the passed ApplicationKey
provided it is defined. A value of Option.none()
is returned if the passed
ApplicationKey
is undefined.getDefined
in interface ApplicationRoleDefinitions
applicationKey
- the ID to check.ApplicationRoleDefinitions.ApplicationRoleDefinition
associated with the passed
ApplicationKey
if it is defined or Option.none()
otherwise.public boolean isDefined(com.atlassian.application.api.ApplicationKey applicationKey)
ApplicationRoleDefinitions
true
if the ApplicationRoleDefinitions.ApplicationRoleDefinition
identified by the given ApplicationKey
is defined.isDefined
in interface ApplicationRoleDefinitions
applicationKey
- the key to check.true
when the passed ApplicationRoleDefinitions.ApplicationRoleDefinition
is defined.@Nonnull public Iterable<ApplicationRoleDefinitions.ApplicationRoleDefinition> getLicensed()
ApplicationRoleDefinitions
ApplicationRoleDefinition
s.getLicensed
in interface ApplicationRoleDefinitions
ApplicationRoleDefinition
s.public io.atlassian.fugue.Option<ApplicationRoleDefinitions.ApplicationRoleDefinition> getLicensed(com.atlassian.application.api.ApplicationKey key)
ApplicationRoleDefinitions
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 Option.none()
is returned if the passed ApplicationKey
does not have a license.getLicensed
in interface ApplicationRoleDefinitions
key
- the ID to check.ApplicationRoleDefinitions.ApplicationRoleDefinition
associated with the passed
ApplicationKey
if it has a license or Option.none()
otherwise.public boolean isLicensed(com.atlassian.application.api.ApplicationKey key)
ApplicationRoleDefinitions
true
if the ApplicationRoleDefinitions.ApplicationRoleDefinition
identified by the given ApplicationKey
is licensed.isLicensed
in interface ApplicationRoleDefinitions
key
- the key to check.true
when the passed ApplicationRoleDefinitions.ApplicationRoleDefinition
is licensed.Copyright © 2002-2019 Atlassian. All Rights Reserved.