@PublicApi
public interface LicenseDetails
Modifier and Type | Interface and Description |
---|---|
static interface |
LicenseDetails.LicenseContact
Represents a license contact name/email pair.
|
static interface |
LicenseDetails.LicenseStatusMessage
Encapsulates a collection of unordered, internationalised license-related status messages.
|
Modifier and Type | Method and Description |
---|---|
String |
getBriefMaintenanceStatusMessage(I18nHelper i18n)
Return the single word description of the maintenance status of the license.
|
Collection<LicenseDetails.LicenseContact> |
getContacts()
Gets the contact people for the license (e.g.
|
int |
getDaysToLicenseExpiry()
Returns the number of days until the license expires (i.e.
|
int |
getDaysToMaintenanceExpiry()
Returns the number of days until the license maintenance expires (i.e.
|
String |
getDescription() |
com.atlassian.extras.api.jira.JiraLicense |
getJiraLicense()
Retrieve the JiraLicense object corresponding to this license.
|
String |
getLicenseExpiryStatusMessage(I18nHelper i18n,
OutlookDate ignored)
Deprecated.
Use
getLicenseExpiryStatusMessage(com.atlassian.crowd.embedded.api.User) instead. Since v5.0. |
String |
getLicenseExpiryStatusMessage(com.atlassian.crowd.embedded.api.User user)
Return the HTML message that briefly describes the expiry status of the license.
|
LicenseRoleDetails |
getLicenseRoles()
Returns the license role information contained within this license.
|
LicenseDetails.LicenseStatusMessage |
getLicenseStatusMessage(I18nHelper i18n)
Return the all messages which contain status message.
|
String |
getLicenseStatusMessage(I18nHelper i18n,
OutlookDate ignored,
String delimiter)
Deprecated.
|
String |
getLicenseStatusMessage(com.atlassian.crowd.embedded.api.User user,
String delimiter)
Deprecated.
|
String |
getLicenseString() |
int |
getLicenseVersion()
Gets the version of the current license, 0 if not set.
|
String |
getMaintenanceEndString(OutlookDate outlookDate)
Return the date string representing the end of maintenance of the license, whether the license is Evaluation, New
Build Old License or otherwise.
|
int |
getMaximumNumberOfUsers()
Gets the maximum number of users allowed by the current license
|
String |
getOrganisation()
Gets the organisation this license belongs to
|
String |
getPartnerName() |
String |
getPurchaseDate(OutlookDate outlookDate)
Gets a nicely formatted purchase date for the current license
|
String |
getSupportEntitlementNumber()
Gets the SEN from the license
|
String |
getSupportRequestMessage(I18nHelper i18n,
OutlookDate ignored)
Deprecated.
HTML messages should not be generated by this class; since v5.0
|
String |
getSupportRequestMessage(com.atlassian.crowd.embedded.api.User user)
Deprecated.
HTML messages should not be generated by this class; since v6.3
|
boolean |
hasLicenseTooOldForBuildConfirmationBeenDone()
Tells whether the admin has acknowledged that the JIRA instance is running on a too old license for its build
number.
|
boolean |
isCommercial()
Tells whether this is a commercial license or not
|
boolean |
isCommunity()
Tells whether this is a community license or not
|
boolean |
isDataCenter()
Returns true if this is a DataCenter license.
|
boolean |
isDemonstration()
Tells whether this is a demonstration license or not
|
boolean |
isDeveloper()
Tells whether this is a developer license or not
|
boolean |
isEnterpriseLicenseAgreement()
Indicates whether this licence is a subscription-based Enterprise License Agreement (ELA).
|
boolean |
isEntitledToSupport() |
boolean |
isEvaluation()
Tells whether this is an evaluation license or not
|
boolean |
isExpired()
Checks whether the license is either expired or the grace period for an extended license (after upgrade) is
over.
|
boolean |
isLicenseAlmostExpired()
If the license is Evaluation or Extended (New Build, Old License), returns true if we are within 7 days of the
expiry date.
|
boolean |
isLicenseSet()
Tells whether a license has been set or not for this JIRA instance.
|
boolean |
isMaintenanceValidForBuildDate(Date currentBuildDate)
Tells whether the current build date is within the maintenance of the license
|
boolean |
isNonProfit()
Tells whether this is a non profit license or not
|
boolean |
isOnDemand()
Tells whether this is an OnDemand license or not
|
boolean |
isOpenSource()
Tells whether this is an open source license or not
|
boolean |
isPersonalLicense()
Tells whether this is a personal license or not
|
boolean |
isStarter()
Tells whether this is a starter license or not
|
boolean |
isUnlimitedNumberOfUsers()
Tells whether the current license authorise an unlimited number of users.
|
boolean isLicenseSet()
true
if a license has been set, false
otherwise.int getLicenseVersion()
boolean isEntitledToSupport()
boolean isLicenseAlmostExpired()
com.atlassian.extras.api.jira.JiraLicense getJiraLicense()
@ExperimentalApi LicenseRoleDetails getLicenseRoles()
LicenseDetails.LicenseStatusMessage getLicenseStatusMessage(I18nHelper i18n)
i18n
- i18n bean@Deprecated String getLicenseStatusMessage(@Nullable com.atlassian.crowd.embedded.api.User user, String delimiter)
getLicenseStatusMessage(com.atlassian.jira.util.I18nHelper)
user
- the user for whom the message should be i18n'eddelimiter
- the line delimiter for the message@Deprecated String getLicenseStatusMessage(I18nHelper i18n, @Nullable OutlookDate ignored, String delimiter)
getLicenseStatusMessage(com.atlassian.jira.util.I18nHelper)
i18n
- i18n beanignored
- ignoreddelimiter
- the line delimiter for the messageString getLicenseExpiryStatusMessage(@Nullable com.atlassian.crowd.embedded.api.User user)
user
- the user for whom the message should be i18n'ed@Deprecated String getLicenseExpiryStatusMessage(I18nHelper i18n, @Nullable OutlookDate ignored)
getLicenseExpiryStatusMessage(com.atlassian.crowd.embedded.api.User)
instead. Since v5.0.i18n
- i18n beanignored
- outlookDate beanString getBriefMaintenanceStatusMessage(I18nHelper i18n)
i18n
- i18n bean@Deprecated String getSupportRequestMessage(com.atlassian.crowd.embedded.api.User user)
user
- a User object for the calling user@Deprecated String getSupportRequestMessage(I18nHelper i18n, @Nullable OutlookDate ignored)
i18n
- i18n beanignored
- ignoredString getMaintenanceEndString(OutlookDate outlookDate)
outlookDate
- outlookDate beanboolean isUnlimitedNumberOfUsers()
true
if the license authorise an unlimited number of users, false
otherwise.getMaximumNumberOfUsers()
int getMaximumNumberOfUsers()
isUnlimitedNumberOfUsers()
String getDescription()
String getPartnerName()
boolean isExpired()
String getPurchaseDate(OutlookDate outlookDate)
outlookDate
- the date formatterboolean isEvaluation()
true
if this is an evaluation license, false
otherwise.boolean isStarter()
true
if this is a starter license, false
otherwise.boolean isCommercial()
true
if this is a commercial license, false
otherwise.boolean isPersonalLicense()
true
if this is a personal license, false
otherwise.boolean isCommunity()
true
if this is a community license, false
otherwise.boolean isOpenSource()
true
if this is an open source license, false
otherwise.boolean isNonProfit()
true
if this is a non profit license, false
otherwise.boolean isDemonstration()
true
if this is a demonstration license, false
otherwise.boolean isOnDemand()
true
if this is a OnDemand, false
otherwise.boolean isDataCenter()
boolean isDeveloper()
true
if this is a developer license, false
otherwise.String getOrganisation()
boolean hasLicenseTooOldForBuildConfirmationBeenDone()
true
if the license in use is too old with regards to the build number, false
otherwise.String getLicenseString()
boolean isMaintenanceValidForBuildDate(Date currentBuildDate)
currentBuildDate
- the current build datetrue
if the build date is within the maintenance period, false
otherwise.String getSupportEntitlementNumber()
Collection<LicenseDetails.LicenseContact> getContacts()
boolean isEnterpriseLicenseAgreement()
int getDaysToLicenseExpiry()
0
indicates that license will expire today (but is still valid).Integer.MAX_VALUE
indicates that the license will never expire.1.5
days will be reported as 1
while
-0.5
days will be reported as -1
days.int getDaysToMaintenanceExpiry()
0
indicates that license maintenance will expire today (but is still valid).Integer.MAX_VALUE
indicates that the license maintenance will never expire.1.5
days will be reported as 1
while
-0.5
days will be reported as -1
days.Copyright © 2002-2015 Atlassian. All Rights Reserved.