|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ProductLicense
Defines the license for a single instance of a single product.
| Method Summary | |
|---|---|
java.util.Collection<Contact> |
getContacts()
|
java.util.Date |
getCreationDate()
|
java.lang.String |
getDescription()
User friendly description of this license |
java.util.Date |
getExpiryDate()
|
java.util.Date |
getGracePeriodEndDate()
Returns the expiry date of the grace period. |
LicenseType |
getLicenseType()
|
int |
getLicenseVersion()
The version of the license (i.e. |
java.util.Date |
getMaintenanceExpiryDate()
|
int |
getMaximumNumberOfUsers()
|
int |
getNumberOfDaysBeforeExpiry()
Returns the number of days before license expires. |
int |
getNumberOfDaysBeforeGracePeriodExpiry()
Returns the number of day before the grace period expires. |
int |
getNumberOfDaysBeforeMaintenanceExpiry()
Returns the number of days before the maintenance expires. |
Organisation |
getOrganisation()
|
Partner |
getPartner()
|
Product |
getProduct()
Returns the product to which this license is associated to. |
java.lang.Iterable<Product> |
getProducts()
Returns all Products which are associated with this license. |
java.lang.String |
getProperty(java.lang.String name)
|
java.util.Date |
getPurchaseDate()
|
java.lang.String |
getServerId()
|
java.lang.String |
getSupportEntitlementNumber()
|
boolean |
isClusteringEnabled()
|
boolean |
isEvaluation()
|
boolean |
isExpired()
|
boolean |
isGracePeriodExpired()
|
boolean |
isMaintenanceExpired()
|
boolean |
isSubscription()
|
boolean |
isUnlimitedNumberOfUsers()
|
boolean |
isWithinGracePeriod()
Tells whether now is after the expiry date and
before the grace period end date. |
| Method Detail |
|---|
int getLicenseVersion()
java.lang.String getDescription()
Product getProduct()
getProducts(). In this case, getProduct() will
return just the host application Product but not the embedded ones.
getProducts()java.lang.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()java.lang.String getServerId()
Partner getPartner()
null if none.Organisation getOrganisation()
java.util.Collection<Contact> getContacts()
Organisation for this license.java.util.Date getCreationDate()
java.util.Date getPurchaseDate()
java.util.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()java.util.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()java.lang.String getSupportEntitlementNumber()
null if it cannot be found in the license.java.util.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()
java.lang.String getProperty(java.lang.String name)
name - the name of the property to look for
null if the property doesn't exist.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||