Interface LicenseStorage


@Deprecated(since="6.3", forRemoval=true) public interface LicenseStorage
Deprecated, for removal: This API element is subject to removal in a future version.
license storage is not needed since 6.3
The interface to store license usage data.
Author:
Vaadin Ltd
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addUserEntry(String licenseKey, YearMonth month, String payload)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Adds a user entry for the specified month.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets a map of license event names with the date of their last occurrence.
    getUserEntries(String licenseKey, YearMonth month)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets a list of entries for users seen in the specified month.
    void
    setLicenseEvent(String licenseKey, String eventName, LocalDate latestOccurrence)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Sets the date of the latest occurrence of the specified license event.
  • Method Details

    • getUserEntries

      List<String> getUserEntries(String licenseKey, YearMonth month)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets a list of entries for users seen in the specified month.
      Parameters:
      licenseKey - the license key
      month - the month
      Returns:
      the list of users
    • addUserEntry

      void addUserEntry(String licenseKey, YearMonth month, String payload)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Adds a user entry for the specified month.
      Parameters:
      licenseKey - the license key
      month - the month
      payload - the user entry
    • getLatestLicenseEvents

      Map<String,LocalDate> getLatestLicenseEvents(String licenseKey)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets a map of license event names with the date of their last occurrence.
      Parameters:
      licenseKey - the license key
      Returns:
      the mapping of events and their last occurrence
    • setLicenseEvent

      void setLicenseEvent(String licenseKey, String eventName, LocalDate latestOccurrence)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the date of the latest occurrence of the specified license event.
      Parameters:
      licenseKey - the license key
      eventName - the event name
      latestOccurrence - the date of the latest occurrence