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
ApplicationRoleDefinitions. |
com.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
ApplicationRoleDefinitions. |
com.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()
ApplicationRoleDefinitionsApplicationRoleDefinitions.getDefined in interface ApplicationRoleDefinitionsApplicationRoleDefinitions.@Nonnull public com.atlassian.fugue.Option<ApplicationRoleDefinitions.ApplicationRoleDefinition> getDefined(com.atlassian.application.api.ApplicationKey applicationKey)
ApplicationRoleDefinitionsApplicationRoleDefinitions.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 ApplicationRoleDefinitionsapplicationKey - 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)
ApplicationRoleDefinitionstrue if the ApplicationRoleDefinitions.ApplicationRoleDefinition identified by the given ApplicationKey
is defined.isDefined in interface ApplicationRoleDefinitionsapplicationKey - the key to check.true when the passed ApplicationRoleDefinitions.ApplicationRoleDefinition is defined.@Nonnull public Iterable<ApplicationRoleDefinitions.ApplicationRoleDefinition> getLicensed()
ApplicationRoleDefinitionsApplicationRoleDefinitions.getLicensed in interface ApplicationRoleDefinitionsApplicationRoleDefinitions.public com.atlassian.fugue.Option<ApplicationRoleDefinitions.ApplicationRoleDefinition> getLicensed(com.atlassian.application.api.ApplicationKey key)
ApplicationRoleDefinitionsApplicationRoleDefinitions.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 ApplicationRoleDefinitionskey - 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)
ApplicationRoleDefinitionstrue if the ApplicationRoleDefinitions.ApplicationRoleDefinition identified by the given ApplicationKey
is licensed.isLicensed in interface ApplicationRoleDefinitionskey - the key to check.true when the passed ApplicationRoleDefinitions.ApplicationRoleDefinition is licensed.Copyright © 2002-2017 Atlassian. All Rights Reserved.