Package tigase.licence
Class LicenceCheckerUpdateCallbackImpl
- java.lang.Object
-
- tigase.licence.LicenceCheckerUpdateCallbackImpl
-
- All Implemented Interfaces:
LicenceCheckerUpdateCallback
public class LicenceCheckerUpdateCallbackImpl extends java.lang.Object implements LicenceCheckerUpdateCallback
Default implementation ofLicenceCheckerUpdateCallback
- Author:
- Wojciech Kapcia
-
-
Constructor Summary
Constructors Constructor Description LicenceCheckerUpdateCallbackImpl(java.lang.String cmpName)
Constructs default implementation of handling updates of statistics data on per-component basis providing most basic statistics data about system.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
additionalValidation(Licence lic)
Additional licence validation.Element
getComponentAdditionalData()
Method responsible for obtaining additional component information to be submitted to the server.java.lang.String
getID()
Method returns unique identifier of a callbackjava.lang.String
getMissingLicenseWarning()
Method 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 Detail
-
LicenceCheckerUpdateCallbackImpl
public LicenceCheckerUpdateCallbackImpl(java.lang.String cmpName)
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 Detail
-
getID
public java.lang.String getID()
Description copied from interface:LicenceCheckerUpdateCallback
Method returns unique identifier of a callback- Specified by:
getID
in interfaceLicenceCheckerUpdateCallback
- Returns:
-
getComponentAdditionalData
public Element 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
public java.lang.String 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
public boolean additionalValidation(Licence lic)
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.
-
-