|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vs.ezlicgen.EzLicenseConfig
The class manages the state of the configuration information
pertaining to a license manager installation. This includes
information such as the license key, key installation date,
registration status, license agreement acceptance status,
quota balance etc.
The class (or a subclass if needed) is persisted by the
License Manager GUI in its ezconfig license
configuration file.
Field Summary | |
static java.lang.String |
EZCONFIG_FILENAME
|
static int |
EZCONFIG_VSNID
|
static java.lang.String |
EZCONFIG_VSNIDSTR
|
Constructor Summary | |
EzLicenseConfig()
|
Method Summary | |
static boolean |
checkFileExists()
checkFileExists: Check whether a valid configuration file exists. |
java.lang.String |
getCompanyName()
getCompanyName: return ISV company name |
boolean |
getECommerce()
getECommerce: return whether ecommerce option |
int |
getEdition()
getEdition: return standard / pro edition code |
boolean |
getEval()
getEval: return whether eval edition |
java.util.Date |
getExpireDate()
getExpireDate: return current license key expiration date |
java.lang.String |
getHostName()
getHostName: return host name |
java.util.Date |
getInstallDate()
getInstallDate: return date of product installation. |
java.lang.String |
getInstallDir()
getInstallDir: return installation directory |
java.util.Date |
getLastUseDate()
getLastUseDate: return the date the api's were last used |
java.util.Date |
getLicenseAcceptDate()
getLicenseAcceptDate: return date of vendor product license agreement acceptance |
java.lang.String |
getLicenseKey()
getLicenseKey: return vendor license key |
int |
getLicenseMode()
getLicenseMode: return vendor license mode |
boolean |
getNoRegReminder()
getNoRegReminder: return registration-reminder indicator |
java.lang.String |
getOptions()
getOptions: return vendor license options |
long |
getQuotaBalance()
getQuotaBalance: return license unit quota balance |
long |
getQuotaLast()
getQuotaLast: return license unit quota last allocated |
long |
getQuotaToDate()
getQuotaToDate: return license unit quota allocated to date |
java.util.Date |
getRegisterDate()
getRegisterDate: return date of product registration |
java.util.Date |
getUpgradeDate()
getUpgradeDate: return last date of license key upgrade |
java.lang.String |
getUserName()
getUserName: return ISV user name |
java.lang.String |
getVendorDomain()
getVendorDomain: return vendor DNS domain name |
EzLicenseVendorLuPolicy |
getVendorLuPolicy()
getVendorLuPolicy: return vendor license unit policy class |
java.lang.String |
getVendorPhone()
getVendorPhone: return vendor support phone |
int |
getVsnId()
getVsnId: return config version id. |
static EzLicenseConfig |
loadConfig()
loadConfig: factory method to load the vendor license configuration from the "ezconfig" file located at the current working directory. |
static void |
removeConfig(java.lang.String vendorPassword)
Private - for internal use only |
void |
saveConfig(java.lang.String vendorPassword)
Private - for internal use only |
void |
setCompanyName(java.lang.String companyName)
setCompanyName: sets ISV company name |
void |
setECommerce(boolean eCommerce)
setECommerce: sets eCommerce-option flag |
void |
setEdition(int edition)
setEdition: sets standard/pro edition code |
void |
setEval(boolean eval)
setEval: sets eval-edition flag |
void |
setExpireDate(java.util.Date expireDate)
setExpireDate: sets current key expiration date |
void |
setHostName(java.lang.String hostName)
setHostName: sets host name |
void |
setInstallDate(java.util.Date installDate)
setInstallDate: sets date of product installation. |
void |
setInstallDir(java.lang.String installDir)
setInstallDir: sets installation directory |
void |
setLastUseDate(java.util.Date lastUseDate)
setLastUseDate: sets date of last use of api's |
void |
setLicenseAcceptDate(java.util.Date licenseAcceptDate)
setLicenseAcceptDate: sets date of vendor product license agreement acceptance |
void |
setLicenseKey(java.lang.String licenseKey)
setLicenseKey: sets vendor license key |
void |
setLicenseMode(int licenseMode)
setLicenseMode: sets getLicenseMode |
void |
setNoRegReminder(boolean noRegReminder)
setNoRegReminder: sets no-registration-reminder indicator |
void |
setOptions(java.lang.String options)
setOptions: sets vendor license options |
void |
setQuotaBalance(long quotaBalance)
setQuotaBalance: sets license unit quota balance |
void |
setQuotaLast(long quotaLast)
setQuotaLast: sets license unit quota last allocated |
void |
setQuotaToDate(long quotaToDate)
setQuotaToDate: sets license unit quota allocated to date |
void |
setRegisterDate(java.util.Date registerDate)
setRegisterDate: sets date of product registration |
void |
setUpgradeDate(java.util.Date upgradeDate)
setUpgradeDate: sets last date of license key upgrade |
void |
setUserName(java.lang.String userName)
setUserName: sets ISV user name |
void |
setVendorDomain(java.lang.String vendorDomain)
setVendorDomain: sets vendor domain DNS name |
void |
setVendorLuPolicy(EzLicenseVendorLuPolicy vendorLuPolicy)
setVendorLuPolicy: set vendor license unit policy class |
void |
setVendorPhone(java.lang.String vendorPhone)
setVendorPhone: sets vendor support phone number |
void |
setVsnId(int vsnId)
setVsnId: sets version id |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int EZCONFIG_VSNID
public static final java.lang.String EZCONFIG_VSNIDSTR
public static final java.lang.String EZCONFIG_FILENAME
Constructor Detail |
public EzLicenseConfig()
Method Detail |
public int getVsnId()
public java.lang.String getLicenseKey()
public java.lang.String getInstallDir()
public java.lang.String getHostName()
public int getLicenseMode()
public java.lang.String getOptions()
public int getEdition()
public boolean getEval()
public boolean getECommerce()
public java.lang.String getUserName()
public java.lang.String getCompanyName()
public java.lang.String getVendorDomain()
public java.lang.String getVendorPhone()
public java.util.Date getInstallDate()
public java.util.Date getUpgradeDate()
public java.util.Date getExpireDate()
public java.util.Date getRegisterDate()
public java.util.Date getLastUseDate()
public boolean getNoRegReminder()
public java.util.Date getLicenseAcceptDate()
public long getQuotaToDate()
public long getQuotaLast()
public long getQuotaBalance()
public EzLicenseVendorLuPolicy getVendorLuPolicy()
public void setLicenseKey(java.lang.String licenseKey)
licenseKey
- vendor license keypublic void setVsnId(int vsnId)
vsnId
- version id to set topublic void setInstallDir(java.lang.String installDir)
installDir
- installation directorypublic void setHostName(java.lang.String hostName)
hostName
- host namepublic void setLicenseMode(int licenseMode)
licenseMode
- license modepublic void setOptions(java.lang.String options)
options
- vendor license optionspublic void setEdition(int edition)
edition
- standard / pro edition codepublic void setEval(boolean eval)
eval
- whether eval editionpublic void setECommerce(boolean eCommerce)
eCommerce
- whether eCommerce option enabledpublic void setUserName(java.lang.String userName)
userName
- ISV user namepublic void setCompanyName(java.lang.String companyName)
companyName
- Company namepublic void setVendorDomain(java.lang.String vendorDomain)
vendorDomain
- vendor domain namepublic void setVendorPhone(java.lang.String vendorPhone)
vendorPhone
- phone number stringpublic void setInstallDate(java.util.Date installDate)
installDate
- product installation datepublic void setUpgradeDate(java.util.Date upgradeDate)
upgradeDate
- date of upgradepublic void setExpireDate(java.util.Date expireDate)
expireDate
- key expiration datepublic void setRegisterDate(java.util.Date registerDate)
registerDate
- product registration datepublic void setLastUseDate(java.util.Date lastUseDate)
lastUseDate
- last-use datepublic void setNoRegReminder(boolean noRegReminder)
noRegReminder
- no-registration-reminder indicatorpublic void setLicenseAcceptDate(java.util.Date licenseAcceptDate)
licenseAcceptDate
- date of vendor product license agreement acceptancepublic void setQuotaToDate(long quotaToDate)
quotaToDate
- allocated quota to datepublic void setQuotaLast(long quotaLast)
quotaLast
- last allocated quotapublic void setQuotaBalance(long quotaBalance)
quotaBalance
- quota balance to set topublic void setVendorLuPolicy(EzLicenseVendorLuPolicy vendorLuPolicy)
vendorLuPolicy
- vendor license unit policypublic static EzLicenseConfig loadConfig() throws com.vs.ezlicrun.EzLicExceptionBase
com.vs.ezlicrun.EzLicExceptionBase
- if the configuration file is not found or is of
an invalid format.public void saveConfig(java.lang.String vendorPassword) throws com.vs.ezlicrun.EzLicExceptionBase
com.vs.ezlicrun.EzLicExceptionBase
public static void removeConfig(java.lang.String vendorPassword) throws com.vs.ezlicrun.EzLicExceptionBase
com.vs.ezlicrun.EzLicExceptionBase
public static boolean checkFileExists() throws com.vs.ezlicrun.EzLicExceptionBase
com.vs.ezlicrun.EzLicExceptionBase
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |