Class CmsContainerConfigurationCacheState

java.lang.Object
org.opencms.ade.containerpage.inherited.CmsContainerConfigurationCacheState

A cache class for storing inherited container configurations.

  • Field Details

  • Constructor Details

  • Method Details

    • getContainerConfiguration

      Gets the container configuration for a given root path, name and locale.

      Parameters:
      rootPath - the root path
      name - the configuration name
      Returns:
      the container configuration for the given combination of parameters
    • updateWithChangedGroups

      Creates a new inheritance container cache state, which is based on this instance, but with some changed configurations.

      Parameters:
      updateGroups - a map of the updated configurations, with the structure ids as keys
      Returns:
      the new cache state
    • getBasePath

      protected String getBasePath(String rootPath)
      Returns the base path for a given configuration file. E.g. the result for the input '/sites/default/.container-config' will be '/sites/default'.

      Parameters:
      rootPath - the root path of the configuration file
      Returns:
      the base path for the configuration file
    • getCacheKey

      protected String getCacheKey(String basePath)
      Gets the cache key for a given base path.

      Parameters:
      basePath - the base path
      Returns:
      the cache key for the base path