Class DefineObjectsTag

All Implemented Interfaces:
Serializable, IterationTag, JspTag, Tag

public class DefineObjectsTag extends DefineObjectsTag
Defines page context attributes useful for scripting.
See Also:
  • Field Details

    • DEFAULT_COMPONENT_CONTEXT_NAME

      public static final String DEFAULT_COMPONENT_CONTEXT_NAME
      Default name for the scripting variable referencing the ComponentContext object (value is ""componentContext"").
      See Also:
    • DEFAULT_EDIT_CONTEXT_NAME

      public static final String DEFAULT_EDIT_CONTEXT_NAME
      Default name for the scripting variable referencing the EditContext object (value is ""editContext"").
      See Also:
    • DEFAULT_PROPERTIES_NAME

      public static final String DEFAULT_PROPERTIES_NAME
      Default name for the scripting variable referencing the properties of the current resource (value is ""properties"").
      See Also:
    • DEFAULT_PAGE_MANAGER_NAME

      public static final String DEFAULT_PAGE_MANAGER_NAME
      Default name for the scripting variable referencing the PageManager object (value is ""pageManager"").
      See Also:
    • DEFAULT_CURRENT_PAGE_NAME

      public static final String DEFAULT_CURRENT_PAGE_NAME
      Default name for the scripting variable referencing the current page object (value is ""currentPage"").
      See Also:
    • DEFAULT_RESOURCE_PAGE_NAME

      public static final String DEFAULT_RESOURCE_PAGE_NAME
      Default name for the scripting variable referencing the resource page object (value is ""resourcePage"").
      See Also:
    • DEFAULT_PAGE_PROPERTIES_NAME

      public static final String DEFAULT_PAGE_PROPERTIES_NAME
      Default name for the scripting variable referencing the page properties of the current page (value is ""pageProperties"").
      See Also:
    • DEFAULT_COMPONENT_NAME

      public static final String DEFAULT_COMPONENT_NAME
      Default name for the scripting variable referencing the Component of the current resource (value is ""component"").
      See Also:
    • DEFAULT_DESIGNER_NAME

      public static final String DEFAULT_DESIGNER_NAME
      Default name for the scripting variable referencing the Designer object (value is ""designer"").
      See Also:
    • DEFAULT_CURRENT_DESIGN_NAME

      public static final String DEFAULT_CURRENT_DESIGN_NAME
      Default name for the scripting variable referencing the design of the current page (value is ""currentDesign"").
      See Also:
    • DEFAULT_RESOURCE_DESIGN_NAME

      public static final String DEFAULT_RESOURCE_DESIGN_NAME
      Default name for the scripting variable referencing the design of the resource page (value is ""resourceDesign"").
      See Also:
    • DEFAULT_CURRENT_STYLE_NAME

      public static final String DEFAULT_CURRENT_STYLE_NAME
      Default name for the scripting variable referencing the style of the current cell (value is ""currentStyle"").
      See Also:
    • DEFAULT_XSSAPI_NAME

      public static final String DEFAULT_XSSAPI_NAME
      Default name for the scripting variable referencing the xssAPI protection service currently in use (value is ""xssAPI"").
      See Also:
    • DEFAULT_CURRENT_CONTENT_POLICY_NAME

      public static final String DEFAULT_CURRENT_CONTENT_POLICY_NAME
      Default name for the scripting variable referencing the ContentPolicy of the current cell (value is ""currentContentPolicy"").
      See Also:
    • DEFAULT_CURRENT_CONTENT_POLICY_PROPS_NAME

      public static final 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:
  • Constructor Details

    • DefineObjectsTag

      public DefineObjectsTag()
  • Method Details

    • doEndTag

      public int doEndTag()
      Creates Scripting variables for:
      • SlingHttpServletRequest
      • SlingHttpServletResponse
      • current Resource
      • current Node (if resource is adaptable to a node)
      • current Logger
      • current SlingScriptHelper
      Specified by:
      doEndTag in interface Tag
      Overrides:
      doEndTag in class DefineObjectsTag
      Returns:
      always Tag.EVAL_PAGE.
      See Also:
    • setComponentContextName

      public void setComponentContextName(String componentContextName)
    • setEditContextName

      public void setEditContextName(String editContextName)
    • setPropertiesName

      public void setPropertiesName(String propertiesName)
    • setPageManagerName

      public void setPageManagerName(String pageManagerName)
    • setCurrentPageName

      public void setCurrentPageName(String currentPageName)
    • setResourcePageName

      public void setResourcePageName(String resourcePageName)
    • setResourceDesignName

      public void setResourceDesignName(String resourceDesignName)
    • setPagePropertiesName

      public void setPagePropertiesName(String pagePropertiesName)
    • setComponentName

      public void setComponentName(String componentName)
    • setDesignerName

      public void setDesignerName(String designerName)
    • setCurrentDesignName

      public void setCurrentDesignName(String currentDesignName)
    • setCurrentStyleName

      public void setCurrentStyleName(String currentStyleName)
    • setXssAPIName

      public void setXssAPIName(String xssAPIName)
    • setCurrentPolicyName

      public void setCurrentPolicyName(String currentPolicyName)
    • setCurrentPolicyPropertiesName

      public void setCurrentPolicyPropertiesName(String currentPolicyPropertiesName)