public abstract class A_CmsJspCustomContextBean extends java.lang.Object
CmsJspStandardContextBean.getBean(String className).
It is the suitable base class for custom beans that need access to the OpenCms context.| Constructor and Description |
|---|
A_CmsJspCustomContextBean() |
| Modifier and Type | Method and Description |
|---|---|
CmsObject |
getCmsObject()
Returns the cms object for the current context.
|
protected CmsJspStandardContextBean |
getStandardContextBean()
Returns the standard context.
|
void |
setContext(CmsJspStandardContextBean context)
Set the context for the bean.
|
protected CmsResource |
toResource(java.lang.Object input)
Convert the input to a CmsResource using the current context.
|
protected I_CmsXmlDocument |
toXml(java.lang.Object input)
Converts the input (typically a specification of an XML file) to an XML document.
|
public A_CmsJspCustomContextBean()
public CmsObject getCmsObject()
public void setContext(CmsJspStandardContextBean context)
context - the context to set.protected CmsJspStandardContextBean getStandardContextBean()
protected CmsResource toResource(java.lang.Object input) throws CmsException
input - the object to convert to a resource, e.g., a path, a structure id, an access wrapper ...CmsException - if resource conversion fails.CmsJspElFunctions.convertResource(CmsObject, Object)protected I_CmsXmlDocument toXml(java.lang.Object input) throws CmsException
toResource(Object) is used.input - the object to be converted to an XML document.CmsException - if converting the input to a XML document fails.