Class DefineObjectsTag

    • Field Detail

      • DEFAULT_COMPONENT_CONTEXT_NAME

        public static final java.lang.String DEFAULT_COMPONENT_CONTEXT_NAME
        Default name for the scripting variable referencing the ComponentContext object (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 the EditContext object (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 the properties of 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 the PageManager object (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 the current page object (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 the resource page object (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 the page properties of 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 the Component of 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 the Designer object (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 the design of 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 the design of 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 the style of 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 the xssAPI protection service currently 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 the ContentPolicy of 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
    • Constructor Detail

      • DefineObjectsTag

        public DefineObjectsTag()
    • Method Detail

      • 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:
        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)