Class GetParentsTag

  • All Implemented Interfaces:, IterationTag, JspTag, Tag

    public class GetParentsTag
    extends TagSupport
    Tag for retrieving all of the parent resources of a specified resource, returning them in hierarchy order.
    See Also:
    Serialized Form
    • Constructor Detail

      • GetParentsTag

        public GetParentsTag()
    • Method Detail

      • getResource

        public Resource getResource()
        Gets the resource.
        the resource
      • getStartDepth

        public java.lang.String getStartDepth()
        Retrieves the start depth
        the start depth to retrieve
      • getVar

        public java.lang.String getVar()
        Gets the variable name to which to save the list of children.
        the variable name
      • setResource

        public void setResource​(Resource resource)
        Sets the resource.
        resource - the new resource
      • setStartDepth

        public void setStartDepth​(java.lang.String startDepth)
        The depth at which to start, for example given a path of: /content/page1/page2/page3 and a start depth of 3, the parents page2/page3 would be returned
        startDepth - the start depth from which to retrieve the parent resources
      • setVar

        public void setVar​(java.lang.String var)
        Sets the variable name to which to save the parent resource.
        var - the variable name