com.atlassian.jira.bc.license
Interface LicenseRoleService
- All Superinterfaces:
- LicenseRoleAdminService
- All Known Implementing Classes:
- DefaultLicenseRoleService, MockLicenseRoleService
Deprecated. use LicenseRoleAdminService
or
LicenseRoleAuthorizationService
instead
@ExperimentalApi
@Deprecated
public interface LicenseRoleService
- extends LicenseRoleAdminService
Provides authorisation-related methods around the provision and consumption of license roles.
- Since:
- 6.3
- See Also:
JiraLicenseManager}
userHasRole
@Deprecated
boolean userHasRole(@Nullable
ApplicationUser user,
@Nonnull
LicenseRoleId licenseRoleId)
- Deprecated. use
LicenseRoleAuthorizationService.canUseRole(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.license.LicenseRoleId)
instead
- Returns true if the given user has the given license role regardless of whether a license for that role is
present.
- Parameters:
user
- the user to check - if this is null, this method returns falselicenseRoleId
- the license role to check - if this is null, you'll get an exception :)
Copyright © 2002-2015 Atlassian. All Rights Reserved.