com.atlassian.jira.license.LicensedApplications |
![]()
|
Encapsulates the application/role information embedded in a 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 );
...
}
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a user-friendly string version of the com.atlassian.application.api.Applications
encoded in the source
license , or the empty string
if there are no Applications in the source license. | |||||||||||
Returns the com.atlassian.application.api.ApplicationKeys encoded in the source
license . | |||||||||||
Returns the number of seats for the given com.atlassian.application.api.ApplicationKey.
| |||||||||||
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.
|
Returns a user-friendly string version of the com.atlassian.application.api.Applications
encoded in the source license
, or the empty string
if there are no Applications in the source license.
Returns the com.atlassian.application.api.ApplicationKeys encoded in the source
license
. This may return an empty set, but never
returns null.
Returns the number of seats for the given com.atlassian.application.api.ApplicationKey. It will return:
ApplicationKey
is not licensed.UNLIMITED_USERS
if the passed
ApplicationKey
has no limit.
positive number
when the passed ApplicationKey
has that exact limit.UNLIMITED_USERS
.
@Internal
classes and interfaces can not expect to be compatible with any version
other than the version they were compiled against (even minor version and milestone releases may break binary
compatibility with respect to @Internal
elements).
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.