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}

Field Summary
 
Fields inherited from interface com.atlassian.jira.bc.license.LicenseRoleAdminService
ERROR_GROUPS, ERROR_PRIMARY
 
Method Summary
 boolean userHasRole(ApplicationUser user, LicenseRoleId licenseRoleId)
          Deprecated. use LicenseRoleAuthorizationService.canUseRole(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.license.LicenseRoleId) instead
 
Methods inherited from interface com.atlassian.jira.bc.license.LicenseRoleAdminService
getRole, getRoles, setGroups, setRole
 

Method Detail

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 false
licenseRoleId - the license role to check - if this is null, you'll get an exception :)


Copyright © 2002-2015 Atlassian. All Rights Reserved.