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_MARKETPLACE, LICENCE_TYPE_OFFLINE, LICENCE_TYPE_STANDARD
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncheckLicence
(String key) Check License StatusReturns the last license status checkedboolean
Returns if license is blockedvoid
setServerSettings
(ServerSettings serverSettings) Sets Server Settingsvoid
start()
Starts License operations
-
Constructor Details
-
CommunityLicenceService
public CommunityLicenceService()
-
-
Method Details
-
start
public void start()Description copied from interface:ILicenceService
Starts License operations- Specified by:
start
in interfaceILicenceService
-
checkLicence
Description copied from interface:ILicenceService
Check License Status- Specified by:
checkLicence
in interfaceILicenceService
- Parameters:
key
- of the license- Returns:
- result of the operation and message
-
setServerSettings
Description copied from interface:ILicenceService
Sets Server Settings- Specified by:
setServerSettings
in interfaceILicenceService
-
getLastLicenseStatus
Description copied from interface:ILicenceService
Returns the last license status checked- Specified by:
getLastLicenseStatus
in interfaceILicenceService
- Returns:
-
isLicenceSuspended
public boolean isLicenceSuspended()Description copied from interface:ILicenceService
Returns if license is blocked- Specified by:
isLicenceSuspended
in interfaceILicenceService
- Returns:
- true if license is blocked false if license can be used
-
getLicenseType
- Specified by:
getLicenseType
in interfaceILicenceService
- Returns:
- LICENCE_TYPE_COMMUNITY, LICENCE_TYPE_STANDARD, LICENCE_TYPE_OFFLINE, LICENCE_TYPE_MARKETPLACE
-