Class CmsADECache

java.lang.Object
org.opencms.cache.CmsVfsCache
org.opencms.xml.containerpage.CmsADECache
All Implemented Interfaces:
I_CmsEventListener

public final class CmsADECache extends CmsVfsCache
Cache object instance for simultaneously cache online and offline items.

Since:
7.6
  • Constructor Details

  • Method Details

    • flushContainerPages

      public void flushContainerPages(boolean online)
      Flushes the container pages cache.

      Parameters:
      online - if to flush the online or offline cache
    • flushGroupContainers

      public void flushGroupContainers(boolean online)
      Flushes the group containers cache.

      Parameters:
      online - if to flush the online or offline cache
    • getCacheContainerPage

      public CmsXmlContainerPage getCacheContainerPage(String key, boolean online)
      Returns the cached container page under the given key and for the given project.

      Parameters:
      key - the cache key
      online - if cached in online or offline project
      Returns:
      the cached container page or null if not found
    • getCacheGroupContainer

      public CmsXmlGroupContainer getCacheGroupContainer(String key, boolean online)
      Returns the cached group container under the given key and for the given project.

      Parameters:
      key - the cache key
      online - if cached in online or offline project
      Returns:
      the cached group container or null if not found
    • getCacheKey

      public String getCacheKey(CmsUUID structureId, boolean keepEncoding)
      Returns the cache key for the given parameters.

      Parameters:
      structureId - the container page's structure id
      keepEncoding - if to keep the encoding while unmarshalling
      Returns:
      the cache key for the given container page and parameters
    • setCacheContainerPage

      public void setCacheContainerPage(String key, CmsXmlContainerPage containerPage, boolean online)
      Caches the given container page under the given key and for the given project.

      Parameters:
      key - the cache key
      containerPage - the object to cache
      online - if to cache in online or offline project
    • setCacheGroupContainer

      public void setCacheGroupContainer(String key, CmsXmlGroupContainer groupContainer, boolean online)
      Caches the given group container under the given key and for the given project.

      Parameters:
      key - the cache key
      groupContainer - the object to cache
      online - if to cache in online or offline project
    • uncacheContainerPage

      public void uncacheContainerPage(CmsUUID structureId, boolean online)
      Removes the container page identified by its structure id from the cache.

      Parameters:
      structureId - the container page's structure id
      online - if online or offline
    • uncacheGroupContainer

      public void uncacheGroupContainer(CmsUUID structureId, boolean online)
      Removes the group container identified by its structure id from the cache.

      Parameters:
      structureId - the group container's structure id
      online - if online or offline
    • flush

      protected void flush(boolean online)
      Description copied from class: CmsVfsCache
      Flushes the caches.

      Specified by:
      flush in class CmsVfsCache
      Parameters:
      online - if to flush the online or offline caches
      See Also:
    • uncacheResource

      protected void uncacheResource(CmsResource resource)
      Description copied from class: CmsVfsCache
      Removes a cached resource from the cache.

      Specified by:
      uncacheResource in class CmsVfsCache
      Parameters:
      resource - the resource
      See Also: