Package com.composum.sling.core
Class AbstractServletBean
- java.lang.Object
-
- com.composum.sling.core.AbstractSlingBean
-
- com.composum.sling.core.AbstractServletBean
-
- All Implemented Interfaces:
RestrictedBean
,SlingBean
public abstract class AbstractServletBean extends AbstractSlingBean
the abstract model base class for Composum Console components addressed by a forward from a console servlet with the models resource path in the requests suffix
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.composum.sling.core.AbstractSlingBean
AbstractSlingBean.NodeClosure
-
-
Field Summary
-
Fields inherited from class com.composum.sling.core.AbstractSlingBean
context, queryManager, request, resolver, resource, response, session, sling
-
-
Constructor Summary
Constructors Constructor Description AbstractServletBean()
AbstractServletBean(BeanContext context)
AbstractServletBean(BeanContext context, org.apache.sling.api.resource.Resource resource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initialize(BeanContext context)
extract the resource referenced to display in the browsers view as the components resource-
Methods inherited from class com.composum.sling.core.AbstractSlingBean
executeQuery, findBeans, findNodes, findNodes, findPathList, getContentResource, getDomId, getHasTitle, getId, getInherited, getInherited, getName, getNode, getParent, getParent, getPath, getPermissible, getProperty, getProperty, getQueryManager, getRequest, getResolver, getResource, getResponse, getServiceKey, getSession, getSling, getStringId, getTitle, getType, getUrl, getUsername, initialize, isPermissible, isReadAllowed, isWriteAllowed, toString, toString
-
-
-
-
Constructor Detail
-
AbstractServletBean
public AbstractServletBean(BeanContext context, org.apache.sling.api.resource.Resource resource)
-
AbstractServletBean
public AbstractServletBean(BeanContext context)
-
AbstractServletBean
public AbstractServletBean()
-
-
Method Detail
-
initialize
public void initialize(BeanContext context)
extract the resource referenced to display in the browsers view as the components resource- Specified by:
initialize
in interfaceSlingBean
- Overrides:
initialize
in classAbstractSlingBean
- Parameters:
context
- the scripting context (e.g. a JSP PageContext or a Groovy scripting context)
-
-