Package tigase.licence

# Interface LicenceCheckerUpdateCallback

All Known Implementing Classes:
  `LicenceCheckerUpdateCallbackImpl`

public interface LicenceCheckerUpdateCallback
Interface for handling updates of statistics data on per-component basis.

Author:
  Wojciech Kapcia

- ## 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.
  `default String`
  `getID()`
  Method returns unique identifier of a callback
  `String`
  `getMissingLicenseWarning()`
  Method responsible for retrieving warning about missing licence.
  `default Optional<Map<String,String>>`
  `getServerVerifiableMetrics()`

- ## Method Details

  - ### getID

    default String getID()
    Method returns unique identifier of a callback
    Returns:

  - ### getComponentAdditionalData

    Element getComponentAdditionalData()
    Method responsible for obtaining additional component information to be submitted to the server.
    Returns:
      object with updated StatisticsData

  - ### getServerVerifiableMetrics

    default Optional<Map<String,String>> getServerVerifiableMetrics()

  - ### getMissingLicenseWarning

    String getMissingLicenseWarning()
    Method responsible for retrieving warning about missing licence.
    Returns:
      a value of `String`

  - ### additionalValidation

    boolean additionalValidation(Licence lic)
    Additional licence validation.
    Parameters:
      `lic` - licence
    Returns:
      `true` if addiotional check passed and licence is valid.