| Modifier | Constructor and Description |
|---|---|
protected |
BaseLicense(LicenseType type,
boolean base,
short prodId,
short appVersion,
int lockId,
short metricId,
int metricQty,
short sno,
short expDays)
Constructor to create a license DTO to hold existing license info.
|
| Modifier and Type | Method and Description |
|---|---|
long |
activated()
Activation date of this license key as applied during license activation.
|
boolean |
base()
License expansion type, e.g base, incremental
|
long |
created()
Creation date of this license key as created by the licensing portal.
|
short |
daysToExpire()
Number of days until license expiration as measured since license
created.
|
short |
deactivationCode()
Deactivation code as issued by the product as a result of key
deactivation.
|
boolean |
equals(Object license) |
protected String |
formatDate(long dt)
Format the long date value to dd MMM yyyy
|
short |
frameworkVersion()
Version of the licensing framework that generated this license key.
|
int |
hashCode() |
String |
key()
Human readable encoded license key issued by the licensing portal.
|
int |
lockId()
Lock Id (or hardware Id) to which this license is locked.
|
short |
metricId()
Identifier of the metric whose value will be used to enforce compliance
with this license key.
|
int |
metricQuantity()
Maximum licensed quantity of the particular metric identified by metric
id.
|
short |
productId()
Product identifier as registered in the licensing portal.
|
short |
productVersion()
Major version number of the licensed product.
|
short |
serialNumber()
Unique number for a given lock-id.
|
LicenseStatus |
status()
Status of the license key, e.g.
|
String |
toString() |
LicenseType |
type()
License type, production, trial, etc.
|
protected BaseLicense(LicenseType type, boolean base, short prodId, short appVersion, int lockId, short metricId, int metricQty, short sno, short expDays)
type - license type e.g. DEMO, PRODUCTION, TEST. TRIALbase - license expansion typeprodId - product licensed forappVersion - version of the product licensed forlockId - software install idmetricId - licensed for metric i.e. users, nodes, CPUsmetricQty - licensed quantitysno - license record unique number for that lock idexpDays - license expires in days since it is createdpublic short frameworkVersion()
LicenseframeworkVersion in interface Licensepublic LicenseType type()
Licensepublic LicenseStatus status()
Licensepublic short productId()
Licensepublic short productVersion()
LicenseproductVersion in interface Licensepublic int lockId()
Licensepublic long created()
Licensepublic long activated()
Licensepublic short metricId()
Licensepublic int metricQuantity()
LicensemetricQuantity in interface Licensepublic short deactivationCode()
LicensedeactivationCode in interface Licensepublic short serialNumber()
LicenseserialNumber in interface Licensepublic short daysToExpire()
LicensedaysToExpire in interface Licensepublic boolean base()
Licensepublic String key()
Licenseprotected String formatDate(long dt)
dt - the date needs to be formattedCopyright © 2014. All Rights Reserved.