|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
org.apache.sling.scripting.jsp.taglib.DefineObjectsTag
com.day.cq.wcm.tags.DefineObjectsTag
public class DefineObjectsTag
Defines page context attributes useful for scripting.
| Field Summary | |
|---|---|
static String |
DEFAULT_COMPONENT_CONTEXT_NAME
Default name for the scripting variable referencing the ComponentContext object (value is ""componentContext""). |
static String |
DEFAULT_COMPONENT_NAME
Default name for the scripting variable referencing the Component of the current resource (value is ""component""). |
static String |
DEFAULT_CURRENT_DESIGN_NAME
Default name for the scripting variable referencing the design of the current page (value is ""currentDesign""). |
static String |
DEFAULT_CURRENT_PAGE_NAME
Default name for the scripting variable referencing the current page object (value is ""currentPage""). |
static String |
DEFAULT_CURRENT_STYLE_NAME
Default name for the scripting variable referencing the style of the current cell (value is ""currentStyle""). |
static String |
DEFAULT_DESIGNER_NAME
Default name for the scripting variable referencing the Designer object (value is ""designer""). |
static String |
DEFAULT_EDIT_CONTEXT_NAME
Default name for the scripting variable referencing the EditContext object (value is ""editContext""). |
static String |
DEFAULT_PAGE_MANAGER_NAME
Default name for the scripting variable referencing the PageManager object (value is ""pageManager""). |
static String |
DEFAULT_PAGE_PROPERTIES_NAME
Default name for the scripting variable referencing the page properties of the current page (value is ""pageProperties""). |
static String |
DEFAULT_PROPERTIES_NAME
Default name for the scripting variable referencing the properties of the current resource (value is ""properties""). |
static String |
DEFAULT_RESOURCE_DESIGN_NAME
Default name for the scripting variable referencing the design of the resource page (value is ""resourceDesign""). |
static String |
DEFAULT_RESOURCE_PAGE_NAME
Default name for the scripting variable referencing the resource page object (value is ""resourcePage""). |
| Fields inherited from class org.apache.sling.scripting.jsp.taglib.DefineObjectsTag |
|---|
DEFAULT_LOG_NAME, DEFAULT_NODE_NAME, DEFAULT_REQUEST_NAME, DEFAULT_RESOURCE_NAME, DEFAULT_RESOURCE_RESOLVER_NAME, DEFAULT_RESPONSE_NAME, DEFAULT_SLING_NAME |
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
id, pageContext |
| Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
|---|
EVAL_BODY_AGAIN |
| Fields inherited from interface javax.servlet.jsp.tagext.Tag |
|---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
| Constructor Summary | |
|---|---|
DefineObjectsTag()
|
|
| Method Summary | |
|---|---|
int |
doEndTag()
Creates Scripting variables for: SlingHttpServletRequest
SlingHttpServletResponse
current Resource
current Node (if resource is adaptable to a node)
current Logger
current SlingScriptHelper
|
void |
setComponentContextName(String componentContextName)
|
void |
setComponentName(String componentName)
|
void |
setCurrentDesignName(String currentDesignName)
|
void |
setCurrentPageName(String currentPageName)
|
void |
setCurrentStyleName(String currentStyleName)
|
void |
setDesignerName(String designerName)
|
void |
setEditContextName(String editContextName)
|
void |
setPageManagerName(String pageManagerName)
|
void |
setPagePropertiesName(String pagePropertiesName)
|
void |
setPropertiesName(String propertiesName)
|
void |
setResourceDesignName(String resourceDesignName)
|
void |
setResourcePageName(String resourcePageName)
|
| Methods inherited from class org.apache.sling.scripting.jsp.taglib.DefineObjectsTag |
|---|
setLogName, setNodeName, setRequestName, setResourceName, setResourceResolverName, setResponseName, setSlingName |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_COMPONENT_CONTEXT_NAME
ComponentContext object (value is ""componentContext"").
public static final String DEFAULT_EDIT_CONTEXT_NAME
EditContext object (value is ""editContext"").
public static final String DEFAULT_PROPERTIES_NAME
properties of the current resource (value is ""properties"").
public static final String DEFAULT_PAGE_MANAGER_NAME
PageManager object (value is ""pageManager"").
public static final String DEFAULT_CURRENT_PAGE_NAME
current page object (value is ""currentPage"").
public static final String DEFAULT_RESOURCE_PAGE_NAME
resource page object (value is ""resourcePage"").
public static final String DEFAULT_PAGE_PROPERTIES_NAME
page properties of the current page (value is ""pageProperties"").
public static final String DEFAULT_COMPONENT_NAME
Component of the current resource (value is ""component"").
public static final String DEFAULT_DESIGNER_NAME
Designer object (value is ""designer"").
public static final String DEFAULT_CURRENT_DESIGN_NAME
design of the current page (value is ""currentDesign"").
public static final String DEFAULT_RESOURCE_DESIGN_NAME
design of the resource page (value is ""resourceDesign"").
public static final String DEFAULT_CURRENT_STYLE_NAME
style of the current cell (value is ""currentStyle"").
| Constructor Detail |
|---|
public DefineObjectsTag()
| Method Detail |
|---|
public int doEndTag()
SlingHttpServletRequest
SlingHttpServletResponse
Resource
Node (if resource is adaptable to a node)
Logger
SlingScriptHelper
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class org.apache.sling.scripting.jsp.taglib.DefineObjectsTagTag.EVAL_PAGE.public void setComponentContextName(String componentContextName)
public void setEditContextName(String editContextName)
public void setPropertiesName(String propertiesName)
public void setPageManagerName(String pageManagerName)
public void setCurrentPageName(String currentPageName)
public void setResourcePageName(String resourcePageName)
public void setResourceDesignName(String resourceDesignName)
public void setPagePropertiesName(String pagePropertiesName)
public void setComponentName(String componentName)
public void setDesignerName(String designerName)
public void setCurrentDesignName(String currentDesignName)
public void setCurrentStyleName(String currentStyleName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||