public interface LicensedApplications
license
.
Typical usage:
JiraLicenseManager jlm = ...;
LicenseDetails licenseDetails = jlm.getLicense();
LicensedApplications applications = licenseDetails.getLicensedApplications();
Set<ApplicationKey> keys = applications.getKeys();
for (ApplicationKey key : keys)
{
int numSeats = roleDetails.getUserLimit( key );
...
}
LicensePropertiesConstants.UNLIMITED_USERS
,
ApplicationRoleManager
,
LicenseDetails.getLicensedApplications()
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Returns a user-friendly string version of the
Application s
encoded in the source license , or the empty string
if there are no Applications in the source license. |
Set<com.atlassian.application.api.ApplicationKey> |
getKeys()
Returns the
ApplicationKey s encoded in the source
license . |
int |
getUserLimit(com.atlassian.application.api.ApplicationKey key)
Returns the number of seats for the given
ApplicationKey . |
boolean |
hasNativeRole()
Indicates whether the license key has been issued as an JIRA Application license ( role based license ) or
whether we have interpreted it as an JIRA Application license.
|
@Nonnull Set<com.atlassian.application.api.ApplicationKey> getKeys()
ApplicationKey
s encoded in the source
license
. This may return an empty set, but never
returns null.int getUserLimit(@Nonnull com.atlassian.application.api.ApplicationKey key)
ApplicationKey
. It will return:
ApplicationKey
is not licensed.LicensePropertiesConstants.UNLIMITED_USERS
if the passed
ApplicationKey
has no limit.
positive number
when the passed ApplicationKey
has that exact limit.ApplicationKey
, 0, or
LicensePropertiesConstants.UNLIMITED_USERS
.@Nonnull String getDescription()
Application
s
encoded in the source license
, or the empty string
if there are no Applications in the source license.@Internal boolean hasNativeRole()
Copyright © 2002-2017 Atlassian. All Rights Reserved.