|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.jsp.util.CmsJspContentLoadBean
public class CmsJspContentLoadBean
Allows JSP access to the results of a <cms:contentload ... > operation using the JSTL and EL.
CmsJspTagContentLoad
,
CmsJspContentAccessBean
Field Summary | |
---|---|
protected CmsObject |
m_cms
The OpenCms context of the current user. |
protected java.util.List |
m_content
The List of results form the content loader. |
protected java.util.Locale |
m_locale
The selected locale for accessing entries from the XML content. |
Constructor Summary | |
---|---|
CmsJspContentLoadBean()
No argument constructor, required for a JavaBean. |
|
CmsJspContentLoadBean(CmsObject cms,
java.util.List content)
Creates a new context bean using the OpenCms context of the current user. |
|
CmsJspContentLoadBean(CmsObject cms,
java.util.Locale locale,
java.util.List content)
Creates a new context bean using the OpenCms context of the current user with the given locale. |
Method Summary | |
---|---|
static java.util.List |
convertResourceList(CmsObject cms,
java.util.List resources)
Converts a list of CmsResource objects to a list of CmsJspContentAccessBean objects,
using the current request context locale. |
static java.util.List |
convertResourceList(CmsObject cms,
java.util.Locale locale,
java.util.List resources)
Converts a list of CmsResource objects to a list of CmsJspContentAccessBean objects,
using the given locale. |
CmsObject |
getCmsObject()
Returns the OpenCms user context this bean was initialized with. |
java.util.List |
getContent()
Returns a List of CmsJspContentAccessBean instances, which have been wrapped around
the original CmsResource instances of the collector result. |
java.util.Locale |
getLocale()
Returns the Locale this bean was initialized with. |
void |
init(CmsObject cms,
java.util.Locale locale,
java.util.List content)
Initialize this instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected CmsObject m_cms
protected java.util.List m_content
protected java.util.Locale m_locale
Constructor Detail |
---|
public CmsJspContentLoadBean()
You must call init(CmsObject, Locale, List)
and provide the
required values when you use this constructor.
init(CmsObject, Locale, List)
public CmsJspContentLoadBean(CmsObject cms, java.util.List content)
The current request context locale is used.
cms
- the OpenCms context of the current usercontent
- the content to access, must contain Object of type CmsResource
public CmsJspContentLoadBean(CmsObject cms, java.util.Locale locale, java.util.List content)
cms
- the OpenCms context of the current userlocale
- the Locale to use when accessing the contentcontent
- the content to access, must contain Object of type CmsResource
Method Detail |
---|
public static java.util.List convertResourceList(CmsObject cms, java.util.List resources)
CmsResource
objects to a list of CmsJspContentAccessBean
objects,
using the current request context locale.
cms
- the current OpenCms user contextresources
- a list of of CmsResource
objects that should be converted
CmsJspContentAccessBean
objects created from the given CmsResource
objectspublic static java.util.List convertResourceList(CmsObject cms, java.util.Locale locale, java.util.List resources)
CmsResource
objects to a list of CmsJspContentAccessBean
objects,
using the given locale.
cms
- the current OpenCms user contextlocale
- the default locale to use when accessing the contentresources
- a list of of CmsResource
objects that should be converted
CmsJspContentAccessBean
objects created from the given CmsResource
objectspublic CmsObject getCmsObject()
public java.util.List getContent()
CmsJspContentAccessBean
instances, which have been wrapped around
the original CmsResource
instances of the collector result.
CmsJspContentAccessBean
instances, which have been wrapped around
the original CmsResource
instances of the collector result.public java.util.Locale getLocale()
public void init(CmsObject cms, java.util.Locale locale, java.util.List content)
cms
- the OpenCms context of the current userlocale
- the Locale to use when accessing the contentcontent
- the content to access, must contain Object of type CmsResource
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |