|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.license.PluginLicenseRoleDefinitions
public class PluginLicenseRoleDefinitions
Constructor Summary | |
---|---|
PluginLicenseRoleDefinitions(com.atlassian.plugin.PluginAccessor pluginAccessor,
JiraLicenseManager licenseManager,
com.atlassian.event.api.EventPublisher publisher)
|
Method Summary | |
---|---|
com.atlassian.fugue.Option<LicenseRoleDefinition> |
getAuthenticatedRoleDefinition(LicenseRoleId licenseRoleId)
Return the LicenseRoleDefinition associated with the passed LicenseRoleId
provided it is authenticated. |
Set<LicenseRoleDefinition> |
getAuthenticatedRoleDefinitions()
Return all the authenticated LicenseRoleDefinition s. |
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 LicenseRoleDefinition s. |
boolean |
isLicenseRoleAuthenticated(LicenseRoleId licenseRoleId)
Return true when the passed LicenseRoleId is authenticated. |
boolean |
isLicenseRoleDefined(LicenseRoleId licenseRoleId)
Return true when the passed LicenseRoleId is defined. |
void |
pluginModuleDisabled(com.atlassian.plugin.event.events.PluginModuleDisabledEvent event)
|
void |
pluginModuleEnabled(com.atlassian.plugin.event.events.PluginModuleEnabledEvent event)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PluginLicenseRoleDefinitions(com.atlassian.plugin.PluginAccessor pluginAccessor, JiraLicenseManager licenseManager, com.atlassian.event.api.EventPublisher publisher)
Method Detail |
---|
@Nonnull public Set<LicenseRoleDefinition> getDefinedRoleDefinitions()
LicenseRoleDefinitions
LicenseRoleDefinition
s. A LicenseRoleDefinition
is defined when
a plugin provides it. This does not indicate if the LicenseRoleDefinition
is licensed or not.
getDefinedRoleDefinitions
in interface LicenseRoleDefinitions
LicenseRoleDefinition
s.@Nonnull public Set<LicenseRoleDefinition> getAuthenticatedRoleDefinitions()
LicenseRoleDefinitions
LicenseRoleDefinition
s. A LicenseRoleDefinition
is authenticated when
a plugin defines it and it is licensed.
getAuthenticatedRoleDefinitions
in interface LicenseRoleDefinitions
LicenseRoleDefinition
s.public boolean isLicenseRoleDefined(@Nonnull LicenseRoleId licenseRoleId)
LicenseRoleDefinitions
true
when the passed LicenseRoleId
is defined.
A LicenseRoleId
is defined when a plugin provides a
LicenseRoleDefinition
. This does not indicate if the
LicenseRoleId
is licensed or not.
isLicenseRoleDefined
in interface LicenseRoleDefinitions
licenseRoleId
- the ID to check.
true
when the passed LicenseRoleId
is defined.public boolean isLicenseRoleAuthenticated(@Nonnull LicenseRoleId licenseRoleId)
LicenseRoleDefinitions
true
when the passed LicenseRoleId
is authenticated.
A LicenseRoleId
is authenticated when a plugin provides a
LicenseRoleDefinition
and it is also licensed.
isLicenseRoleAuthenticated
in interface LicenseRoleDefinitions
licenseRoleId
- the ID to check.
true
when the passed LicenseRoleId
is authenticated.@Nonnull public com.atlassian.fugue.Option<LicenseRoleDefinition> getDefinedRoleDefinition(@Nonnull LicenseRoleId licenseRoleId)
LicenseRoleDefinitions
LicenseRoleDefinition
associated with the passed LicenseRoleId
provided it is defined. A value of Option.none()
is returned if the passed
LicenseRoleId
is undefined.
A LicenseRoleId
is defined when a plugin provides a LicenseRoleDefinition
. This does not
indicate if the LicenseRoleId
is licensed or not.
getDefinedRoleDefinition
in interface LicenseRoleDefinitions
licenseRoleId
- 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> getAuthenticatedRoleDefinition(@Nonnull LicenseRoleId licenseRoleId)
LicenseRoleDefinitions
LicenseRoleDefinition
associated with the passed LicenseRoleId
provided it is authenticated. A value of Option.none()
is returned if the passed
LicenseRoleId
is not authenticated.
A LicenseRoleId
is authenticated when a plugin provides a LicenseRoleDefinition
and it is licensed.
getAuthenticatedRoleDefinition
in interface LicenseRoleDefinitions
licenseRoleId
- the ID to check.
LicenseRoleDefinition
associated with the passed
LicenseRoleId
if it is authenticated 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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |