Class StudioLicenseProvider
java.lang.Object
com.aquima.interactions.ds.studio.r17.StudioLicenseProvider
- All Implemented Interfaces:
ILicenseProvider
License provider that retrieves its license from a Studio management service.
- Since:
- 17.1
-
Method Summary
Modifier and TypeMethodDescriptionstatic StudioLicenseProvider
createWithCustomConnection
(ISoapConnection connection) This constructs a StudioLicenseProvider that connects to the Studio management service with a custom soap connection.This method will connect to Studio and return the retrieved license key.boolean
This method will connect to Studio and return true if a license key is available.
-
Method Details
-
createWithCustomConnection
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
This method will connect to Studio and return the retrieved license key.- Specified by:
getLicenseKey
in interfaceILicenseProvider
- 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 interfaceILicenseProvider
- Returns:
- true when there is a license and false otherwise.
-