Package com.vaadin.collaborationengine
Interface LicenseStorage
-
public interface LicenseStorage
The interface to store license usage data.- Author:
- Vaadin Ltd
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addUserEntry(String licenseKey, YearMonth month, String payload)
Adds a user entry for the specified month.Map<String,LocalDate>
getLatestLicenseEvents(String licenseKey)
Gets a map of license event names with the date of their last occurrence.List<String>
getUserEntries(String licenseKey, YearMonth month)
Gets a list of entries for users seen in the specified month.void
setLicenseEvent(String licenseKey, String eventName, LocalDate latestOccurrence)
Sets the date of the latest occurrence of the specified license event.
-
-
-
Method Detail
-
getUserEntries
List<String> getUserEntries(String licenseKey, YearMonth month)
Gets a list of entries for users seen in the specified month.- Parameters:
licenseKey
- the license keymonth
- the month- Returns:
- the list of users
-
addUserEntry
void addUserEntry(String licenseKey, YearMonth month, String payload)
Adds a user entry for the specified month.- Parameters:
licenseKey
- the license keymonth
- the monthpayload
- the user entry
-
getLatestLicenseEvents
Map<String,LocalDate> getLatestLicenseEvents(String licenseKey)
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
-
-