Modifier | Constructor and Description |
---|---|
protected |
BaseLicense(LicenseType type,
boolean base,
short prodId,
short appVersion,
long 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.
|
long |
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, long lockId, short metricId, int metricQty, short sno, short expDays)
type
- license type e.g. DEMO, PRODUCTION, TEST. TRIAL, INSTALL, PACKAGEDbase
- 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()
License
frameworkVersion
in interface License
public LicenseType type()
License
public LicenseStatus status()
License
public short productId()
License
public short productVersion()
License
productVersion
in interface License
public long lockId()
License
public long created()
License
public long activated()
License
public short metricId()
License
public int metricQuantity()
License
metricQuantity
in interface License
public short deactivationCode()
License
deactivationCode
in interface License
public short serialNumber()
License
serialNumber
in interface License
public short daysToExpire()
License
daysToExpire
in interface License
public boolean base()
License
public String key()
License
protected String formatDate(long dt)
dt
- the date needs to be formattedCopyright © 2015. All Rights Reserved.