|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.license.DefaultLicenseRoleManager
public class DefaultLicenseRoleManager
Default implementation of LicenseRoleManager
.
Constructor Summary | |
---|---|
DefaultLicenseRoleManager(com.atlassian.cache.CacheManager cacheManager,
LicenseRoleStore store,
LicenseRoleDefinitions definitions,
GroupManager groupManager)
|
Method Summary | |
---|---|
void |
clearCache(ClearCacheEvent event)
|
Set<String> |
getGroupsForAuthenticatedLicenseRoles()
Get groups that has been associated with all authenticated license roles |
com.atlassian.fugue.Option<LicenseRole> |
getLicenseRole(LicenseRoleId licenseRoleId)
Return the authenticated LicenseRole associated with the passed ID or Option.none() if no such
role exists. |
Set<LicenseRole> |
getLicenseRoles()
Returns the Set of all currently authenticated LicenseRole s. |
boolean |
isAuthenticated(LicenseRoleId licenseRoleId)
Return true when the passed LicenseRoleId is authenticated. |
void |
onFeatureChange(FeatureEvent event)
|
void |
onGroupCreated(com.atlassian.crowd.event.group.GroupCreatedEvent createdEvent)
|
void |
onGroupDeleted(com.atlassian.crowd.event.group.GroupDeletedEvent deletedEvent)
|
void |
onLicenseChanged(NewLicenseEvent event)
|
void |
onLicenseRoleDefined(LicenseRoleDefinedEvent event)
|
void |
onLicenseRoleUndefined(LicenseRoleUndefinedEvent event)
|
LicenseRole |
setLicenseRole(LicenseRole role)
Save the passed LicenseRole information to the database. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultLicenseRoleManager(@Nonnull com.atlassian.cache.CacheManager cacheManager, @Nonnull LicenseRoleStore store, @Nonnull LicenseRoleDefinitions definitions, @Nonnull GroupManager groupManager)
Method Detail |
---|
@Nonnull public com.atlassian.fugue.Option<LicenseRole> getLicenseRole(@Nonnull LicenseRoleId licenseRoleId)
LicenseRoleManager
LicenseRole
associated with the passed ID or Option.none()
if no such
role exists. An authenticated LicenseRole
is both defined and licensed.
getLicenseRole
in interface LicenseRoleManager
licenseRoleId
- the ID to search for.
LicenseRole
associated with the passed ID.@Nonnull public Set<LicenseRole> getLicenseRoles()
LicenseRoleManager
Set
of all currently authenticated LicenseRole
s.
An authenticated LicenseRole
is both defined and licensed.
getLicenseRoles
in interface LicenseRoleManager
Set
of authenticated LicenseRole
s.@Nonnull public Set<String> getGroupsForAuthenticatedLicenseRoles()
getGroupsForAuthenticatedLicenseRoles
in interface LicenseRoleManager
public boolean isAuthenticated(@Nonnull LicenseRoleId licenseRoleId)
LicenseRoleManager
true
when the passed LicenseRoleId
is authenticated.
A LicenseRoleId
is authenticated when a plugin provides a
LicenseRoleDefinition
and it is also licensed.
isAuthenticated
in interface LicenseRoleManager
licenseRoleId
- the ID to check.
true
when the passed LicenseRoleId
is authenticated.@Nonnull public LicenseRole setLicenseRole(@Nonnull LicenseRole role)
LicenseRoleManager
LicenseRole
information to the database. This method will
only accept the passed role if:
setLicenseRole
in interface LicenseRoleManager
role
- the role to save.
@EventListener public void clearCache(ClearCacheEvent event)
@EventListener public void onLicenseRoleDefined(LicenseRoleDefinedEvent event)
@EventListener public void onLicenseRoleUndefined(LicenseRoleUndefinedEvent event)
@EventListener public void onLicenseChanged(NewLicenseEvent event)
@EventListener public void onFeatureChange(FeatureEvent event)
@EventListener public void onGroupDeleted(com.atlassian.crowd.event.group.GroupDeletedEvent deletedEvent)
@EventListener public void onGroupCreated(com.atlassian.crowd.event.group.GroupCreatedEvent createdEvent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |