Class TabsSettingsService
java.lang.Object
sk.iway.iwcm.system.datatable.settings.tabs.rest.TabsSettingsService
Caches tab overrides by entity class and domain for one hour.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclearCache(String cacheKey) Removes settings locally and requests invalidation on other cluster nodes.getCacheKey(String className, int domainId) Builds a fixed-length cache key scoped by entity class and domain.getTabsSettings(String className, int domainId) Loads tab settings, including empty results, from the cache or repository.
-
Constructor Details
-
TabsSettingsService
-
-
Method Details
-
getTabsSettings
Loads tab settings, including empty results, from the cache or repository.- Parameters:
className- fully qualified entity class namedomainId- domain owning the settings- Returns:
- settings cached for one hour
-
getCacheKey
Builds a fixed-length cache key scoped by entity class and domain.- Parameters:
className- fully qualified entity class namedomainId- domain owning the settings- Returns:
- the settings prefix followed by the SHA-256 hash of the class/domain pair
-
clearCache
Removes settings locally and requests invalidation on other cluster nodes.- Parameters:
cacheKey- key returned bygetCacheKey(String, int)
-