|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@ExperimentalApi public interface LicenseRoleDetails
Encapsulates license role
information for a given
license
.
Typical usage:
JiraLicenseManager jlm = ...; LicenseDetails licenseDetails = jlm.getLicense(); LicenseRoleDetails roleDetails = licenseDetails.getLicenseRoleDetails(); SetlicenseRoles = roleDetails.getLicenseRoles(); for (LicenseRoleId role : licenseRoles) { int numSeats = roleDetails.getUserLimit( role ); ... }
Field Summary | |
---|---|
static int |
UNLIMITED_USERS
The integer constant indicating an effectively unlimited number of users/seats. |
Method Summary | |
---|---|
Set<LicenseRoleId> |
getLicenseRoles()
Returns the license roles encoded in the present license. |
int |
getUserLimit(LicenseRoleId role)
Returns the number of seats for the given LicenseRoleId . |
Field Detail |
---|
static final int UNLIMITED_USERS
Method Detail |
---|
@Nonnull Set<LicenseRoleId> getLicenseRoles()
license roles
encoded in the present license. This may return an empty set, but
never returns null.
int getUserLimit(LicenseRoleId role)
LicenseRoleId
.
UNLIMITED_USERS
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |