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

  Constructors
  Constructor
  Description
  `LicenceCheckerUpdateCallbackImpl(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 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.
  `String`
  `getID()`
  Method returns unique identifier of a callback
  `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 Details

  - ### LicenceCheckerUpdateCallbackImpl

    public LicenceCheckerUpdateCallbackImpl(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 Details

  - ### getID

    public String getID()
    Description copied from interface: `LicenceCheckerUpdateCallback`
    Method returns unique identifier of a callback
    Specified by:
      `getID` in interface `LicenceCheckerUpdateCallback`
    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 interface `LicenceCheckerUpdateCallback`
    Returns:
      object with updated StatisticsData

  - ### getMissingLicenseWarning

    public String getMissingLicenseWarning()
    Description copied from interface: `LicenceCheckerUpdateCallback`
    Method responsible for retrieving warning about missing licence.
    Specified by:
      `getMissingLicenseWarning` in interface `LicenceCheckerUpdateCallback`
    Returns:
      a value of `String`

  - ### additionalValidation

    public boolean additionalValidation(Licence lic)
    Description copied from interface: `LicenceCheckerUpdateCallback`
    Additional licence validation.
    Specified by:
      `additionalValidation` in interface `LicenceCheckerUpdateCallback`
    Parameters:
      `lic` - licence
    Returns:
      `true` if addiotional check passed and licence is valid.