java.lang.Object | ||
↳ | com.atlassian.jira.license.DefaultLicenseDetails | |
↳ | com.atlassian.jira.license.SubscriptionLicenseDetails |
Subclass of DefaultLicenseDetails
for implementing enterprise license-specific behaviour. There are
currently 2 kinds of enterprise license: DataCenter (which enables clustering) and ELA (Enterprise License Agreement,
which allows use of all Atlassian products). Both of these are issued on a subscription basis, and behave differently
on expiry.
As the name suggests, licenses represented by this class have a finite expiry date, representing the end of the current subscription period.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a duration-based brief expiry message of form "Expires in XX months, YY days".
| |||||||||||
Returns an expiry status message; see also
getLicenseExpiryStatusMessage(I18nHelper, OutlookDate) . | |||||||||||
Get the maintenance message for this license, this does not evaluate the maintenance date, it only provides the
message that should be displayed when license out of maintenance for a given JIRA Application.
| |||||||||||
Checks whether the license is either expired for Evaluation or Extended Licenses (New Build, Old License).
This is logically similar to | |||||||||||
If the license is Evaluation or Extended (New Build, Old License), returns true if we are within 7 days of the
expiry date.
|
[Expand]
Inherited Methods | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]()
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]()
|
IllegalArgumentException | if getExpiryDate() is null (ie: a perpetual license).
|
---|
Returns a duration-based brief expiry message of form "Expires in XX months, YY days".
i18n | i18n bean |
---|---|
date | ignored |
Returns an expiry status message; see also getLicenseExpiryStatusMessage(I18nHelper, OutlookDate)
.
i18n | i18n bean |
---|---|
ignored | used to get user context if necessary |
Get the maintenance message for this license, this does not evaluate the maintenance date, it only provides the
message that should be displayed when license out of maintenance for a given JIRA Application. For subscription
license no message would be returned hasAnyMessages()
would return false.
i18n | i18n helper |
---|---|
applicationName | JIRA Application name (trademark for display) |
Checks whether the license is either expired for Evaluation or Extended Licenses (New Build, Old License).
This is logically similar to DefaultLicenseDetails
, but these kinds of licenses do not have to worry
about legacy version 1 licenses so this logic is simpler.
If the license is Evaluation or Extended (New Build, Old License), returns true if we are within 7 days of the expiry date.