Package io.antmedia.licence
Class CommunityLicenceService
java.lang.Object
io.antmedia.licence.CommunityLicenceService
- All Implemented Interfaces:
ILicenceService
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.antmedia.licence.ILicenceService
ILicenceService.BeanName -
Field Summary
Fields inherited from interface io.antmedia.licence.ILicenceService
LICENCE_TYPE_COMMUNITY, LICENCE_TYPE_LOCAL_SERVER, LICENCE_TYPE_MARKETPLACE, LICENCE_TYPE_OFFLINE, LICENCE_TYPE_STANDARD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckLicence(String key) Check License StatusReturns the last license status checkedbooleanReturns if license is blockedvoidsetServerSettings(ServerSettings serverSettings) Sets Server Settingsvoidstart()Starts License operations
-
Constructor Details
-
CommunityLicenceService
public CommunityLicenceService()
-
-
Method Details
-
start
public void start()Description copied from interface:ILicenceServiceStarts License operations- Specified by:
startin interfaceILicenceService
-
checkLicence
Description copied from interface:ILicenceServiceCheck License Status- Specified by:
checkLicencein interfaceILicenceService- Parameters:
key- of the license- Returns:
- result of the operation and message
-
setServerSettings
Description copied from interface:ILicenceServiceSets Server Settings- Specified by:
setServerSettingsin interfaceILicenceService
-
getLastLicenseStatus
Description copied from interface:ILicenceServiceReturns the last license status checked- Specified by:
getLastLicenseStatusin interfaceILicenceService- Returns:
-
isLicenceSuspended
public boolean isLicenceSuspended()Description copied from interface:ILicenceServiceReturns if license is blocked- Specified by:
isLicenceSuspendedin interfaceILicenceService- Returns:
- true if license is blocked false if license can be used
-
getLicenseType
- Specified by:
getLicenseTypein interfaceILicenceService- Returns:
- LICENCE_TYPE_COMMUNITY, LICENCE_TYPE_STANDARD, LICENCE_TYPE_OFFLINE, LICENCE_TYPE_MARKETPLACE
-