org.alfresco.service.license
Interface LicenseService


public interface LicenseService

Contract for managing licenses.


Nested Class Summary
static interface LicenseService.LicenseChangeHandler
          Inteface for components wishing to know when the license has changed
 
Method Summary
 LicenseDescriptor getLicense()
          Get description of installed license.
 boolean isLicenseValid()
          Was the license known to be valid the last time it was checked?.
 java.lang.String loadLicense()
          Force license reload
 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.
 

Method Detail

loadLicense

java.lang.String loadLicense()
Force license reload


verifyLicense

@NotAuditable
void verifyLicense()
                   throws LicenseException
Begin the license verification loop. Throws an exception if a new .lic file has been supplied that is invalid. Will quietly make the repository read only if there is no license and the repository isn't eligible for the free trial period or the license has expired.

Throws:
LicenseException - if an invalid .lic file has been supplied

isLicenseValid

boolean isLicenseValid()
Was the license known to be valid the last time it was checked?.

Returns:
true if there is a valid license

getLicense

@NotAuditable
LicenseDescriptor getLicense()
Get description of installed license.

Returns:
license descriptor (or null, if no valid license is installed)

registerOnLicenseChange

void registerOnLicenseChange(LicenseService.LicenseChangeHandler callback)
Register a callback that gets called when a license changes.


shutdown

@NotAuditable
void shutdown()
Informs the service it is being shutdown.



Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.