|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jp.protection.pub.pro.ls.BasicLicenseStorage.BasicLicenseEntry
public static class BasicLicenseStorage.BasicLicenseEntry
Basic implementation of the LicenseEntry
interface
Field Summary | |
---|---|
protected BasicLicenseStorage |
fBasicLicenseStorage
|
protected int |
fCheckoutPeriod
|
protected int |
fCPULimit
|
protected int |
fID
|
protected byte[] |
fLicenseBytes
|
protected java.util.Date |
fLicenseIssueDate
|
protected java.lang.String |
fLicenseNumber
|
protected int |
fLicenseType
|
protected int |
fLockPeriod
|
protected java.lang.String |
fMainLicenseNumber
|
protected int |
fMajorVersion
|
protected long |
fMemoryLimit
|
protected int |
fMinorVersion
|
protected java.lang.String |
fModifiedBy
|
protected int |
fNumberCopies
|
protected java.lang.String |
fProduct
|
protected java.lang.String |
fProductEdition
|
protected java.beans.PropertyChangeSupport |
fPropertyChangeSupport
|
protected int |
fState
|
protected int |
fSupplementalCPULimit
|
protected long |
fSupplementalMemoryLimit
|
protected int |
fSupplementalNumberCopies
|
protected int |
fSupplementalUsageLimit
|
protected int |
fUsageLimit
|
protected int |
fUserLicensingModel
|
protected boolean |
fValid
|
static java.lang.String |
PROPERTY_LICENSE_BYTES
|
static java.lang.String |
PROPERTY_LICENSE_NUMBER
|
static java.lang.String |
PROPERTY_LICENSE_TYPE
|
static java.lang.String |
PROPERTY_MAIN_LICENSE_NUMBER
|
static java.lang.String |
PROPERTY_MAJOR_VERSION
|
static java.lang.String |
PROPERTY_MINOR_VERSION
|
static java.lang.String |
PROPERTY_PRODUCT
|
static java.lang.String |
PROPERTY_PRODUCT_EDITION
|
static java.lang.String |
PROPERTY_USER_LICENSING_MODEL
|
static java.lang.String |
PROPERTY_VALID
|
static long |
serialVersionUID
|
Constructor Summary | |
---|---|
BasicLicenseStorage.BasicLicenseEntry(int anID)
Creates a new instance of the BasicLicenseEntry |
|
BasicLicenseStorage.BasicLicenseEntry(int anID,
byte[] aLicenseBytes,
java.lang.String aProduct)
Creates a new instance of the BasicLicenseEntry |
|
BasicLicenseStorage.BasicLicenseEntry(int anID,
byte[] aLicenseBytes,
java.lang.String aProduct,
java.lang.String aProductEdition,
int aMajorVersion,
int aMinorVersion,
int aLicenseType)
Creates a new instance of the BasicLicenseEntry |
Method Summary | |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a listener to the listeners list |
boolean |
equals(java.lang.Object anOther)
|
BasicLicenseStorage |
getBasicLicenseStorage()
Returns license storage this license entry belongs to |
int |
getCheckoutPeriod()
Returns license checkout period |
int |
getCPULimit()
Retuens CPU core limit |
int |
getID()
Returns unique identifier |
byte[] |
getLicenseBytes()
Returns license bytes |
java.util.Date |
getLicenseIssueDate()
Returns license issue date |
java.lang.String |
getLicenseNumber()
Returns license number |
int |
getLicenseType()
Returns license type |
int |
getLockPeriod()
Returns license lock period |
java.lang.String |
getMainLicenseNumber()
Returns main license number. |
int |
getMajorVersion()
Returns major version |
long |
getMemoryLimit()
Returns memory limit |
int |
getMinorVersion()
Returns minor version |
java.lang.String |
getModifiedBy()
Returns identifier of the app that created or modified that entry in the form of app_id:instance_id |
int |
getNumberCopies()
Returns the number of copies |
java.lang.String |
getProduct()
Returns product identifier |
java.lang.String |
getProductEdition()
Returns product edition identifier |
java.beans.PropertyChangeSupport |
getPropertyChangeSupport()
Returns an instance of the PropertyChangeSupport used to fire corresponding events |
int |
getState()
Returns the state of the entry as one of License.STATE constants. |
int |
getSupplementalCPULimit()
Returns the total CPU Core limit supplied by all the supplemental licenses. |
long |
getSupplementalMemoryLimit()
Returns the total memory limit supplied by all the supplemental licenses. |
int |
getSupplementalNumberCopies()
Returns number of copies supplied by all the supplemental licenses. |
int |
getSupplementalUsageLimit()
Returns the total usage limit supplied by all the supplemental licenses. |
int |
getUsageLimit()
Returns usage limit |
int |
getUserLicensingModel()
Returns user licensing model |
int |
hashCode()
|
boolean |
isSupplemental()
Checks whether the license entry represents a supplemental license |
boolean |
isSupplementalFor(LicenseStorage.LicenseEntry aLicenseEntry)
Checks whether the license entry represents a supplemental license |
boolean |
isValid()
Returns whether the entry is valid. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a listener from the listeners list |
protected void |
setBasicLicenseStorage(BasicLicenseStorage aBasicLicenseStorage)
|
void |
setCheckoutPeriod(int aCheckoutPeriod)
|
void |
setCPULimit(int aCPULimit)
|
void |
setLicenseBytes(byte[] aLicenseBytes)
Specifies license bytes for the entry |
void |
setLicenseIssueDate(java.util.Date aLicenseIssueDate)
|
void |
setLicenseNumber(java.lang.String aLicenseNumber)
Specifies license number for the entry |
void |
setLicenseType(int aLicenseType)
Specifies license type for the entry |
void |
setLockPeriod(int aLockPeriod)
|
void |
setMainLicenseNumber(java.lang.String aMainLicenseNumber)
Specifies main license number for the entry. |
void |
setMajorVersion(int aMajorVersion)
Specifies major version for the entry |
void |
setMemoryLimit(long aMemoryLimit)
|
void |
setMinorVersion(int aMinorVersion)
Specifies minor version for the entry |
void |
setModifiedBy(java.lang.String aModifiedBy)
|
void |
setNumberCopies(int aNumberCopies)
|
void |
setProduct(java.lang.String aProduct)
Specifies product identifier for the entry |
void |
setProductEdition(java.lang.String aProductEdition)
Specifies product edition identifier for the entry |
void |
setState(int aState)
Specifies the state of the entry. |
void |
setSupplementalCPULimit(int aSupplementalCPULimit)
Specifies the total CPU Core limit supplied by all the supplemental licenses. |
void |
setSupplementalMemoryLimit(long aSupplementalMemoryLimit)
Specifies the total memory limit supplied by all the supplemental licenses. |
void |
setSupplementalNumberCopies(int aSupplementalNumberCopies)
Specifies number of copies supplied by all the supplemental licenses. |
void |
setSupplementalUsageLimit(int aSupplementalUsageLimit)
Specifies the total usage limit supplied by all the supplemental licenses. |
void |
setUsageLimit(int aUsageLimit)
|
void |
setUserLicensingModel(int aUserLicensingModel)
Specifies user licensing model for the entry |
void |
setValid(boolean aValid)
Specifies that the license entry is valid. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final long serialVersionUID
public static final java.lang.String PROPERTY_LICENSE_BYTES
public static final java.lang.String PROPERTY_LICENSE_TYPE
public static final java.lang.String PROPERTY_LICENSE_NUMBER
public static final java.lang.String PROPERTY_PRODUCT
public static final java.lang.String PROPERTY_PRODUCT_EDITION
public static final java.lang.String PROPERTY_MAJOR_VERSION
public static final java.lang.String PROPERTY_MINOR_VERSION
public static final java.lang.String PROPERTY_USER_LICENSING_MODEL
public static final java.lang.String PROPERTY_MAIN_LICENSE_NUMBER
public static final java.lang.String PROPERTY_VALID
protected transient byte[] fLicenseBytes
protected java.lang.String fLicenseNumber
protected int fLicenseType
protected java.lang.String fProduct
protected java.lang.String fProductEdition
protected int fMajorVersion
protected int fMinorVersion
protected int fUserLicensingModel
protected java.lang.String fMainLicenseNumber
protected boolean fValid
protected int fSupplementalNumberCopies
protected transient BasicLicenseStorage fBasicLicenseStorage
protected transient java.beans.PropertyChangeSupport fPropertyChangeSupport
protected int fID
protected int fSupplementalUsageLimit
protected int fSupplementalCPULimit
protected long fSupplementalMemoryLimit
protected int fState
protected java.lang.String fModifiedBy
protected int fNumberCopies
protected java.util.Date fLicenseIssueDate
protected int fCPULimit
protected long fMemoryLimit
protected int fLockPeriod
protected int fCheckoutPeriod
protected int fUsageLimit
Constructor Detail |
---|
public BasicLicenseStorage.BasicLicenseEntry(int anID)
BasicLicenseEntry
anID
- unique identifier to assignpublic BasicLicenseStorage.BasicLicenseEntry(int anID, byte[] aLicenseBytes, java.lang.String aProduct)
BasicLicenseEntry
anID
- unique identifier to be assignedaLicenseBytes
- byte[] license bytes to be assignedaProduct
- product identifier to be assignedpublic BasicLicenseStorage.BasicLicenseEntry(int anID, byte[] aLicenseBytes, java.lang.String aProduct, java.lang.String aProductEdition, int aMajorVersion, int aMinorVersion, int aLicenseType)
BasicLicenseEntry
anID
- unique identifier to be assignedaLicenseBytes
- byte[] license bytes to be assignedaProduct
- product identifier to be assignedaProductEdition
- product edition identifier to be assignedaMajorVersion
- major version to be assignedaMinorVersion
- minor version to be assignedaLicenseType
- license type to be assignedMethod Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getModifiedBy()
LicenseStorage.LicenseEntry
getModifiedBy
in interface LicenseStorage.LicenseEntry
public void setModifiedBy(java.lang.String aModifiedBy)
setModifiedBy
in interface LicenseStorage.LicenseEntry
public int getNumberCopies()
LicenseStorage.LicenseEntry
getNumberCopies
in interface LicenseStorage.LicenseEntry
public void setNumberCopies(int aNumberCopies)
setNumberCopies
in interface LicenseStorage.LicenseEntry
public java.util.Date getLicenseIssueDate()
LicenseStorage.LicenseEntry
getLicenseIssueDate
in interface LicenseStorage.LicenseEntry
public void setLicenseIssueDate(java.util.Date aLicenseIssueDate)
setLicenseIssueDate
in interface LicenseStorage.LicenseEntry
public int getCPULimit()
LicenseStorage.LicenseEntry
getCPULimit
in interface LicenseStorage.LicenseEntry
public void setCPULimit(int aCPULimit)
setCPULimit
in interface LicenseStorage.LicenseEntry
public long getMemoryLimit()
LicenseStorage.LicenseEntry
getMemoryLimit
in interface LicenseStorage.LicenseEntry
public void setMemoryLimit(long aMemoryLimit)
setMemoryLimit
in interface LicenseStorage.LicenseEntry
public int getLockPeriod()
LicenseStorage.LicenseEntry
getLockPeriod
in interface LicenseStorage.LicenseEntry
public void setLockPeriod(int aLockPeriod)
setLockPeriod
in interface LicenseStorage.LicenseEntry
public int getCheckoutPeriod()
LicenseStorage.LicenseEntry
getCheckoutPeriod
in interface LicenseStorage.LicenseEntry
public void setCheckoutPeriod(int aCheckoutPeriod)
setCheckoutPeriod
in interface LicenseStorage.LicenseEntry
public int getUsageLimit()
LicenseStorage.LicenseEntry
getUsageLimit
in interface LicenseStorage.LicenseEntry
public void setUsageLimit(int aUsageLimit)
setUsageLimit
in interface LicenseStorage.LicenseEntry
public int getID()
LicenseStorage.LicenseEntry
getID
in interface LicenseStorage.LicenseEntry
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object anOther)
equals
in class java.lang.Object
public java.beans.PropertyChangeSupport getPropertyChangeSupport()
PropertyChangeSupport
used to fire corresponding events
PropertyChangeSupport
public BasicLicenseStorage getBasicLicenseStorage()
public boolean isSupplemental()
isSupplemental
in interface LicenseStorage.LicenseEntry
true
if the license entry represents a supplemental licensepublic boolean isSupplementalFor(LicenseStorage.LicenseEntry aLicenseEntry)
LicenseStorage.LicenseEntry
isSupplementalFor
in interface LicenseStorage.LicenseEntry
true
if the license entry represents a supplemental licensepublic int getSupplementalUsageLimit()
LicenseStorage.LicenseEntry
getSupplementalUsageLimit
in interface LicenseStorage.LicenseEntry
public void setSupplementalUsageLimit(int aSupplementalUsageLimit)
LicenseStorage.LicenseEntry
setSupplementalUsageLimit
in interface LicenseStorage.LicenseEntry
aSupplementalUsageLimit
- total usage limit supplied by all the supplemental licensespublic int getSupplementalCPULimit()
LicenseStorage.LicenseEntry
getSupplementalCPULimit
in interface LicenseStorage.LicenseEntry
public void setSupplementalCPULimit(int aSupplementalCPULimit)
LicenseStorage.LicenseEntry
setSupplementalCPULimit
in interface LicenseStorage.LicenseEntry
aSupplementalCPULimit
- total CPU Core limit supplied by all the supplemental licensespublic long getSupplementalMemoryLimit()
LicenseStorage.LicenseEntry
getSupplementalMemoryLimit
in interface LicenseStorage.LicenseEntry
public void setSupplementalMemoryLimit(long aSupplementalMemoryLimit)
LicenseStorage.LicenseEntry
setSupplementalMemoryLimit
in interface LicenseStorage.LicenseEntry
aSupplementalMemoryLimit
- memory limit supplied by all the supplemental licensesprotected void setBasicLicenseStorage(BasicLicenseStorage aBasicLicenseStorage)
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- a listener to addpublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- a listener to removepublic byte[] getLicenseBytes()
LicenseStorage.LicenseEntry
getLicenseBytes
in interface LicenseStorage.LicenseEntry
public void setLicenseBytes(byte[] aLicenseBytes)
LicenseStorage.LicenseEntry
setLicenseBytes
in interface LicenseStorage.LicenseEntry
aLicenseBytes
- license bytes to setpublic void setLicenseType(int aLicenseType)
LicenseStorage.LicenseEntry
setLicenseType
in interface LicenseStorage.LicenseEntry
aLicenseType
- license type to setpublic void setMajorVersion(int aMajorVersion)
LicenseStorage.LicenseEntry
setMajorVersion
in interface LicenseStorage.LicenseEntry
aMajorVersion
- major version to setpublic void setMinorVersion(int aMinorVersion)
LicenseStorage.LicenseEntry
setMinorVersion
in interface LicenseStorage.LicenseEntry
aMinorVersion
- minor version to setpublic void setProduct(java.lang.String aProduct)
LicenseStorage.LicenseEntry
setProduct
in interface LicenseStorage.LicenseEntry
aProduct
- product identifier to setpublic void setProductEdition(java.lang.String aProductEdition)
LicenseStorage.LicenseEntry
setProductEdition
in interface LicenseStorage.LicenseEntry
aProductEdition
- product edition identifier to setpublic void setLicenseNumber(java.lang.String aLicenseNumber)
LicenseStorage.LicenseEntry
setLicenseNumber
in interface LicenseStorage.LicenseEntry
aLicenseNumber
- license number to setpublic void setUserLicensingModel(int aUserLicensingModel)
LicenseStorage.LicenseEntry
setUserLicensingModel
in interface LicenseStorage.LicenseEntry
aUserLicensingModel
- user licensing model to setpublic int getLicenseType()
LicenseStorage.LicenseEntry
getLicenseType
in interface LicenseStorage.LicenseEntry
public java.lang.String getProduct()
LicenseStorage.LicenseEntry
getProduct
in interface LicenseStorage.LicenseEntry
public java.lang.String getProductEdition()
LicenseStorage.LicenseEntry
getProductEdition
in interface LicenseStorage.LicenseEntry
public int getMajorVersion()
LicenseStorage.LicenseEntry
getMajorVersion
in interface LicenseStorage.LicenseEntry
public int getMinorVersion()
LicenseStorage.LicenseEntry
getMinorVersion
in interface LicenseStorage.LicenseEntry
public java.lang.String getLicenseNumber()
LicenseStorage.LicenseEntry
getLicenseNumber
in interface LicenseStorage.LicenseEntry
public int getUserLicensingModel()
LicenseStorage.LicenseEntry
getUserLicensingModel
in interface LicenseStorage.LicenseEntry
public void setValid(boolean aValid)
LicenseStorage.LicenseEntry
setValid
in interface LicenseStorage.LicenseEntry
aValid
- true
if the entry is validpublic int getState()
LicenseStorage.LicenseEntry
License.STATE
constants. Note, reserved for use by Licensing Server.
getState
in interface LicenseStorage.LicenseEntry
public void setState(int aState)
LicenseStorage.LicenseEntry
setState
in interface LicenseStorage.LicenseEntry
aState
- the state of the entry as one of License.STATE
_ constantspublic boolean isValid()
LicenseStorage.LicenseEntry
isValid
in interface LicenseStorage.LicenseEntry
true
if the entry is valid; false
otherwisepublic void setMainLicenseNumber(java.lang.String aMainLicenseNumber)
LicenseStorage.LicenseEntry
setMainLicenseNumber
in interface LicenseStorage.LicenseEntry
aMainLicenseNumber
- main license number to setpublic java.lang.String getMainLicenseNumber()
LicenseStorage.LicenseEntry
getMainLicenseNumber
in interface LicenseStorage.LicenseEntry
public int getSupplementalNumberCopies()
LicenseStorage.LicenseEntry
getSupplementalNumberCopies
in interface LicenseStorage.LicenseEntry
public void setSupplementalNumberCopies(int aSupplementalNumberCopies)
LicenseStorage.LicenseEntry
setSupplementalNumberCopies
in interface LicenseStorage.LicenseEntry
aSupplementalNumberCopies
- number of copies supplied by all the supplemental licenses
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |