public interface LicenseService
Modifier and Type | Interface and Description |
---|---|
static interface |
LicenseService.LicenseChangeHandler
Inteface for components wishing to know when the license has changed
|
Modifier and Type | Field and Description |
---|---|
static String |
INPUTSTREAM_FAIL |
static String |
INPUTSTREAM_RELOAD_FAIL |
static String |
INPUTSTREAM_SUCCESS |
Modifier and Type | Method and Description |
---|---|
LicenseDescriptor |
getLicense()
Get description of installed license.
|
boolean |
isLicenseValid()
Was the license known to be valid the last time it was checked?.
|
String |
loadLicense()
Force license reload
|
String |
loadLicense(InputStream licenseStream)
Load license from the input stream
|
void |
registerOnLicenseChange(LicenseService.LicenseChangeHandler callback)
Register a callback that gets called when a license changes.
|
void |
shutdown()
Informs the service it is being shutdown.
|
void |
verifyLicense()
Begin the license verification loop.
|
static final String INPUTSTREAM_SUCCESS
static final String INPUTSTREAM_FAIL
static final String INPUTSTREAM_RELOAD_FAIL
String loadLicense()
String loadLicense(InputStream licenseStream)
licenseStream
- The input stream@NotAuditable void verifyLicense() throws LicenseException
LicenseException
- if an invalid .lic file has been suppliedboolean isLicenseValid()
@NotAuditable LicenseDescriptor getLicense()
void registerOnLicenseChange(LicenseService.LicenseChangeHandler callback)
@NotAuditable void shutdown()
Copyright © 2005–2017 Alfresco Software. All rights reserved.