Class SpaceResourceReference

  • All Implemented Interfaces:
    Cloneable

    public class SpaceResourceReference
    extends ResourceReference
    Represents a reference to a Space.
    Since:
    7.4.1, 8.0M1
    Version:
    $Id: df4e7748659ffd6ccfde1d4484c9a617db02d77a $
    • Method Detail

      • getQueryString

        public String getQueryString()
        Returns:
        the query string for specifying parameters that will be used in the rendered URL or null if no query string has been specified. Example: mydata1=5&mydata2=Hello
      • setQueryString

        public void setQueryString​(String queryString)
        Parameters:
        queryString - see getQueryString()
      • getAnchor

        public String getAnchor()
        Returns:
        the anchor name pointing to an anchor defined in the referenced space's WebHome doucment or null if no anchor has been specified (in which case the reference points to the top of the space's WebHome document). Note that in XWiki anchors are automatically created for titles. Example: "TableOfContentAnchor"
      • setAnchor

        public void setAnchor​(String anchor)
        Parameters:
        anchor - see getAnchor()