Package tigase.licence
Class LicenceCheckerUpdateCallbackImpl
java.lang.Object
tigase.licence.LicenceCheckerUpdateCallbackImpl
- All Implemented Interfaces:
LicenceCheckerUpdateCallback
public class LicenceCheckerUpdateCallbackImpl
extends Object
implements LicenceCheckerUpdateCallback
Default implementation of
LicenceCheckerUpdateCallback
- Author:
- Wojciech Kapcia
-
Constructor Summary
ConstructorDescriptionLicenceCheckerUpdateCallbackImpl
(String cmpName) Constructs default implementation of handling updates of statistics data on per-component basis providing most basic statistics data about system. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Additional licence validation.Method responsible for obtaining additional component information to be submitted to the server.getID()
Method returns unique identifier of a callbackMethod responsible for retrieving warning about missing licence.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface tigase.licence.LicenceCheckerUpdateCallback
getServerVerifiableMetrics
-
Constructor Details
-
LicenceCheckerUpdateCallbackImpl
Constructs default implementation of handling updates of statistics data on per-component basis providing most basic statistics data about system.- Parameters:
cmpName
- - name of the component for which UpdateCallback should be constructed
-
-
Method Details
-
getID
Description copied from interface:LicenceCheckerUpdateCallback
Method returns unique identifier of a callback- Specified by:
getID
in interfaceLicenceCheckerUpdateCallback
- Returns:
-
getComponentAdditionalData
Description copied from interface:LicenceCheckerUpdateCallback
Method responsible for obtaining additional component information to be submitted to the server.- Specified by:
getComponentAdditionalData
in interfaceLicenceCheckerUpdateCallback
- Returns:
- object with updated StatisticsData
-
getMissingLicenseWarning
Description copied from interface:LicenceCheckerUpdateCallback
Method responsible for retrieving warning about missing licence.- Specified by:
getMissingLicenseWarning
in interfaceLicenceCheckerUpdateCallback
- Returns:
- a value of
String
-
additionalValidation
Description copied from interface:LicenceCheckerUpdateCallback
Additional licence validation.- Specified by:
additionalValidation
in interfaceLicenceCheckerUpdateCallback
- Parameters:
lic
- licence- Returns:
true
if addiotional check passed and licence is valid.
-