public class PluginLicenseRoleDefinitions extends Object implements LicenseRoleDefinitions
| Constructor and Description |
|---|
PluginLicenseRoleDefinitions(com.atlassian.plugin.PluginAccessor pluginAccessor,
JiraLicenseManager licenseManager,
com.atlassian.event.api.EventPublisher publisher) |
| Modifier and Type | Method and Description |
|---|---|
com.atlassian.fugue.Option<LicenseRoleDefinition> |
getDefinedRoleDefinition(LicenseRoleId licenseRoleId)
Return the
LicenseRoleDefinition associated with the passed LicenseRoleId
provided it is defined. |
Set<LicenseRoleDefinition> |
getDefinedRoleDefinitions()
Return all the defined
LicenseRoleDefinitions. |
com.atlassian.fugue.Option<LicenseRoleDefinition> |
getInstalledRoleDefinition(LicenseRoleId licenseRoleId)
Return the
LicenseRoleDefinition associated with the passed LicenseRoleId
provided it is installed. |
Set<LicenseRoleDefinition> |
getInstalledRoleDefinitions()
Return all the installed
LicenseRoleDefinitions. |
boolean |
isLicenseRoleDefined(LicenseRoleId licenseRoleId)
|
boolean |
isLicenseRoleInstalled(LicenseRoleId licenseRoleId)
Return
true when the passed LicenseRoleId is installed. |
void |
pluginModuleDisabled(com.atlassian.plugin.event.events.PluginModuleDisabledEvent event) |
void |
pluginModuleEnabled(com.atlassian.plugin.event.events.PluginModuleEnabledEvent event) |
public PluginLicenseRoleDefinitions(com.atlassian.plugin.PluginAccessor pluginAccessor,
JiraLicenseManager licenseManager,
com.atlassian.event.api.EventPublisher publisher)
@Nonnull public Set<LicenseRoleDefinition> getDefinedRoleDefinitions()
LicenseRoleDefinitionsLicenseRoleDefinitions. A LicenseRoleDefinition is
considered defined when a plugin provides it. A defined LicenseRoleDefinition
does not necessarily have an accompanying license.getDefinedRoleDefinitions in interface LicenseRoleDefinitionsLicenseRoleDefinitions.@Nonnull public Set<LicenseRoleDefinition> getInstalledRoleDefinitions()
LicenseRoleDefinitionsLicenseRoleDefinitions. A LicenseRoleDefinition
is considered installed when a plugin defines it and it has an accompanying license.
An installed LicenseRole has been defined by a plugin/product
AND has an accompanying license that grants that role.getInstalledRoleDefinitions in interface LicenseRoleDefinitionsLicenseRoleDefinitions.public boolean isLicenseRoleDefined(@Nonnull LicenseRoleId licenseRoleId)
LicenseRoleDefinitionstrue if the LicenseRole identified by the given LicenseRoleId
is defined.
A defined LicenseRole has been defined by a plugin/product
but does not necessarily have an accompanying license that grants that role.isLicenseRoleDefined in interface LicenseRoleDefinitionslicenseRoleId - the ID to check.true when the passed LicenseRoleId is defined.public boolean isLicenseRoleInstalled(@Nonnull LicenseRoleId licenseRoleId)
LicenseRoleDefinitionstrue when the passed LicenseRoleId is installed.
An installed LicenseRole has been defined by a plugin/product
AND has an accompanying license that grants that role.isLicenseRoleInstalled in interface LicenseRoleDefinitionslicenseRoleId - the ID to check.true when the passed LicenseRoleId is installed.@Nonnull public com.atlassian.fugue.Option<LicenseRoleDefinition> getDefinedRoleDefinition(@Nonnull LicenseRoleId licenseRoleId)
LicenseRoleDefinitionsLicenseRoleDefinition associated with the passed LicenseRoleId
provided it is defined. A value of Option.none() is returned if the passed
LicenseRoleId is undefined.
A defined LicenseRole has been defined by a plugin/product
but does not necessarily have an accompanying license that grants that role.getDefinedRoleDefinition in interface LicenseRoleDefinitionslicenseRoleId - the ID to check.LicenseRoleDefinition associated with the passed
LicenseRoleId if it is defined or Option.none()
otherwise.@Nonnull public com.atlassian.fugue.Option<LicenseRoleDefinition> getInstalledRoleDefinition(@Nonnull LicenseRoleId licenseRoleId)
LicenseRoleDefinitionsLicenseRoleDefinition associated with the passed LicenseRoleId
provided it is installed. A value of Option.none() is returned if the passed
LicenseRoleId is not installed.
An installed LicenseRole has been defined by a plugin/product
AND has an accompanying license that grants that role.getInstalledRoleDefinition in interface LicenseRoleDefinitionslicenseRoleId - the ID to check.LicenseRoleDefinition associated with the passed
LicenseRoleId if it is installed or Option.none()
otherwise.@EventListener public void pluginModuleDisabled(com.atlassian.plugin.event.events.PluginModuleDisabledEvent event)
@EventListener public void pluginModuleEnabled(com.atlassian.plugin.event.events.PluginModuleEnabledEvent event)
Copyright © 2002-2015 Atlassian. All Rights Reserved.