|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jp.protection.pub.LicenseBaseImpl
public class LicenseBaseImpl
This class provides default implementation of the LicenseBase interface.
| Field Summary | |
|---|---|
protected int |
fGracePeriod
|
protected java.util.Date |
fLicenseExpireDate
|
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
|
static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
LicenseBaseImpl()
|
|
| Method Summary | |
|---|---|
int |
getGracePeriod()
Returns number of days the license is still valid after reaching expiration date. |
java.util.Date |
getLicenseExpireDate()
Returns license expiration date. |
java.util.Date |
getLicenseIssueDate()
Returns license issue date. |
java.lang.String |
getLicenseNumber()
Returns number of the license. |
int |
getLicenseOptions()
Returns the license options. |
int |
getLicenseType()
Returns type of the license. |
int |
getNumberCopies()
Returns number of application copies allowed to concurrently run with this license. |
java.lang.String |
getProduct()
Returns identifier of the product the license is issued for. |
java.lang.String |
getProductEdition()
Returns identifier of the product editions the license is issued for. |
int |
getProductMajorVersion()
Returns major version of the product. |
int |
getProductMinorVersion()
Returns minor version of the product. |
int |
getUserLicensingModel()
Returns user licensing model. |
void |
setGracePeriod(int aGracePeriod)
Specifies date expiration grace period |
void |
setLicenseExpireDate(java.util.Date aLicenseExpireDate)
Specifies expire date |
void |
setLicenseIssueDate(java.util.Date aLicenseIssueDate)
Specifies issue date |
void |
setLicenseNumber(java.lang.String aLicenseNumber)
Specifies license number |
void |
setLicenseOptions(int aLicenseOptions)
Specifies license options as a combination of OPTION_ constants |
void |
setLicenseType(int aLicenseType)
Specifies license type as one of TYPE_ constants |
void |
setNumberCopies(int aNumberCopies)
Specifies number of copies |
void |
setProduct(java.lang.String aProduct)
Specifies product identifier |
void |
setProductEdition(java.lang.String aProductEdition)
Specifies product edition identifier |
void |
setProductMajorVersion(int aProductMajorVersion)
Specifies product major version |
void |
setProductMinorVersion(int aProductMinorVersion)
Specifies product minor version |
void |
setUserLicensingModel(int aUserLicensingModel)
Specifies user licensing model as one USER_LICENSING_ of constants. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final long serialVersionUID
protected java.lang.String fLicenseNumber
protected int fLicenseType
protected int fLicenseOptions
protected java.util.Date fLicenseIssueDate
protected java.util.Date fLicenseExpireDate
protected java.lang.String fProduct
protected java.lang.String fProductEdition
protected int fProductMajorVersion
protected int fProductMinorVersion
protected int fNumberCopies
protected int fGracePeriod
protected int fUserLicensingModel
| Constructor Detail |
|---|
public LicenseBaseImpl()
| Method Detail |
|---|
public int getGracePeriod()
LicenseBase
getGracePeriod in interface LicenseBaseNO_GRACE_PERIOD if there is
no grace period specified.public void setGracePeriod(int aGracePeriod)
aGracePeriod - grace period value in dayspublic java.util.Date getLicenseExpireDate()
LicenseBase
getLicenseExpireDate in interface LicenseBasenull if unspecified.public void setLicenseExpireDate(java.util.Date aLicenseExpireDate)
aLicenseExpireDate - expire datepublic java.util.Date getLicenseIssueDate()
LicenseBase
getLicenseIssueDate in interface LicenseBasenull if unspecified.public void setLicenseIssueDate(java.util.Date aLicenseIssueDate)
aLicenseIssueDate - issue datepublic java.lang.String getLicenseNumber()
LicenseBase
getLicenseNumber in interface LicenseBasepublic void setLicenseNumber(java.lang.String aLicenseNumber)
aLicenseNumber - license numberpublic int getLicenseOptions()
LicenseBaseOPTION_ constants.
getLicenseOptions in interface LicenseBasepublic void setLicenseOptions(int aLicenseOptions)
OPTION_ constants
aLicenseOptions - license optionspublic int getLicenseType()
LicenseBase
getLicenseType in interface LicenseBaseTYPE_ constants.public void setLicenseType(int aLicenseType)
TYPE_ constants
aLicenseType - license typepublic int getNumberCopies()
LicenseBase
getNumberCopies in interface LicenseBaseDONT_CHECK if any (unlimited).public void setNumberCopies(int aNumberCopies)
aNumberCopies - number of copies valuepublic java.lang.String getProduct()
LicenseBase
getProduct in interface LicenseBasepublic void setProduct(java.lang.String aProduct)
aProduct - product identifierpublic java.lang.String getProductEdition()
LicenseBase
getProductEdition in interface LicenseBasepublic void setProductEdition(java.lang.String aProductEdition)
aProductEdition - product edition identifierpublic int getProductMajorVersion()
LicenseBase
getProductMajorVersion in interface LicenseBasepublic void setProductMajorVersion(int aProductMajorVersion)
aProductMajorVersion - product major versionpublic int getProductMinorVersion()
LicenseBase
getProductMinorVersion in interface LicenseBasepublic void setProductMinorVersion(int aProductMinorVersion)
aProductMinorVersion - product minor versionpublic int getUserLicensingModel()
LicenseBase
getUserLicensingModel in interface LicenseBaseUSER_LICENSING_ constants.public void setUserLicensingModel(int aUserLicensingModel)
USER_LICENSING_ of constants.
aUserLicensingModel - user licensing model value
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||