Interface LicenseService


  • public interface LicenseService
    Contract for managing licenses.
    Author:
    davidc
    • Method Detail

      • loadLicense

        java.lang.String loadLicense()
        Force license reload
      • loadLicense

        java.lang.String loadLicense​(java.io.InputStream licenseStream)
        Load license from the input stream
        Parameters:
        licenseStream - The input stream
        Returns:
        confirmation if the license loaded successfully.
      • 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)
      • shutdown

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