|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.ade.containerpage.CmsElementUtil
public class CmsElementUtil
Utility class to generate the element data objects used within the container-page editor.
Constructor Summary | |
---|---|
CmsElementUtil(CmsObject cms,
java.lang.String currentPageUri,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.util.Locale locale)
Creates a new instance. |
|
CmsElementUtil(CmsObject cms,
java.lang.String currentPageUri,
java.lang.String requestParameters,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.util.Locale locale)
Creates a new instance. |
Method Summary | |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
getContentsByContainerName(CmsContainerElementBean element,
java.util.Collection<CmsContainer> containers)
Returns the rendered element content for all the given containers. |
CmsContainerElementData |
getElementData(CmsContainerElementBean element,
java.util.Collection<CmsContainer> containers)
Returns the data for an element. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CmsElementUtil(CmsObject cms, java.lang.String currentPageUri, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, java.util.Locale locale) throws CmsException
cms
- the cms contextcurrentPageUri
- the current page urireq
- the http requestres
- the http responselocale
- the content locale
CmsException
- if something goes wrongpublic CmsElementUtil(CmsObject cms, java.lang.String currentPageUri, java.lang.String requestParameters, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, java.util.Locale locale) throws CmsException
cms
- the cms contextcurrentPageUri
- the current page urirequestParameters
- the request parameters to use while rendering the elementsreq
- the http requestres
- the http responselocale
- the content locale
CmsException
- if something goes wrongMethod Detail |
---|
public java.util.Map<java.lang.String,java.lang.String> getContentsByContainerName(CmsContainerElementBean element, java.util.Collection<CmsContainer> containers)
element
- the element to rendercontainers
- the containers the element appears in
public CmsContainerElementData getElementData(CmsContainerElementBean element, java.util.Collection<CmsContainer> containers) throws CmsException
element
- the resourcecontainers
- the containers on the current container page
CmsException
- if something goes wrong
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |