Interface LicenseService


public interface LicenseService
Service for accessing license features and modules. May be requested via SpecialistsBroker:

final LicenseService licenseService = SpecialistsBroker.requireSpecialist(SpecialistType).getService(LicenseService.class);

Since:
4.2.200
See Also:
  • Method Details

    • isModuleLicensed

      boolean isModuleLicensed(String moduleName)
      Returns true if a module is licensed, false otherwise.
      Parameters:
      moduleName - The name of the module
      Returns:
      True if this module is licensed
      Since:
      4.2.200
    • isFeatureLicensed

      boolean isFeatureLicensed(String featureCode)
      Returns true if a feature code is licensed, false otherwise.
      Parameters:
      featureCode - The feature code
      Returns:
      True is this feature code is licensed
      Since:
      4.2.200
    • getLicenseExpirationDate

      @NotNull Optional<LocalDate> getLicenseExpirationDate()
      Returns expiration date of license. May be empty if no license-file exists (server will be shut down within 1 hour).
      Returns:
      the date of expiration, or empty if no license-file exists.
      Since:
      5.2.180703
    • getCaasSlots

      int getCaasSlots()
      Returns maximum available number of CaaS slots. Returns 0 for unlimited slots and -1 if CaaS is not licensed.
      Returns:
      positive number of CaaS slots, 0 for unlimited slots and -1 if CaaS is not licensed.
      Since:
      5.2.180703