@ExperimentalApi
public interface LicenseRoleDetails
license role
information for a given
license
.
Typical usage:
JiraLicenseManager jlm = ...; LicenseDetails licenseDetails = jlm.getLicense(); LicenseRoleDetails roleDetails = licenseDetails.getLicenseRoleDetails(); SetlicenseRoles = roleDetails.getIds(); for (LicenseRoleId role : licenseRoles) { int numSeats = roleDetails.getUserLimit( role ); ... }
Modifier and Type | Field and Description |
---|---|
static int |
UNLIMITED_USERS
The integer constant indicating an effectively unlimited number of users/seats.
|
Modifier and Type | Method and Description |
---|---|
Set<LicenseRoleId> |
getIds()
Returns the
license roles encoded in the present license. |
Set<LicenseRoleId> |
getLicenseRoles()
Deprecated.
use getIds instead
|
int |
getUserLimit(LicenseRoleId role)
Returns the number of seats for the given
LicenseRoleId . |
static final int UNLIMITED_USERS
@Deprecated @Nonnull Set<LicenseRoleId> getLicenseRoles()
license roles
encoded in the present license. This may return an empty set, but
never returns null.@Nonnull Set<LicenseRoleId> getIds()
license roles
encoded in the present license. This may return an empty set, but
never returns null.int getUserLimit(LicenseRoleId role)
LicenseRoleId
.UNLIMITED_USERS
.Copyright © 2002-2015 Atlassian. All Rights Reserved.