public interface ILicenser
ILexiCom.getLicenser().
Methods provided allow for registration/licensing of installation.
| Modifier and Type | Method and Description |
|---|---|
void |
addLogListener(LexiComLogListener l)
Add a listener for log events
|
void |
cancel()
Cancels a active registration or licensing session
NOTE: Required step if query() method successfully called but next step not taken
|
void |
license(ILicense license)
Acquire/apply permanent license from the Cleo license server
|
ILicense |
licenseFile(java.lang.String path,
boolean apply)
Read the license key file
|
ILicense |
licenseQuery(SystemInfo systemInfo)
Query the Cleo license server for the available permanent license information
NOTE: Required step before license()
|
void |
register(RegistrationInfo registrationInfo)
Register and acquire/apply a temporary license from the Cleo license server
NOTE: Multiple registrations on the same serial number are possible and a temporary license
will continue to be returned with each.
|
RegistrationInfo |
registrationQuery(java.lang.String serialNumber)
Query the Cleo license server for current registration given the serial number
NOTE: Required step before register()
|
void |
removeLogListener(LexiComLogListener l)
Remove a listener for log events
|
void |
unregister()
Unregister either temporary or permanent license from the Cleo license server
NOTE: Only permanent license unregister actually communicates with Cleo license server
|
ILicense licenseFile(java.lang.String path, boolean apply) throws java.lang.Exception
path - path to the license key fileapply - if true, license key file will be applied if validjava.lang.Exception - if the license key file is invalid or does not match the current host ID or serial numberRegistrationInfo registrationQuery(java.lang.String serialNumber) throws java.lang.Exception
NOTE: Required step before register()
serialNumber - the Cleo product serial numberjava.lang.Exception - if the serial number is invalid or if commnunication with Cleo
license server should failvoid register(RegistrationInfo registrationInfo) throws java.lang.Exception
NOTE: Multiple registrations on the same serial number are possible and a temporary license will continue to be returned with each. However, once a permanent license is acquired (licenseQuery() and license), only one installation can be registered and a temporary license can no longer be acquired.
registrationInfo - Potentially updated registration information from registrationQuery()
all but extension and address2 requiredjava.lang.Exception - if required registration info missing or if communication with Cleo
license server should failILicense licenseQuery(SystemInfo systemInfo) throws java.lang.Exception
NOTE: Required step before license()
systemInfo - optional additional system information; can be nulljava.lang.Exception - if not currently registered or if communication with Cleo
license server should failvoid license(ILicense license) throws java.lang.Exception
license - the available license from licenseQuery()java.lang.Exception - if available license does not differ from current license or
if communication with Cleo license server should failvoid cancel()
throws java.lang.Exception
NOTE: Required step if query() method successfully called but next step not taken
java.lang.Exceptionvoid unregister()
throws java.lang.Exception
NOTE: Only permanent license unregister actually communicates with Cleo license server
java.lang.Exception - if not current licensed or if communication
with Cleo license server should failvoid addLogListener(LexiComLogListener l) throws java.lang.Exception
l - a LexiComLogListener that will be notified when log events have occurredjava.lang.Exceptionvoid removeLogListener(LexiComLogListener l) throws java.lang.Exception
l - the LexiComLogListener to removejava.lang.Exception