Package com.day.cq.wcm.tags
Class DefineObjectsTag
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagSupport
-
- org.apache.sling.scripting.jsp.taglib.DefineObjectsTag
-
- com.day.cq.wcm.tags.DefineObjectsTag
-
- All Implemented Interfaces:
java.io.Serializable,IterationTag,JspTag,Tag
public class DefineObjectsTag extends DefineObjectsTag
Defines page context attributes useful for scripting.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_COMPONENT_CONTEXT_NAMEDefault name for the scripting variable referencing theComponentContextobject (value is ""componentContext"").static java.lang.StringDEFAULT_COMPONENT_NAMEDefault name for the scripting variable referencing theComponentof the current resource (value is ""component"").static java.lang.StringDEFAULT_CURRENT_CONTENT_POLICY_NAMEDefault name for the scripting variable referencing theContentPolicyof the current cell (value is ""currentContentPolicy"").static java.lang.StringDEFAULT_CURRENT_CONTENT_POLICY_PROPS_NAMEDefault name for the scripting variable referencing the properties of the current content policy (value is ""currentContentPolicyProperties"").static java.lang.StringDEFAULT_CURRENT_DESIGN_NAMEDefault name for the scripting variable referencing thedesignof the current page (value is ""currentDesign"").static java.lang.StringDEFAULT_CURRENT_PAGE_NAMEDefault name for the scripting variable referencing thecurrent pageobject (value is ""currentPage"").static java.lang.StringDEFAULT_CURRENT_STYLE_NAMEDefault name for the scripting variable referencing thestyleof the current cell (value is ""currentStyle"").static java.lang.StringDEFAULT_DESIGNER_NAMEDefault name for the scripting variable referencing theDesignerobject (value is ""designer"").static java.lang.StringDEFAULT_EDIT_CONTEXT_NAMEDefault name for the scripting variable referencing theEditContextobject (value is ""editContext"").static java.lang.StringDEFAULT_PAGE_MANAGER_NAMEDefault name for the scripting variable referencing thePageManagerobject (value is ""pageManager"").static java.lang.StringDEFAULT_PAGE_PROPERTIES_NAMEDefault name for the scripting variable referencing thepage propertiesof the current page (value is ""pageProperties"").static java.lang.StringDEFAULT_PROPERTIES_NAMEDefault name for the scripting variable referencing thepropertiesof the current resource (value is ""properties"").static java.lang.StringDEFAULT_RESOURCE_DESIGN_NAMEDefault name for the scripting variable referencing thedesignof the resource page (value is ""resourceDesign"").static java.lang.StringDEFAULT_RESOURCE_PAGE_NAMEDefault name for the scripting variable referencing theresource pageobject (value is ""resourcePage"").static java.lang.StringDEFAULT_XSSAPI_NAMEDefault name for the scripting variable referencing thexssAPI protection servicecurrently in use (value is ""xssAPI"").-
Fields inherited from class org.apache.sling.scripting.jsp.taglib.DefineObjectsTag
DEFAULT_BINDINGS_NAME, 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 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
Constructors Constructor Description DefineObjectsTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdoEndTag()Creates Scripting variables for:SlingHttpServletRequestSlingHttpServletResponsecurrentResourcecurrentNode(if resource is adaptable to a node) currentLoggercurrentSlingScriptHelpervoidsetComponentContextName(java.lang.String componentContextName)voidsetComponentName(java.lang.String componentName)voidsetCurrentDesignName(java.lang.String currentDesignName)voidsetCurrentPageName(java.lang.String currentPageName)voidsetCurrentPolicyName(java.lang.String currentPolicyName)voidsetCurrentPolicyPropertiesName(java.lang.String currentPolicyPropertiesName)voidsetCurrentStyleName(java.lang.String currentStyleName)voidsetDesignerName(java.lang.String designerName)voidsetEditContextName(java.lang.String editContextName)voidsetPageManagerName(java.lang.String pageManagerName)voidsetPagePropertiesName(java.lang.String pagePropertiesName)voidsetPropertiesName(java.lang.String propertiesName)voidsetResourceDesignName(java.lang.String resourceDesignName)voidsetResourcePageName(java.lang.String resourcePageName)voidsetXssAPIName(java.lang.String xssAPIName)-
Methods inherited from class org.apache.sling.scripting.jsp.taglib.DefineObjectsTag
release, setBindingsName, setLogName, setNodeName, setPageContext, setRequestName, setResourceName, setResourceResolverName, setResponseName, setSlingName
-
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setParent, setValue
-
-
-
-
Field Detail
-
DEFAULT_COMPONENT_CONTEXT_NAME
public static final java.lang.String DEFAULT_COMPONENT_CONTEXT_NAME
Default name for the scripting variable referencing theComponentContextobject (value is ""componentContext"").- See Also:
- Constant Field Values
-
DEFAULT_EDIT_CONTEXT_NAME
public static final java.lang.String DEFAULT_EDIT_CONTEXT_NAME
Default name for the scripting variable referencing theEditContextobject (value is ""editContext"").- See Also:
- Constant Field Values
-
DEFAULT_PROPERTIES_NAME
public static final java.lang.String DEFAULT_PROPERTIES_NAME
Default name for the scripting variable referencing thepropertiesof the current resource (value is ""properties"").- See Also:
- Constant Field Values
-
DEFAULT_PAGE_MANAGER_NAME
public static final java.lang.String DEFAULT_PAGE_MANAGER_NAME
Default name for the scripting variable referencing thePageManagerobject (value is ""pageManager"").- See Also:
- Constant Field Values
-
DEFAULT_CURRENT_PAGE_NAME
public static final java.lang.String DEFAULT_CURRENT_PAGE_NAME
Default name for the scripting variable referencing thecurrent pageobject (value is ""currentPage"").- See Also:
- Constant Field Values
-
DEFAULT_RESOURCE_PAGE_NAME
public static final java.lang.String DEFAULT_RESOURCE_PAGE_NAME
Default name for the scripting variable referencing theresource pageobject (value is ""resourcePage"").- See Also:
- Constant Field Values
-
DEFAULT_PAGE_PROPERTIES_NAME
public static final java.lang.String DEFAULT_PAGE_PROPERTIES_NAME
Default name for the scripting variable referencing thepage propertiesof the current page (value is ""pageProperties"").- See Also:
- Constant Field Values
-
DEFAULT_COMPONENT_NAME
public static final java.lang.String DEFAULT_COMPONENT_NAME
Default name for the scripting variable referencing theComponentof the current resource (value is ""component"").- See Also:
- Constant Field Values
-
DEFAULT_DESIGNER_NAME
public static final java.lang.String DEFAULT_DESIGNER_NAME
Default name for the scripting variable referencing theDesignerobject (value is ""designer"").- See Also:
- Constant Field Values
-
DEFAULT_CURRENT_DESIGN_NAME
public static final java.lang.String DEFAULT_CURRENT_DESIGN_NAME
Default name for the scripting variable referencing thedesignof the current page (value is ""currentDesign"").- See Also:
- Constant Field Values
-
DEFAULT_RESOURCE_DESIGN_NAME
public static final java.lang.String DEFAULT_RESOURCE_DESIGN_NAME
Default name for the scripting variable referencing thedesignof the resource page (value is ""resourceDesign"").- See Also:
- Constant Field Values
-
DEFAULT_CURRENT_STYLE_NAME
public static final java.lang.String DEFAULT_CURRENT_STYLE_NAME
Default name for the scripting variable referencing thestyleof the current cell (value is ""currentStyle"").- See Also:
- Constant Field Values
-
DEFAULT_XSSAPI_NAME
public static final java.lang.String DEFAULT_XSSAPI_NAME
Default name for the scripting variable referencing thexssAPI protection servicecurrently in use (value is ""xssAPI"").- See Also:
- Constant Field Values
-
DEFAULT_CURRENT_CONTENT_POLICY_NAME
public static final java.lang.String DEFAULT_CURRENT_CONTENT_POLICY_NAME
Default name for the scripting variable referencing theContentPolicyof the current cell (value is ""currentContentPolicy"").- See Also:
- Constant Field Values
-
DEFAULT_CURRENT_CONTENT_POLICY_PROPS_NAME
public static final java.lang.String DEFAULT_CURRENT_CONTENT_POLICY_PROPS_NAME
Default name for the scripting variable referencing the properties of the current content policy (value is ""currentContentPolicyProperties"").- See Also:
- Constant Field Values
-
-
Method Detail
-
doEndTag
public int doEndTag()
Creates Scripting variables for:SlingHttpServletRequestSlingHttpServletResponse- current
Resource - current
Node(if resource is adaptable to a node) - current
Logger - current
SlingScriptHelper
- Specified by:
doEndTagin interfaceTag- Overrides:
doEndTagin classDefineObjectsTag- Returns:
- always
Tag.EVAL_PAGE. - See Also:
Tag.doEndTag()
-
setComponentContextName
public void setComponentContextName(java.lang.String componentContextName)
-
setEditContextName
public void setEditContextName(java.lang.String editContextName)
-
setPropertiesName
public void setPropertiesName(java.lang.String propertiesName)
-
setPageManagerName
public void setPageManagerName(java.lang.String pageManagerName)
-
setCurrentPageName
public void setCurrentPageName(java.lang.String currentPageName)
-
setResourcePageName
public void setResourcePageName(java.lang.String resourcePageName)
-
setResourceDesignName
public void setResourceDesignName(java.lang.String resourceDesignName)
-
setPagePropertiesName
public void setPagePropertiesName(java.lang.String pagePropertiesName)
-
setComponentName
public void setComponentName(java.lang.String componentName)
-
setDesignerName
public void setDesignerName(java.lang.String designerName)
-
setCurrentDesignName
public void setCurrentDesignName(java.lang.String currentDesignName)
-
setCurrentStyleName
public void setCurrentStyleName(java.lang.String currentStyleName)
-
setXssAPIName
public void setXssAPIName(java.lang.String xssAPIName)
-
setCurrentPolicyName
public void setCurrentPolicyName(java.lang.String currentPolicyName)
-
setCurrentPolicyPropertiesName
public void setCurrentPolicyPropertiesName(java.lang.String currentPolicyPropertiesName)
-
-