com.atlassian.jira.license.LicenseDetails |
Known Indirect Subclasses |
Clients of @PublicApi
can expect
that programs compiled against a given version will remain binary compatible with later versions of the
@PublicApi
as per each product's API policy as long as the client does not implement/extend
@PublicApi
interfaces or classes (refer to each product's API policy for the exact
guarantee---usually binary compatibility is guaranteed at least across minor versions).
@PublicApi
interfaces and classes are not designed to be implemented or extended by clients,
we may perform certain types of binary-incompatible changes to these classes and interfaces, but these will not
affect well-behaved clients that do not extend/implement these types (in general, only classes and interfaces
annotated with @PublicSpi
are safe to extend/implement).
A set of methods which describe the state of the currently installed license.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
LicenseDetails.LicenseContact | Represents a license contact name/email pair. | ||||||||||
LicenseDetails.LicenseStatusMessage | Encapsulates a collection of unordered, internationalised license-related status messages. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a user-friendly
String description of the com.atlassian.application.api.Application(s)
granted by this license. | |||||||||||
This method is deprecated.
since 7.0.0 No replacement, generate your own message
| |||||||||||
Gets the contact people for the license (e.g.
| |||||||||||
Returns the number of days until the license expires (i.e.
| |||||||||||
Returns the number of days until the license maintenance expires (i.e.
| |||||||||||
Returns the literal description of the current license as given in the license itself.
| |||||||||||
Retrieve the JiraLicense object corresponding to this license.
| |||||||||||
This method is deprecated.
since 5.0 No replacement, generate your own message
| |||||||||||
This method is deprecated.
since 7.0.0 No replacement, generate your own message
| |||||||||||
This method is deprecated.
use
getLicenseStatusMessage(com.atlassian.jira.util.I18nHelper, UserManager)
| |||||||||||
Return the all messages which contain status message.
| |||||||||||
This method is deprecated.
use
getLicenseStatusMessage(com.atlassian.jira.util.I18nHelper, UserManager)
| |||||||||||
Gets the version of the current license, 0 if not set.
| |||||||||||
Returns all the application/role information contained within this license, even if they are non active.
| |||||||||||
This method is deprecated.
since 7.0.0 No replacement, generate your own message
| |||||||||||
Returns the maintenance expiry
Date of this license, or null if the maintenance period of this
license is unlimited. | |||||||||||
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.
| |||||||||||
Gets the organisation this license belongs to
| |||||||||||
Gets a nicely formatted purchase date for the current license
| |||||||||||
Gets the SEN from the license
| |||||||||||
Returns true if the given ApplicationKey application is contained within this license.
| |||||||||||
Tells whether this is a commercial license or not
| |||||||||||
Tells whether this is a community license or not
| |||||||||||
Returns true if this is a DataCenter license.
| |||||||||||
Tells whether this is a demonstration license or not
| |||||||||||
Tells whether this is a developer license or not
| |||||||||||
Indicates whether this licence is a subscription-based Enterprise License Agreement (ELA).
| |||||||||||
Tells whether this is an evaluation license or not
| |||||||||||
Checks whether the license is either expired or the grace period for an extended license (after upgrade) is
over.
| |||||||||||
This method is deprecated.
since 7.0.0 use
getMaintenanceExpiryDate() instead
| |||||||||||
Tells whether the current build date is within the maintenance of the license
| |||||||||||
Tells whether this is a non profit license or not
| |||||||||||
Tells whether this is an OnDemand license or not
| |||||||||||
Tells whether this is an open source license or not
| |||||||||||
Checks whether the license type is a paid type.
| |||||||||||
Tells whether this is a personal license or not
| |||||||||||
Tells whether this is a starter license or not
| |||||||||||
This method is deprecated.
Use use
getLicensedApplications() and getKeys()
getUserLimit(com.atlassian.application.api.ApplicationKey)
instead. Since 7.0
|
Returns a user-friendly String
description of the com.atlassian.application.api.Application(s)
granted by this license. This method differs from getDescription()
in that the returned String is
Application
-focused and heuristically determined, and does not include license type information,
number of seats etc.
If there are no Application
s in the current license, then this method returns the String "JIRA"
.
This method is deprecated.
since 7.0.0 No replacement, generate your own message
Return the single word description of the maintenance status of the license. Intended for use with the Support Request and System Info pages.
i18n | i18n bean |
---|
Gets the contact people for the license (e.g. Name and Email of whoever first signed up for the OD license)
Returns the number of days until the license expires (i.e. JIRA will enter read-only mode).
0
indicates that license will expire today (but is still valid).MAX_VALUE
indicates that the license will never expire.
A partial day will be rounded down. For example, 1.5
days will be reported as 1
while
-0.5
days will be reported as -1
days.
Returns the number of days until the license maintenance expires (i.e. support and upgrades will cease).
0
indicates that license maintenance will expire today (but is still valid).MAX_VALUE
indicates that the license maintenance will never expire.
A partial day will be rounded down. For example, 1.5
days will be reported as 1
while
-0.5
days will be reported as -1
days.
Returns the literal description of the current license as given in the license itself.
Retrieve the JiraLicense object corresponding to this license. This will be useful to cross-product code that wants to deal with licenses from different products consistently using the ProductLicense interface (which JiraLicense extends).
This method is deprecated.
since 5.0 No replacement, generate your own message
Return the HTML message that briefly describes the expiry status of the license. Intended for use with the Admin Portlet.
i18n | i18n bean |
---|---|
ignored | outlookDate bean |
This method is deprecated.
since 7.0.0 No replacement, generate your own message
Return the HTML message that briefly describes the expiry status of the license. Intended for use with the Admin Portlet.
user | the user for whom the message should be i18n'ed |
---|
This method is deprecated.
use getLicenseStatusMessage(com.atlassian.jira.util.I18nHelper, UserManager)
Return the HTML message that describes the current status of the license.
i18n | i18n bean |
---|---|
ignored | ignored |
delimiter | the line delimiter for the message |
userManager | used to get user context if necessary |
Return the all messages which contain status message.
i18n | i18n bean |
---|---|
userManager | used to get user context if necessary |
This method is deprecated.
use getLicenseStatusMessage(com.atlassian.jira.util.I18nHelper, UserManager)
Return the HTML message that describes the current status of the license.
user | the user for whom the message should be i18n'ed |
---|---|
delimiter | the line delimiter for the message |
userManager | used to get user context if necessary |
Gets the version of the current license, 0 if not set. This is the version of encoder/decoder that was used with this license.
Returns all the application/role information contained within this license, even if they are non active.
This method is deprecated.
since 7.0.0 No replacement, generate your own message
Return the date string representing the end of maintenance of the license, whether the license is Evaluation, New Build Old License or otherwise.
Note that the return type here is a String to intentionally signify that this value should not be used in any logic calculations and only for displaying to the user.
outlookDate | outlookDate bean |
---|
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) |
Gets the organisation this license belongs to
Gets a nicely formatted purchase date for the current license
outlookDate | the date formatter |
---|
Gets the SEN from the license
Returns true if the given ApplicationKey application is contained within this license.
application | the application to query |
---|
Tells whether this is a commercial license or not
true
if this is a commercial license, false
otherwise.
Tells whether this is a community license or not
true
if this is a community license, false
otherwise.
Returns true if this is a DataCenter license.
Tells whether this is a demonstration license or not
true
if this is a demonstration license, false
otherwise.
Tells whether this is a developer license or not
true
if this is a developer license, false
otherwise.
Indicates whether this licence is a subscription-based Enterprise License Agreement (ELA).
Tells whether this is an evaluation license or not
true
if this is an evaluation license, false
otherwise.
Checks whether the license is either expired or the grace period for an extended license (after upgrade) is over.
This method is deprecated.
since 7.0.0 use getMaintenanceExpiryDate()
instead
If the license is Evaluation or Extended (New Build, Old License), returns true if we are within 7 days of the expiry date. Otherwise, returns true if within 6 weeks before the supported period end date.
Tells whether the current build date is within the maintenance of the license
currentBuildDate | the current build date |
---|
true
if the build date is within the maintenance period, false
otherwise.
Tells whether this is a non profit license or not
true
if this is a non profit license, false
otherwise.
Tells whether this is an OnDemand license or not
true
if this is a OnDemand, false
otherwise.
Tells whether this is an open source license or not
true
if this is an open source license, false
otherwise.
Checks whether the license type is a paid type. The paid types are ACADEMIC, COMMERCIAL, and STARTER.
true
if the license is a paid type, false
otherwise.Tells whether this is a personal license or not
true
if this is a personal license, false
otherwise.
Tells whether this is a starter license or not
true
if this is a starter license, false
otherwise.
This method is deprecated.
Use use getLicensedApplications()
and getKeys()
getUserLimit(com.atlassian.application.api.ApplicationKey)
instead. Since 7.0
Tells whether the current license authorise an unlimited number of users.
true
if the license authorise an unlimited number of users, false
otherwise.