|
||||||||
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 List<CmsJspContentAccessBean> |
m_content
The List of results form the content loader. |
protected 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,
List<CmsResource> content)
Creates a new context bean using the OpenCms context of the current user. |
|
CmsJspContentLoadBean(CmsObject cms,
Locale locale,
List<CmsResource> content)
Creates a new context bean using the OpenCms context of the current user with the given locale. |
Method Summary | |
---|---|
static List<CmsJspContentAccessBean> |
convertResourceList(CmsObject cms,
List<CmsResource> resources)
Converts a list of CmsResource objects to a list of CmsJspContentAccessBean objects,
using the current request context locale. |
static List<CmsJspContentAccessBean> |
convertResourceList(CmsObject cms,
Locale locale,
List<CmsResource> 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. |
List<CmsJspContentAccessBean> |
getContent()
Returns a List of CmsJspContentAccessBean instances, which have been wrapped around
the original CmsResource instances of the collector result. |
Locale |
getLocale()
Returns the Locale this bean was initialized with. |
void |
init(CmsObject cms,
Locale locale,
List<CmsResource> 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 List<CmsJspContentAccessBean> m_content
protected 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, List<CmsResource> 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, Locale locale, List<CmsResource> 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 List<CmsJspContentAccessBean> convertResourceList(CmsObject cms, List<CmsResource> 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 List<CmsJspContentAccessBean> convertResourceList(CmsObject cms, Locale locale, List<CmsResource> 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 List<CmsJspContentAccessBean> 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 Locale getLocale()
public void init(CmsObject cms, Locale locale, List<CmsResource> 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 |