Package io.jmix.uidata
Class UiSettingsCacheImpl
java.lang.Object
io.jmix.uidata.UiSettingsCacheImpl
- All Implemented Interfaces:
UiSettingsCache
User settings provider. Caches settings in HTTP session.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clears cache.void
deleteSettings
(String name) Deletes setting from cache and store.getCache()
getSetting
(String name) void
setSetting
(String name, String value) Sets a setting to the cache and store.
-
Field Details
-
ATTR_NAME
- See Also:
-
userSettingService
-
-
Constructor Details
-
UiSettingsCacheImpl
public UiSettingsCacheImpl()
-
-
Method Details
-
getSetting
- Specified by:
getSetting
in interfaceUiSettingsCache
- Parameters:
name
- setting name- Returns:
- setting from cache or if cache does not contain setting, loads it from store
-
setSetting
Description copied from interface:UiSettingsCache
Sets a setting to the cache and store.- Specified by:
setSetting
in interfaceUiSettingsCache
- Parameters:
name
- setting namevalue
- setting value
-
deleteSettings
Description copied from interface:UiSettingsCache
Deletes setting from cache and store.- Specified by:
deleteSettings
in interfaceUiSettingsCache
- Parameters:
name
- setting name
-
clear
public void clear()Description copied from interface:UiSettingsCache
Clears cache.- Specified by:
clear
in interfaceUiSettingsCache
-
getCache
-