|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.jsp.util.CmsJspStandardContextBean
public final class CmsJspStandardContextBean
Allows convenient access to the most important OpenCms functions on a JSP page, indented to be used from a JSP with the JSTL or EL.
This bean is available by default in the context of an OpenCms managed JSP.
Field Summary | |
---|---|
static java.lang.String |
ATTRIBUTE_CMS_OBJECT
The attribute name of the cms object. |
static java.lang.String |
ATTRIBUTE_NAME
The attribute name of the standard JSP context bean. |
Method Summary | |
---|---|
CmsJspStandardContextBean |
createCopy()
Returns a copy of this JSP context bean. |
java.lang.String |
elementCachingHash()
Returns a caching hash specific to the element, it's properties and the current container width. |
CmsContainerBean |
getContainer()
Returns the container the currently rendered element is part of. |
CmsResource |
getDetailContent()
Returns the current detail content, or null if no detail content is requested. |
CmsUUID |
getDetailContentId()
Returns the structure id of the current detail content, or null if no detail content is requested. |
java.lang.String |
getDetailContentSitePath()
Returns the detail content site path. |
CmsContainerElementBean |
getElement()
Returns the currently rendered element. |
static CmsJspStandardContextBean |
getInstance(javax.servlet.ServletRequest req)
Creates a new instance of the standard JSP context bean. |
java.util.Locale |
getLocale()
Returns the current locale. |
CmsContainerPageBean |
getPage()
Returns the currently displayed container page. |
CmsRequestContext |
getRequestContext()
Returns the request context. |
CmsJspVfsAccessBean |
getVfs()
Returns an initialized VFS access bean. |
boolean |
isDetailPageAvailable()
Checks whether a detail page is available for the container element. |
boolean |
isDetailRequest()
Returns true if this is a request to a detail resource, false otherwise. |
boolean |
isEdited()
Returns the flag to indicate if in drag and drop mode. |
void |
setContainer(CmsContainerBean container)
Sets the container the currently rendered element is part of. |
void |
setEdited(boolean edited)
Sets the flag to indicate if in drag and drop mode. |
void |
setElement(CmsContainerElementBean element)
Sets the currently rendered element. |
void |
setPage(CmsContainerPageBean page)
Sets the currently displayed container page. |
void |
updateCmsObject(CmsObject cms)
Updates the internally stored OpenCms user context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ATTRIBUTE_CMS_OBJECT
public static final java.lang.String ATTRIBUTE_NAME
Method Detail |
---|
public static CmsJspStandardContextBean getInstance(javax.servlet.ServletRequest req)
To prevent multiple creations of the bean during a request, the OpenCms request context attributes are used to cache the created VFS access utility bean.
req
- the current servlet request
public CmsJspStandardContextBean createCopy()
public java.lang.String elementCachingHash()
public CmsContainerBean getContainer()
public CmsResource getDetailContent()
null
if no detail content is requested.
null
if no detail content is requested.public CmsUUID getDetailContentId()
null
if no detail content is requested.
null
if no detail content is requested.public java.lang.String getDetailContentSitePath()
null
if not available.
public CmsContainerElementBean getElement()
public java.util.Locale getLocale()
public CmsContainerPageBean getPage()
public CmsRequestContext getRequestContext()
public CmsJspVfsAccessBean getVfs()
public boolean isDetailPageAvailable()
public boolean isDetailRequest()
true
if this is a request to a detail resource, false
otherwise.
Same as to check if getDetailContent()
is null
.
true
if this is a request to a detail resource, false
otherwisepublic boolean isEdited()
true
if in drag and drop modepublic void setContainer(CmsContainerBean container)
container
- the container the currently rendered element is part ofpublic void setEdited(boolean edited)
edited
- true
if in drag and drop modepublic void setElement(CmsContainerElementBean element)
element
- the currently rendered element to setpublic void setPage(CmsContainerPageBean page)
page
- the currently displayed container page to setpublic void updateCmsObject(CmsObject cms)
cms
- the new OpenCms user context
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |