public class CmsJspResourceLoadBean
extends java.lang.Object
CmsJspTagResourceLoad,
CmsJspResourceAccessBean| 限定符和类型 | 字段和说明 |
|---|---|
protected CmsObject |
m_cms
The OpenCms context of the current user.
|
protected java.util.List<CmsResource> |
m_resources
The list of results of the resource loader.
|
| 构造器和说明 |
|---|
CmsJspResourceLoadBean()
No argument constructor, required for a JavaBean.
|
CmsJspResourceLoadBean(CmsObject cms,
java.util.List<CmsResource> resources)
Creates a new context bean using the OpenCms context of the current user.
|
| 限定符和类型 | 方法和说明 |
|---|---|
CmsObject |
getCmsObject()
Returns the OpenCms user context this bean was initialized with.
|
java.util.List<CmsResource> |
getResources()
Returns a list of
CmsResource instances. |
void |
init(CmsObject cms,
java.util.List<CmsResource> resources)
Initialize this instance.
|
protected CmsObject m_cms
protected java.util.List<CmsResource> m_resources
public CmsJspResourceLoadBean()
You must call init(CmsObject, List) and provide the
required values when you use this constructor.
public CmsJspResourceLoadBean(CmsObject cms, java.util.List<CmsResource> resources)
The current request context locale is used.
cms - the OpenCms context of the current userresources - the resources to access, must contain objects of type CmsResourcepublic CmsObject getCmsObject()
public java.util.List<CmsResource> getResources()
CmsResource instances.CmsResource instancespublic void init(CmsObject cms, java.util.List<CmsResource> resources)
cms - the OpenCms context of the current userresources - the resources to access, must contain objects of type CmsResource