|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.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 assign
public 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 assigned
public 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 assigned| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getModifiedBy()
LicenseStorage.LicenseEntry
getModifiedBy in interface LicenseStorage.LicenseEntrypublic void setModifiedBy(java.lang.String aModifiedBy)
setModifiedBy in interface LicenseStorage.LicenseEntrypublic int getNumberCopies()
LicenseStorage.LicenseEntry
getNumberCopies in interface LicenseStorage.LicenseEntrypublic void setNumberCopies(int aNumberCopies)
setNumberCopies in interface LicenseStorage.LicenseEntrypublic java.util.Date getLicenseIssueDate()
LicenseStorage.LicenseEntry
getLicenseIssueDate in interface LicenseStorage.LicenseEntrypublic void setLicenseIssueDate(java.util.Date aLicenseIssueDate)
setLicenseIssueDate in interface LicenseStorage.LicenseEntrypublic int getCPULimit()
LicenseStorage.LicenseEntry
getCPULimit in interface LicenseStorage.LicenseEntrypublic void setCPULimit(int aCPULimit)
setCPULimit in interface LicenseStorage.LicenseEntrypublic long getMemoryLimit()
LicenseStorage.LicenseEntry
getMemoryLimit in interface LicenseStorage.LicenseEntrypublic void setMemoryLimit(long aMemoryLimit)
setMemoryLimit in interface LicenseStorage.LicenseEntrypublic int getLockPeriod()
LicenseStorage.LicenseEntry
getLockPeriod in interface LicenseStorage.LicenseEntrypublic void setLockPeriod(int aLockPeriod)
setLockPeriod in interface LicenseStorage.LicenseEntrypublic int getCheckoutPeriod()
LicenseStorage.LicenseEntry
getCheckoutPeriod in interface LicenseStorage.LicenseEntrypublic void setCheckoutPeriod(int aCheckoutPeriod)
setCheckoutPeriod in interface LicenseStorage.LicenseEntrypublic int getUsageLimit()
LicenseStorage.LicenseEntry
getUsageLimit in interface LicenseStorage.LicenseEntrypublic void setUsageLimit(int aUsageLimit)
setUsageLimit in interface LicenseStorage.LicenseEntrypublic int getID()
LicenseStorage.LicenseEntry
getID in interface LicenseStorage.LicenseEntrypublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object anOther)
equals in class java.lang.Objectpublic java.beans.PropertyChangeSupport getPropertyChangeSupport()
PropertyChangeSupport used to fire corresponding events
PropertyChangeSupportpublic BasicLicenseStorage getBasicLicenseStorage()
public boolean isSupplemental()
isSupplemental in interface LicenseStorage.LicenseEntrytrue if the license entry represents a supplemental licensepublic boolean isSupplementalFor(LicenseStorage.LicenseEntry aLicenseEntry)
LicenseStorage.LicenseEntry
isSupplementalFor in interface LicenseStorage.LicenseEntrytrue if the license entry represents a supplemental licensepublic int getSupplementalUsageLimit()
LicenseStorage.LicenseEntry
getSupplementalUsageLimit in interface LicenseStorage.LicenseEntrypublic void setSupplementalUsageLimit(int aSupplementalUsageLimit)
LicenseStorage.LicenseEntry
setSupplementalUsageLimit in interface LicenseStorage.LicenseEntryaSupplementalUsageLimit - total usage limit supplied by all the supplemental licensespublic int getSupplementalCPULimit()
LicenseStorage.LicenseEntry
getSupplementalCPULimit in interface LicenseStorage.LicenseEntrypublic void setSupplementalCPULimit(int aSupplementalCPULimit)
LicenseStorage.LicenseEntry
setSupplementalCPULimit in interface LicenseStorage.LicenseEntryaSupplementalCPULimit - total CPU Core limit supplied by all the supplemental licensespublic long getSupplementalMemoryLimit()
LicenseStorage.LicenseEntry
getSupplementalMemoryLimit in interface LicenseStorage.LicenseEntrypublic void setSupplementalMemoryLimit(long aSupplementalMemoryLimit)
LicenseStorage.LicenseEntry
setSupplementalMemoryLimit in interface LicenseStorage.LicenseEntryaSupplementalMemoryLimit - 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.LicenseEntrypublic void setLicenseBytes(byte[] aLicenseBytes)
LicenseStorage.LicenseEntry
setLicenseBytes in interface LicenseStorage.LicenseEntryaLicenseBytes - license bytes to setpublic void setLicenseType(int aLicenseType)
LicenseStorage.LicenseEntry
setLicenseType in interface LicenseStorage.LicenseEntryaLicenseType - license type to setpublic void setMajorVersion(int aMajorVersion)
LicenseStorage.LicenseEntry
setMajorVersion in interface LicenseStorage.LicenseEntryaMajorVersion - major version to setpublic void setMinorVersion(int aMinorVersion)
LicenseStorage.LicenseEntry
setMinorVersion in interface LicenseStorage.LicenseEntryaMinorVersion - minor version to setpublic void setProduct(java.lang.String aProduct)
LicenseStorage.LicenseEntry
setProduct in interface LicenseStorage.LicenseEntryaProduct - product identifier to setpublic void setProductEdition(java.lang.String aProductEdition)
LicenseStorage.LicenseEntry
setProductEdition in interface LicenseStorage.LicenseEntryaProductEdition - product edition identifier to setpublic void setLicenseNumber(java.lang.String aLicenseNumber)
LicenseStorage.LicenseEntry
setLicenseNumber in interface LicenseStorage.LicenseEntryaLicenseNumber - license number to setpublic void setUserLicensingModel(int aUserLicensingModel)
LicenseStorage.LicenseEntry
setUserLicensingModel in interface LicenseStorage.LicenseEntryaUserLicensingModel - user licensing model to setpublic int getLicenseType()
LicenseStorage.LicenseEntry
getLicenseType in interface LicenseStorage.LicenseEntrypublic java.lang.String getProduct()
LicenseStorage.LicenseEntry
getProduct in interface LicenseStorage.LicenseEntrypublic java.lang.String getProductEdition()
LicenseStorage.LicenseEntry
getProductEdition in interface LicenseStorage.LicenseEntrypublic int getMajorVersion()
LicenseStorage.LicenseEntry
getMajorVersion in interface LicenseStorage.LicenseEntrypublic int getMinorVersion()
LicenseStorage.LicenseEntry
getMinorVersion in interface LicenseStorage.LicenseEntrypublic java.lang.String getLicenseNumber()
LicenseStorage.LicenseEntry
getLicenseNumber in interface LicenseStorage.LicenseEntrypublic int getUserLicensingModel()
LicenseStorage.LicenseEntry
getUserLicensingModel in interface LicenseStorage.LicenseEntrypublic void setValid(boolean aValid)
LicenseStorage.LicenseEntry
setValid in interface LicenseStorage.LicenseEntryaValid - true if the entry is validpublic int getState()
LicenseStorage.LicenseEntryLicense.STATE constants. Note, reserved for use by Licensing Server.
getState in interface LicenseStorage.LicenseEntrypublic void setState(int aState)
LicenseStorage.LicenseEntry
setState in interface LicenseStorage.LicenseEntryaState - the state of the entry as one of License.STATE_ constantspublic boolean isValid()
LicenseStorage.LicenseEntry
isValid in interface LicenseStorage.LicenseEntrytrue if the entry is valid; false otherwisepublic void setMainLicenseNumber(java.lang.String aMainLicenseNumber)
LicenseStorage.LicenseEntry
setMainLicenseNumber in interface LicenseStorage.LicenseEntryaMainLicenseNumber - main license number to setpublic java.lang.String getMainLicenseNumber()
LicenseStorage.LicenseEntry
getMainLicenseNumber in interface LicenseStorage.LicenseEntrypublic int getSupplementalNumberCopies()
LicenseStorage.LicenseEntry
getSupplementalNumberCopies in interface LicenseStorage.LicenseEntrypublic void setSupplementalNumberCopies(int aSupplementalNumberCopies)
LicenseStorage.LicenseEntry
setSupplementalNumberCopies in interface LicenseStorage.LicenseEntryaSupplementalNumberCopies - 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 | ||||||||