|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jp.protection.pub.pro.lserver.LicenseDataImpl
public class LicenseDataImpl
Default implementation of the LicenseData
interface
Nested Class Summary | |
---|---|
static class |
LicenseDataImpl.RequestImpl
Default implementation of the Request interface |
static class |
LicenseDataImpl.ResponseImpl
Default implementation of the Response interface |
Nested classes/interfaces inherited from interface com.jp.protection.pub.pro.lserver.LicenseData |
---|
LicenseData.Request, LicenseData.Response |
Field Summary | |
---|---|
protected int |
fCheckoutPeriod
|
protected int |
fCPULimit
|
protected java.lang.String |
fLicenseExpireInfo
|
protected java.util.Date |
fLicenseIssueDate
|
protected java.lang.String |
fLicenseNumber
|
protected int |
fLicenseOptions
|
protected int |
fLicenseType
|
protected int |
fLockPeriod
|
protected long |
fMemoryLimit
|
protected int |
fNumberCopies
|
protected java.lang.String |
fProduct
|
protected java.lang.String |
fProductEdition
|
protected int |
fProductMajorVersion
|
protected int |
fProductMinorVersion
|
protected int |
fUsageLimit
|
protected int |
fUserLicensingModel
|
(package private) static dev.beans.presentation.BeanPresentationPrinter |
PRINTER
|
static long |
serialVersionUID
|
static java.lang.String |
ULM_FLOATING
|
static java.lang.String |
ULM_FLOATING_CP
|
static java.lang.String |
ULM_FLOATING_LS
|
static java.lang.String |
ULM_NAMED
|
static java.lang.String |
ULM_NAMED_LS
|
static java.lang.String |
ULM_UNCOUNTED
|
Fields inherited from interface com.jp.protection.pub.pro.lserver.LicenseData |
---|
PROPERTY_CPU_LIMIT, PROPERTY_LICENSE_EXPIRE_INFO, PROPERTY_LICENSE_ISSUE_DATE, PROPERTY_LICENSE_NUMBER, PROPERTY_LICENSE_TYPE, PROPERTY_MEMORY_LIMIT, PROPERTY_NUMBER_COPIES, PROPERTY_PRODUCT, PROPERTY_PRODUCT_EDITION, PROPERTY_PRODUCT_MAJOR_VERSION, PROPERTY_PRODUCT_MINOR_VERSION, PROPERTY_USAGE_LIMIT, PROPERTY_USER_LICENSING_MODEL |
Constructor Summary | |
---|---|
LicenseDataImpl()
Creates a new LicenseDataImpl instance |
|
LicenseDataImpl(LicenseData aLicenseData)
Creates a new LicenseDataImpl instance and copies properties from given license data |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object obj)
|
int |
getCheckoutPeriod()
Returns period in days the license is allowed to work offline after checkout without need to obtain/renew lock from the Licensing Server (applicable for USER_LICENSING_NAMED_LS model only) |
int |
getCPULimit()
Returns CPU/Cores limit |
java.lang.String |
getLicenseExpireInfo()
Returns textual representation of the license expiration information |
java.util.Date |
getLicenseIssueDate()
Returns the license issue date |
java.lang.String |
getLicenseNumber()
Returns the license number |
int |
getLicenseOptions()
Return the license options as a combination of the License.OPTION_ constants |
int |
getLicenseType()
Returns the license type as one of the License.TYPE_ constants |
static int |
getLicenseType(java.lang.String aLicenseType)
Utility method to get license type value based on its textual representation |
static java.lang.String |
getLicenseTypeStr(int aLicenseType)
Utility method to get textual representation of the license type |
int |
getLockPeriod()
Returns period in days the license must retain lock to a particular user (applicable for USER_LICENSING_NAMED_LS model only) |
long |
getMemoryLimit()
Returns memory limit |
int |
getNumberCopies()
Returns the license number of copies value |
java.lang.String |
getProduct()
Returns the product identifier |
java.lang.String |
getProductEdition()
Returns the product's edition identifier |
int |
getProductMajorVersion()
Returns the product's major version |
int |
getProductMinorVersion()
Returns the product's minor version |
int |
getUsageLimit()
Returns usage limit for the license |
int |
getUserLicensingModel()
Returns the user licensing model as one of the License.USER_LICENSING_ constants |
static int |
getUserLicensingModel(java.lang.String aUserLicensingModel)
Utility method to get user licensing model value based on its textual representation |
static java.lang.String |
getUserLicensingModelStr(int aUserLicensingModel)
Utility method to get textual representation of the license user licensing model |
void |
setCheckoutPeriod(int aPeriod)
|
void |
setCPULimit(int aLimit)
|
void |
setLicenseExpireInfo(java.lang.String aLicenseExpireInfo)
Specifies license expiration information |
void |
setLicenseIssueDate(java.util.Date aLicenseIssueDate)
Specifies license issue date |
void |
setLicenseNumber(java.lang.String aLicenseNumber)
Specifies license number |
void |
setLicenseOptions(int aLicenseOptions)
Specifies license options |
void |
setLicenseType(int aLicenseType)
Specifies license type |
void |
setLockPeriod(int aPeriod)
|
void |
setMemoryLimit(long aLimit)
|
void |
setNumberCopies(int aNumberCopies)
Specifies number of copies value |
void |
setProduct(java.lang.String aProduct)
Specifies product identifier |
void |
setProductEdition(java.lang.String aProductEdition)
Specifies product's edition identifier |
void |
setProductMajorVersion(int aProductMajorVersion)
Specifies product's major version |
void |
setProductMinorVersion(int aProductMinorVersion)
Specifies product's minor version |
void |
setUsageLimit(int aUsageLimit)
|
void |
setUserLicensingModel(int aUserLicensingModel)
Specifies user licensing model |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final long serialVersionUID
protected int fLicenseType
protected java.lang.String fLicenseNumber
protected int fNumberCopies
protected java.lang.String fProduct
protected java.lang.String fProductEdition
protected int fProductMajorVersion
protected int fProductMinorVersion
protected int fUserLicensingModel
protected int fLicenseOptions
protected java.util.Date fLicenseIssueDate
protected java.lang.String fLicenseExpireInfo
protected int fCPULimit
protected long fMemoryLimit
protected int fLockPeriod
protected int fCheckoutPeriod
protected int fUsageLimit
public static final java.lang.String ULM_UNCOUNTED
public static final java.lang.String ULM_FLOATING
public static final java.lang.String ULM_FLOATING_LS
public static final java.lang.String ULM_NAMED
public static final java.lang.String ULM_NAMED_LS
public static final java.lang.String ULM_FLOATING_CP
static final dev.beans.presentation.BeanPresentationPrinter PRINTER
Constructor Detail |
---|
public LicenseDataImpl()
LicenseDataImpl
instance
public LicenseDataImpl(LicenseData aLicenseData)
LicenseDataImpl
instance and copies properties from given license data
aLicenseData
- license data to copy properties fromMethod Detail |
---|
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int getCPULimit()
LicenseData
getCPULimit
in interface LicenseData
public void setCPULimit(int aLimit)
public long getMemoryLimit()
LicenseData
getMemoryLimit
in interface LicenseData
public void setMemoryLimit(long aLimit)
public java.lang.String getLicenseNumber()
LicenseData
getLicenseNumber
in interface LicenseData
public java.lang.Object clone()
clone
in interface LicenseData
clone
in class java.lang.Object
public void setLicenseNumber(java.lang.String aLicenseNumber)
aLicenseNumber
- license number to setpublic int getLicenseType()
LicenseData
License.TYPE_
constants
getLicenseType
in interface LicenseData
public void setLicenseType(int aLicenseType)
aLicenseType
- license type to setpublic int getNumberCopies()
LicenseData
getNumberCopies
in interface LicenseData
public void setNumberCopies(int aNumberCopies)
aNumberCopies
- number of copies value to setpublic java.lang.String getProduct()
LicenseData
getProduct
in interface LicenseData
public void setProduct(java.lang.String aProduct)
aProduct
- product identifier to setpublic java.lang.String getProductEdition()
LicenseData
getProductEdition
in interface LicenseData
public void setProductEdition(java.lang.String aProductEdition)
aProductEdition
- product edition identifier to setpublic int getProductMajorVersion()
LicenseData
getProductMajorVersion
in interface LicenseData
public void setProductMajorVersion(int aProductMajorVersion)
aProductMajorVersion
- product major version to setpublic int getProductMinorVersion()
LicenseData
getProductMinorVersion
in interface LicenseData
public void setProductMinorVersion(int aProductMinorVersion)
aProductMinorVersion
- product minor version to setpublic int getUserLicensingModel()
LicenseData
License.USER_LICENSING_
constants
getUserLicensingModel
in interface LicenseData
public void setUserLicensingModel(int aUserLicensingModel)
aUserLicensingModel
- user licensing model to setpublic static java.lang.String getLicenseTypeStr(int aLicenseType)
aLicenseType
- license type value
public static int getLicenseType(java.lang.String aLicenseType)
aLicenseType
- textual representation of license type
public static int getUserLicensingModel(java.lang.String aUserLicensingModel)
aUserLicensingModel
- textual representation of user licensing model as one of ULM_
constants
public static java.lang.String getUserLicensingModelStr(int aUserLicensingModel)
aUserLicensingModel
- user licensing model
public int getLicenseOptions()
LicenseData
License.OPTION_
constants
getLicenseOptions
in interface LicenseData
public void setLicenseOptions(int aLicenseOptions)
aLicenseOptions
- license options to setpublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getLicenseExpireInfo()
LicenseData
getLicenseExpireInfo
in interface LicenseData
public void setLicenseExpireInfo(java.lang.String aLicenseExpireInfo)
aLicenseExpireInfo
- license expiration information to setpublic java.util.Date getLicenseIssueDate()
LicenseData
getLicenseIssueDate
in interface LicenseData
public void setLicenseIssueDate(java.util.Date aLicenseIssueDate)
aLicenseIssueDate
- license issue date to setpublic int getLockPeriod()
LicenseData
USER_LICENSING_NAMED_LS
model only)
getLockPeriod
in interface LicenseData
public void setLockPeriod(int aPeriod)
public int getCheckoutPeriod()
LicenseData
USER_LICENSING_NAMED_LS
model only)
getCheckoutPeriod
in interface LicenseData
public void setCheckoutPeriod(int aPeriod)
public int getUsageLimit()
LicenseData
getUsageLimit
in interface LicenseData
public void setUsageLimit(int aUsageLimit)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |