@PublicApi
public interface BaseLicenseDetails
This interface must not contain properties which may have multiple values in Multi-Product Platform licenses (eg NumberOfUsers).
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Returns the description that appears in the license.
|
Date |
getLicenseExpiryDate()
Returns the license expiry date.
|
String |
getLicenseTypeName()
Returns the license type name exactly as it appears in the license.
|
Date |
getMaintenanceExpiryDate()
Returns the Maintenance expiry date.
|
String |
getOrganisationName()
Returns the Organisation Name.
|
String |
getProperty(String key)
Retrieves an arbitrary property from the license.
|
String |
getServerId()
Returns the Server-ID as it appears in this license.
|
String |
getSupportEntitlementNumber()
Returns the Support Entitlement Number (SEN) for this license.
|
boolean |
isDataCenter()
Returns true if this is a "Data Center" license.
|
boolean |
isEnterpriseLicensingAgreement()
Returns true if this is an "Enterprise Licensing Agreement" license.
|
boolean |
isEvaluationLicense()
Returns true if this is an evaluation license.
|
boolean |
isPerpetualLicense()
Returns true if this license never expires.
|
boolean isEvaluationLicense()
getLicenseTypeName()@Nonnull String getLicenseTypeName()
isEvaluationLicense()String getOrganisationName()
@Nullable String getSupportEntitlementNumber()
This should only return null for Development licenses.
String getDescription()
String getServerId()
boolean isPerpetualLicense()
This is equivalent to calling:
getLicenseExpiryDate() == null
@Nullable Date getLicenseExpiryDate()
Perpetual licenses will never expire and will return a null expiry date.
Subscription licenses will have an expiry date.
It is recommended that you display the expiry date to users for subscription licenses, and the maintenance
expiry date to users for perpetual licenses.
isPerpetualLicense(),
getMaintenanceExpiryDate()@Nullable Date getMaintenanceExpiryDate()
boolean isDataCenter()
boolean isEnterpriseLicensingAgreement()
Copyright © 2018 Atlassian. All rights reserved.