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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears cache.voiddeleteSettings(String name) Deletes setting from cache and store.getCache()getSetting(String name) voidsetSetting(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:
getSettingin 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:UiSettingsCacheSets a setting to the cache and store.- Specified by:
setSettingin interfaceUiSettingsCache- Parameters:
name- setting namevalue- setting value
-
deleteSettings
Description copied from interface:UiSettingsCacheDeletes setting from cache and store.- Specified by:
deleteSettingsin interfaceUiSettingsCache- Parameters:
name- setting name
-
clear
public void clear()Description copied from interface:UiSettingsCacheClears cache.- Specified by:
clearin interfaceUiSettingsCache
-
getCache
-