Class TabsSettingsService

java.lang.Object
sk.iway.iwcm.system.datatable.settings.tabs.rest.TabsSettingsService

@Service public class TabsSettingsService extends Object
Caches tab overrides by entity class and domain for one hour.
  • Constructor Details

  • Method Details

    • getTabsSettings

      public TabsSettingsEntity[] getTabsSettings(String className, int domainId)
      Loads tab settings, including empty results, from the cache or repository.
      Parameters:
      className - fully qualified entity class name
      domainId - domain owning the settings
      Returns:
      settings cached for one hour
    • getCacheKey

      public String getCacheKey(String className, int domainId)
      Builds a fixed-length cache key scoped by entity class and domain.
      Parameters:
      className - fully qualified entity class name
      domainId - domain owning the settings
      Returns:
      the settings prefix followed by the SHA-256 hash of the class/domain pair
    • clearCache

      public void clearCache(String cacheKey)
      Removes settings locally and requests invalidation on other cluster nodes.
      Parameters:
      cacheKey - key returned by getCacheKey(String, int)