Class CmsADECache

    • Method Detail

      • 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​(java.lang.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​(java.lang.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 java.lang.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​(java.lang.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​(java.lang.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