public final class CmsADESessionCache
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
SESSION_ATTR_ADE_CACHE
Session attribute name constant.
|
构造器和说明 |
---|
CmsADESessionCache(CmsObject cms)
Initializes the session cache.
|
限定符和类型 | 方法和说明 |
---|---|
static CmsADESessionCache |
getCache(javax.servlet.http.HttpServletRequest request,
CmsObject cms)
Gets the session cache for the current session.
|
CmsContainerElementBean |
getCacheContainerElement(java.lang.String key)
Returns the cached container element under the given key.
|
java.util.List<CmsContainerElementBean> |
getRecentList()
Returns the cached recent list.
|
CmsJspStandardContextBean.TemplateBean |
getTemplateBean(java.lang.String uri,
boolean safe)
Gets the cached template bean for a given container page uri.
|
boolean |
isEditSmallElements()
Returns true if, in this session, a newly opened container page editor window should display edit points for
small elements initially.
|
boolean |
isToolbarVisible()
Returns the tool-bar visibility.
|
void |
setCacheContainerElement(java.lang.String key,
CmsContainerElementBean containerElement)
Caches the given container element under the given key.
|
void |
setCacheRecentList(java.util.List<CmsContainerElementBean> list)
Caches the given recent list.
|
void |
setEditSmallElements(boolean editSmallElements)
Sets the default initial setting for small element editability in this session.
|
void |
setTemplateBean(java.lang.String uri,
CmsJspStandardContextBean.TemplateBean templateBean)
Caches a template bean for a given container page URI.
|
void |
setToolbarVisible(boolean toolbarVisible)
Sets the tool-bar visibility flag.
|
public static final java.lang.String SESSION_ATTR_ADE_CACHE
public CmsADESessionCache(CmsObject cms)
cms
- the cms contextpublic static CmsADESessionCache getCache(javax.servlet.http.HttpServletRequest request, CmsObject cms)
request
- the current requestcms
- the current CMS contextpublic CmsContainerElementBean getCacheContainerElement(java.lang.String key)
key
- the cache keynull
if not foundpublic java.util.List<CmsContainerElementBean> getRecentList()
public CmsJspStandardContextBean.TemplateBean getTemplateBean(java.lang.String uri, boolean safe)
uri
- the container page urisafe
- if true, return a valid template bean even if it hasn't been cached beforepublic boolean isEditSmallElements()
public boolean isToolbarVisible()
public void setCacheContainerElement(java.lang.String key, CmsContainerElementBean containerElement)
key
- the cache keycontainerElement
- the object to cachepublic void setCacheRecentList(java.util.List<CmsContainerElementBean> list)
list
- the recent list to cachepublic void setEditSmallElements(boolean editSmallElements)
editSmallElements
- true if small elements should be initially editablepublic void setTemplateBean(java.lang.String uri, CmsJspStandardContextBean.TemplateBean templateBean)
uri
- the container page uritemplateBean
- the template bean to cachepublic void setToolbarVisible(boolean toolbarVisible)
toolbarVisible
- the tool-bar visibility to set