Class License
java.lang.Object
com.aquima.interactions.foundation.lic.License
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkApplicationsAllowed
(LicenseContext context) void
void
checkCaseEngineAllowed
(LicenseContext context) void
void
checkExternalFlowAllowed
(LicenseContext context) void
void
checkMatchEngineAllowed
(LicenseContext context) void
checkMultiTenancyAllowed
(LicenseContext context, long numberOfTenants) void
checkProcessEngineAllowed
(LicenseContext context) long
getMaxSessions
(LicenseContext context) This method returns the maximum number of sessions for the given license context.getProperty
(String property, LicenseContext context) This method returns a property value for the given license context.Server[]
This method returns an array containing the defined services from the license.This method returns the version of the license information.boolean
isBounded
(LicenseContext context) This method returns whether the sessions are strictly bounded for the given license context.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.static boolean
matchString
(String withWildCards, String strValue)
-
Constructor Details
-
License
protected License() -
License
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
This method returns an array containing the defined services from the license.- Returns:
- an array containing the defined services from the license.
-
getVersion
This method returns the version of the license information.- Returns:
- the version of the license information.
-
getValidFrom
- Returns:
- the date the license starts to be valid. Never null and never unknown
-
getValidTo
- Returns:
- the date the license ends to be valid. Never null, can be unknown
-
getValidityInfoString
- Returns:
- the valid from and to date in the form 'from 2000-01-01 until 2001-01-01'
-
getMaxSessions
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
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
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
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
-
checkApplicationsAllowed
-
checkDocumentRenderingAllowed
-
checkProcessEngineAllowed
-
checkMatchEngineAllowed
-
checkBusinessAnalyticsAllowed
-
checkExternalSessionStoreAllowed
-
checkCaseEngineAllowed
-
checkExternalFlowAllowed
-
checkMultiTenancyAllowed
-