public interface ProductLicense
int getLicenseVersion()
String getDescription()
Product getProduct()
If additional licenses are embedded, please use getProducts(). In this case, this method will
return just the host application Product but not the embedded ones.
getProducts()Iterable<Product> getProducts()
Products which are associated with this license. This can be any number of Products
due to being able to embed additional products (e.g. OnDemand plugins) into a host license.Products which are associated with this license.getProduct()String getServerId()
Partner getPartner()
null if none.Organisation getOrganisation()
Collection<Contact> getContacts()
Organisation for this license.Date getCreationDate()
Date getPurchaseDate()
Date getExpiryDate()
null if the license never expires.int getNumberOfDaysBeforeExpiry()
isExpired() instead.Integer.MAX_VALUE if the license never expires.isExpired(),
getNumberOfDaysBeforeMaintenanceExpiry()boolean isExpired()
true if the license is expired, false otherwise.getExpiryDate()Date getGracePeriodEndDate()
Returns the expiry date of the grace period. The grace period extends from the expiry
date to the date returned by this method. This period is typically used to alert customers that their license
has expired but they will still work fully for some period of time.
If the license doesn't expire then this method will return null, just as getExpiryDate().
null if the license never expires.getExpiryDate()int getNumberOfDaysBeforeGracePeriodExpiry()
Returns the number of day before the grace period expires. This method should not be used to determine whether the grace period has ended as it is only accurate down to a day. Use {#isGracePeriodExpired()} instead.
If the license doesn't expire (no need for grace period expiry) it will return Integer.MAX_VALUE.
This method will return a valid number of days otherwise, even if the license hasn't expired yet and the grace period still hasn't been activated. Users should use {#isWithinGracePeriod()} to check whether the grace period has been activated
boolean isWithinGracePeriod()
now is after the expiry date and
before the grace period end date. This method will always return false
for licenses that don't expire.true if now is between the two dates mentionned, false otherwise.getGracePeriodEndDate(),
getExpiryDate()boolean isGracePeriodExpired()
true if the license is past the grace period end date, false
if it is null or the license is not past the grace period end date.getGracePeriodEndDate()String getSupportEntitlementNumber()
null if it cannot be found in the license.Date getMaintenanceExpiryDate()
null if the maintenance never expires.int getNumberOfDaysBeforeMaintenanceExpiry()
isMaintenanceExpired()
instead.Integer.MAX_VALUE if the maintenance never
expires.isMaintenanceExpired(),
getNumberOfDaysBeforeExpiry()boolean isMaintenanceExpired()
true if the maintenance for this license is expired, false otherwise.getMaintenanceExpiryDate()int getMaximumNumberOfUsers()
isUnlimitedNumberOfUsers()boolean isUnlimitedNumberOfUsers()
true if the license is for unlimited number of users, false otherwise.getMaximumNumberOfUsers()boolean isEvaluation()
true if this is an evaluation license, false otherwise.boolean isSubscription()
true if this is a subscription license, false otherwise.boolean isClusteringEnabled()
true if this is a clustering license, false otherwise.LicenseType getLicenseType()
Copyright © 2005–2021 Atlassian. All rights reserved.