Class GridConfigurationCache

  • All Implemented Interfaces:
    OBProvidable, OBSingleton

    public class GridConfigurationCache
    extends Object
    implements OBSingleton
    Cache that stores the System Grid Configuration and Tab Grid Configuration. It uses a TimeInvalidatedCache to avoid initializing this information too often. To avoid the potential case where we store several times the same configuration (e.g. every tab that has no configuration will use the system one), we cache separately the system and the tab ones and we compose them into a JSONObject with the getGridConfigurationForTab method. If this information changes, some time will passed until the update is reflected on the cache (see expireAfterDuration in cache builder)
    • Constructor Detail

      • GridConfigurationCache

        public GridConfigurationCache()
    • Method Detail

      • getInstance

        public static GridConfigurationCache getInstance()
        Returns:
        the singleton instance of OrganizationNodeCache
      • getGridConfigurationForTab

        public org.codehaus.jettison.json.JSONObject getGridConfigurationForTab​(String tabId)
        Get the cached system and Tab configuration and compose them into a single JSON Object
      • clearSystemGridConfiguration

        public void clearSystemGridConfiguration()
        Invalidates the cache for system Grid Configuration because the config has changed
      • clearTabGridConfiguration

        public void clearTabGridConfiguration​(String tabId)
        Invalidates the cache for Tab Grid Configuration because the config has changed for this Tab