Class InMemoryColumnPreferenceStorage
java.lang.Object
org.vaadin.addons.antlerflow.grid.columns.storage.ServerSideColumnPreferenceStorage
org.vaadin.addons.antlerflow.grid.columns.storage.InMemoryColumnPreferenceStorage
- All Implemented Interfaces:
Serializable, ColumnPreferenceStorage
Keeps preferences per user in server memory. They survive page reloads and new tabs but not a
server restart, and are not shared between cluster nodes: use it for prototypes and tests.
Share one instance (for example a singleton bean) across all grids and sessions.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInMemoryColumnPreferenceStorage(com.vaadin.flow.function.SerializableSupplier<String> userIdSupplier) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidDeletes the preference; a missing preference is not an error.Reads the stored preference; empty when none is stored.protected voidInserts or replaces the preference.Methods inherited from class ServerSideColumnPreferenceStorage
clear, load, requestPrincipalName, save
-
Constructor Details
-
InMemoryColumnPreferenceStorage
public InMemoryColumnPreferenceStorage(com.vaadin.flow.function.SerializableSupplier<String> userIdSupplier)
-
-
Method Details
-
read
Description copied from class:ServerSideColumnPreferenceStorageReads the stored preference; empty when none is stored.- Specified by:
readin classServerSideColumnPreferenceStorage
-
write
Description copied from class:ServerSideColumnPreferenceStorageInserts or replaces the preference.- Specified by:
writein classServerSideColumnPreferenceStorage
-
delete
Description copied from class:ServerSideColumnPreferenceStorageDeletes the preference; a missing preference is not an error.- Specified by:
deletein classServerSideColumnPreferenceStorage
-