java.lang.Object
com.aquima.interactions.foundation.lic.License
All Implemented Interfaces:
Serializable

public final class License extends Object implements Serializable
This class holds the license information for the portal engine. The license information is initialized during startup of the portal engine, and determines which components are accessible.
Since:
5.1
Author:
O. Kerpershoek
See Also:
  • Constructor Details

    • License

      protected License()
    • License

      public License(IXmlNode node)
      Constructs a license object from an XML node.
      Parameters:
      node - The XML node containing the license information.
      Throws:
      LicenseParseException - This exception is thrown when the license does not contain the required information.
  • Method Details

    • getServers

      public Server[] getServers()
      This method returns an array containing the defined services from the license.
      Returns:
      an array containing the defined services from the license.
    • getVersion

      public Version getVersion()
      This method returns the version of the license information.
      Returns:
      the version of the license information.
    • getValidFrom

      public DateValue getValidFrom()
      Returns:
      the date the license starts to be valid. Never null and never unknown
    • getValidTo

      public DateValue getValidTo()
      Returns:
      the date the license ends to be valid. Never null, can be unknown
    • getValidityInfoString

      public String getValidityInfoString()
      Returns:
      the valid from and to date in the form 'from 2000-01-01 until 2001-01-01'
    • getMaxSessions

      public long getMaxSessions(LicenseContext context)
      This method returns the maximum number of sessions for the given license context.
      Parameters:
      context - The current license context.
      Returns:
      The maximum number of session of the given combination of parameters.
      Throws:
      InvalidLicenseException - This exception is thrown when no license information is present for the requested combination.
    • getProperty

      public String getProperty(String property, LicenseContext context)
      This method returns a property value for the given license context. This method is exposed for Aquima Studio.
      Parameters:
      property - The property to retrieve.
      context - The current license context.
      Returns:
      The value of the property, may be null if property not found
      Throws:
      InvalidLicenseException - This exception is thrown when no license information is present for the requested combination.
    • isBounded

      public boolean isBounded(LicenseContext context)
      This method returns whether the sessions are strictly bounded for the given license context.
      Parameters:
      context - The current license context.
      Returns:
      Boolean indicating if the number of sessions is strictly bounded for the given combination of parameters.
      Throws:
      InvalidLicenseException - This exception is thrown when no license information is present for the requested combination.
    • isLicenseValid

      public boolean isLicenseValid(LicenseContext context)
      This method returns a boolean indicating if the license is valid for the specified date, server, component, platform and application mode.
      Parameters:
      context - The current license context.
      Returns:
      a boolean indicating if the license is valid for the specified parameters.
    • matchString

      public static boolean matchString(String withWildCards, String strValue)
    • checkApplicationsAllowed

      public void checkApplicationsAllowed(LicenseContext context)
    • checkDocumentRenderingAllowed

      public void checkDocumentRenderingAllowed(LicenseContext context)
    • checkProcessEngineAllowed

      public void checkProcessEngineAllowed(LicenseContext context)
    • checkMatchEngineAllowed

      public void checkMatchEngineAllowed(LicenseContext context)
    • checkBusinessAnalyticsAllowed

      public void checkBusinessAnalyticsAllowed(LicenseContext context)
    • checkExternalSessionStoreAllowed

      public void checkExternalSessionStoreAllowed(LicenseContext context)
    • checkCaseEngineAllowed

      public void checkCaseEngineAllowed(LicenseContext context)
    • checkExternalFlowAllowed

      public void checkExternalFlowAllowed(LicenseContext context)
    • checkMultiTenancyAllowed

      public void checkMultiTenancyAllowed(LicenseContext context, long numberOfTenants)