Interface LicenseManager
- 
 public interface LicenseManager
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddLicenseStateUpdateListener(LicenseStateUpdateListener listener)Register with the LicenseManager to receive updates about any license change, regardless of module.voidaddLicenseStateUpdateListener(java.lang.String moduleId, LicenseStateUpdateListener listener)Register with the LicenseManager to receive updates about a specified modules LicenseState.voidaddPlatformLicenseStateUpdateListener(LicenseStateUpdateListener listener)Register with the LicenseManager to receive updates about the license state of the platformintgetDemoTimeRemaining()Returns the amount of demo time remaining in seconds.LicenseStategetLicenseState(java.lang.String moduleId)Gets the current LicenseState for a specified module.java.util.Optional<LicenseDetails>getModuleLicense(java.lang.String moduleId)Looks up the module license details for a specific module.java.util.Optional<LicenseDetails>getPlatformLicense()LicenseStategetPlatformLicenseState()booleanisActivated()voidremoveLicenseStateUpdateListener(LicenseStateUpdateListener listener)Remove a LicenseStateUpdateListener that is not registered to a specific modulevoidremoveLicenseStateUpdateListener(java.lang.String moduleId, LicenseStateUpdateListener listener)Stop receiving LicenseState updates for a specified module.voidremovePlatformLicenseStateUpdateListener(LicenseStateUpdateListener listener)Remove a LicenseStateUpdateListener that is listening to platform changes
 
- 
- 
- 
Method Detail- 
addLicenseStateUpdateListenervoid addLicenseStateUpdateListener(java.lang.String moduleId, LicenseStateUpdateListener listener)Register with the LicenseManager to receive updates about a specified modules LicenseState.- Parameters:
- moduleId- The id of the module you want to receive LicenseState updates for.
- listener- LicenseStateUpdateListener that will receive the updates.
 
 - 
addLicenseStateUpdateListenervoid addLicenseStateUpdateListener(LicenseStateUpdateListener listener) Register with the LicenseManager to receive updates about any license change, regardless of module.- Parameters:
- listener- LicenseStateUpdateListener that will receive the updates.
 
 - 
addPlatformLicenseStateUpdateListenervoid addPlatformLicenseStateUpdateListener(LicenseStateUpdateListener listener) Register with the LicenseManager to receive updates about the license state of the platform- Parameters:
- listener- LicenseStateUpdateListener that will receive the updates.
 
 - 
removeLicenseStateUpdateListenervoid removeLicenseStateUpdateListener(java.lang.String moduleId, LicenseStateUpdateListener listener)Stop receiving LicenseState updates for a specified module.- Parameters:
- moduleId- The id of the module you want to stop receiving LicenseState updates for.
- listener- LicenseStateUpdateListener that will no longer receive the updates.
 
 - 
removeLicenseStateUpdateListenervoid removeLicenseStateUpdateListener(LicenseStateUpdateListener listener) Remove a LicenseStateUpdateListener that is not registered to a specific module- Parameters:
- listener- LicenseStateUpdateListener that will no longer receive the updates.
 
 - 
removePlatformLicenseStateUpdateListenervoid removePlatformLicenseStateUpdateListener(LicenseStateUpdateListener listener) Remove a LicenseStateUpdateListener that is listening to platform changes- Parameters:
- listener- LicenseStateUpdateListener that will no longer receive the updates.
 
 - 
getModuleLicensejava.util.Optional<LicenseDetails> getModuleLicense(java.lang.String moduleId) Looks up the module license details for a specific module. This method will look through all installed licenses, not just the primary license.
 - 
getPlatformLicensejava.util.Optional<LicenseDetails> getPlatformLicense() 
 - 
isActivatedboolean isActivated() - Returns:
- true if there is a valid platform license installed.
 
 - 
getLicenseStateLicenseState getLicenseState(java.lang.String moduleId) Gets the current LicenseState for a specified module.- Parameters:
- moduleId- The id of the module you want the LicenseState for.
- Returns:
- LicenseState of the specified module.
 
 - 
getPlatformLicenseStateLicenseState getPlatformLicenseState() 
 - 
getDemoTimeRemainingint getDemoTimeRemaining() Returns the amount of demo time remaining in seconds.
 
- 
 
-