org.opencms.xml.containerpage
Class CmsADESessionCache

java.lang.Object
  extended by org.opencms.xml.containerpage.CmsADESessionCache

public final class CmsADESessionCache
extends Object

ADE's session cache.

Since:
8.0.0

Field Summary
static String SESSION_ATTR_ADE_CACHE
          Session attribute name constant.
 
Constructor Summary
CmsADESessionCache(CmsObject cms)
          Initializes the session cache.
 
Method Summary
 CmsContainerElementBean getCacheContainerElement(String key)
          Returns the cached container element under the given key.
 List<CmsContainerElementBean> getRecentList()
          Returns the cached recent list.
 boolean isToolbarVisible()
          Returns the tool-bar visibility.
 void setCacheContainerElement(String key, CmsContainerElementBean containerElement)
          Caches the given container element under the given key.
 void setCacheRecentList(List<CmsContainerElementBean> list)
          Caches the given recent list.
 void setToolbarVisible(boolean toolbarVisible)
          Sets the tool-bar visibility flag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SESSION_ATTR_ADE_CACHE

public static final String SESSION_ATTR_ADE_CACHE
Session attribute name constant.

See Also:
Constant Field Values
Constructor Detail

CmsADESessionCache

public CmsADESessionCache(CmsObject cms)
Initializes the session cache.

Parameters:
cms - the cms context
Method Detail

getCacheContainerElement

public CmsContainerElementBean getCacheContainerElement(String key)
Returns the cached container element under the given key.

Parameters:
key - the cache key
Returns:
the cached container element or null if not found

getRecentList

public List<CmsContainerElementBean> getRecentList()
Returns the cached recent list.

Returns:
the cached recent list

isToolbarVisible

public boolean isToolbarVisible()
Returns the tool-bar visibility.

Returns:
the tool-bar visibility

setCacheContainerElement

public void setCacheContainerElement(String key,
                                     CmsContainerElementBean containerElement)
Caches the given container element under the given key.

Parameters:
key - the cache key
containerElement - the object to cache

setCacheRecentList

public void setCacheRecentList(List<CmsContainerElementBean> list)
Caches the given recent list.

Parameters:
list - the recent list to cache

setToolbarVisible

public void setToolbarVisible(boolean toolbarVisible)
Sets the tool-bar visibility flag.

Parameters:
toolbarVisible - the tool-bar visibility to set