Class StudioLicenseProvider

java.lang.Object
com.aquima.interactions.ds.studio.r17.StudioLicenseProvider
All Implemented Interfaces:
ILicenseProvider

public final class StudioLicenseProvider extends Object implements ILicenseProvider
License provider that retrieves its license from a Studio management service.
Since:
17.1
  • Method Details

    • createWithCustomConnection

      public static StudioLicenseProvider createWithCustomConnection(ISoapConnection connection)
      This constructs a StudioLicenseProvider that connects to the Studio management service with a custom soap connection.
      Parameters:
      connection - The soap connection.
      Returns:
      a license provider that retrieves its license from the Studio management service configured in this connection
    • getLicenseKey

      public LicenseKey getLicenseKey()
      This method will connect to Studio and return the retrieved license key.
      Specified by:
      getLicenseKey in interface ILicenseProvider
      Returns:
      The license key, never null
      Throws:
      AppException - When the license content could not be returned.
    • hasLicenseKey

      public boolean hasLicenseKey()

      This method will connect to Studio and return true if a license key is available.

      When there is a problem connecting to Studio this method will return false.

      Specified by:
      hasLicenseKey in interface ILicenseProvider
      Returns:
      true when there is a license and false otherwise.