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 booleanadditionalValidation(Licence lic)Additional licence validation.ElementgetComponentAdditionalData()Method responsible for obtaining additional component information to be submitted to the server.java.lang.StringgetID()Method returns unique identifier of a callbackjava.lang.StringgetMissingLicenseWarning()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:LicenceCheckerUpdateCallbackMethod returns unique identifier of a callback- Specified by:
getIDin interfaceLicenceCheckerUpdateCallback- Returns:
-
getComponentAdditionalData
public Element getComponentAdditionalData()
Description copied from interface:LicenceCheckerUpdateCallbackMethod responsible for obtaining additional component information to be submitted to the server.- Specified by:
getComponentAdditionalDatain interfaceLicenceCheckerUpdateCallback- Returns:
- object with updated StatisticsData
-
getMissingLicenseWarning
public java.lang.String getMissingLicenseWarning()
Description copied from interface:LicenceCheckerUpdateCallbackMethod responsible for retrieving warning about missing licence.- Specified by:
getMissingLicenseWarningin interfaceLicenceCheckerUpdateCallback- Returns:
- a value of
String
-
additionalValidation
public boolean additionalValidation(Licence lic)
Description copied from interface:LicenceCheckerUpdateCallbackAdditional licence validation.- Specified by:
additionalValidationin interfaceLicenceCheckerUpdateCallback- Parameters:
lic- licence- Returns:
trueif addiotional check passed and licence is valid.
-
-