public interface LicenseRoleAuthorizationService
LicenseRole (as identified by its
LicenseRoleId), or if a license role is available.com.atlassian.jira.license.JiraLicenseManager},
com.atlassian.jira.bc.license.LicenseRoleAdminService},
LicenseRoleId,
LicenseRole| Modifier and Type | Method and Description |
|---|---|
boolean |
canUseRole(ApplicationUser user,
LicenseRoleId role)
Returns true if the given user has been assigned to the given role and the role is
backed by a license that grants that role.
|
int |
getUserCount(LicenseRoleId roleId)
Retrieve the number of active users for a specific license role (product).
|
boolean |
isAuthenticated(ApplicationUser user,
LicenseRoleId licenseRoleId)
|
boolean |
isAuthenticated(LicenseRoleId role)
Deprecated.
|
boolean |
isLicenseRoleInstalled(LicenseRoleId role)
Deprecated.
|
boolean canUseRole(@Nullable ApplicationUser user, @Nonnull LicenseRoleId role)
user - the user to check for access rights - if this is null, this method returns falserole - the license role to checkLicenseRoleService#userHasRole(ApplicationUser, LicenseRoleId)} for a method which does not check the
license@Deprecated boolean isLicenseRoleInstalled(@Nonnull LicenseRoleId role)
role - a license role identifiercom.atlassian.jira.license.JiraLicenseManager#isLicensed(LicenseRoleId)} which
provides this functionality from 6.3@Deprecated boolean isAuthenticated(@Nullable ApplicationUser user, @Nonnull LicenseRoleId licenseRoleId)
@Deprecated boolean isAuthenticated(@Nonnull LicenseRoleId role)
isLicenseRoleInstalled(com.atlassian.jira.license.LicenseRoleId).int getUserCount(@Nonnull LicenseRoleId roleId)
roleId - is the license role ID used to identify the product.Copyright © 2002-2015 Atlassian. All Rights Reserved.