public class CmsJspResourceLoadBean extends java.lang.Object
CmsJspTagResourceLoad
,
CmsJspResourceAccessBean
Modifier and Type | Field and Description |
---|---|
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.
|
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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 java.util.List<CmsResource> m_resources
public CmsJspResourceLoadBean()
You must call init(CmsObject, List)
and provide the
required values when you use this constructor.
init(CmsObject, List)
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 CmsResource
public 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