|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.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.ResponceImpl
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 java.lang.String |
fLicenseExpireInfo
|
protected java.util.Date |
fLicenseIssueDate
|
protected java.lang.String |
fLicenseNumber
|
protected int |
fLicenseOptions
|
protected int |
fLicenseType
|
protected int |
fNumberCopies
|
protected java.lang.String |
fProduct
|
protected java.lang.String |
fProductEdition
|
protected int |
fProductMajorVersion
|
protected int |
fProductMinorVersion
|
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_LS
|
static java.lang.String |
ULM_NAMED
|
static java.lang.String |
ULM_NAMED_LS
|
| Fields inherited from interface com.jp.protection.pub.pro.lserver.LicenseData |
|---|
PROPERTY_LICENSE_EXPIRE_INFO, PROPERTY_LICENSE_ISSUE_DATE, PROPERTY_LICENSE_NUMBER, PROPERTY_LICENSE_TYPE, PROPERTY_NUMBER_COPIES, PROPERTY_PRODUCT, PROPERTY_PRODUCT_EDITION, PROPERTY_PRODUCT_MAJOR_VERSION, PROPERTY_PRODUCT_MINOR_VERSION, 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)
|
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 |
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 |
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 |
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 |
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 |
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
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
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 from| Method Detail |
|---|
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String getLicenseNumber()
LicenseData
getLicenseNumber in interface LicenseDatapublic java.lang.Object clone()
clone in interface LicenseDataclone in class java.lang.Objectpublic void setLicenseNumber(java.lang.String aLicenseNumber)
aLicenseNumber - license number to setpublic int getLicenseType()
LicenseDataLicense.TYPE_ constants
getLicenseType in interface LicenseDatapublic void setLicenseType(int aLicenseType)
aLicenseType - license type to setpublic int getNumberCopies()
LicenseData
getNumberCopies in interface LicenseDatapublic void setNumberCopies(int aNumberCopies)
aNumberCopies - number of copies value to setpublic java.lang.String getProduct()
LicenseData
getProduct in interface LicenseDatapublic void setProduct(java.lang.String aProduct)
aProduct - product identifier to setpublic java.lang.String getProductEdition()
LicenseData
getProductEdition in interface LicenseDatapublic void setProductEdition(java.lang.String aProductEdition)
aProductEdition - product edition identifier to setpublic int getProductMajorVersion()
LicenseData
getProductMajorVersion in interface LicenseDatapublic void setProductMajorVersion(int aProductMajorVersion)
aProductMajorVersion - product major version to setpublic int getProductMinorVersion()
LicenseData
getProductMinorVersion in interface LicenseDatapublic void setProductMinorVersion(int aProductMinorVersion)
aProductMinorVersion - product minor version to setpublic int getUserLicensingModel()
LicenseDataLicense.USER_LICENSING_ constants
getUserLicensingModel in interface LicenseDatapublic 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()
LicenseDataLicense.OPTION_ constants
getLicenseOptions in interface LicenseDatapublic void setLicenseOptions(int aLicenseOptions)
aLicenseOptions - license options to setpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getLicenseExpireInfo()
LicenseData
getLicenseExpireInfo in interface LicenseDatapublic void setLicenseExpireInfo(java.lang.String aLicenseExpireInfo)
aLicenseExpireInfo - license expiration information to setpublic java.util.Date getLicenseIssueDate()
LicenseData
getLicenseIssueDate in interface LicenseDatapublic void setLicenseIssueDate(java.util.Date aLicenseIssueDate)
aLicenseIssueDate - license issue date to set
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||