Class NodeServlet.ReferenceOperation

  • All Implemented Interfaces:
    ServletOperation
    Enclosing class:
    NodeServlet

    protected class NodeServlet.ReferenceOperation
    extends Object
    implements ServletOperation
    similar to the 'tree' operation creates this operation a JSON object for the requested node; but this node is requested by its id (UUID) in the suffix or as parameter; this operation provides data for reference retrieval (get the node of a reference) suffix: the reference of the node in a 'path notation' selectors / parameters: - 'label': 'name' or 'title' - selects the value to use for the nodes 'text' attribute ' 'id': a parameter with the reference used instead of the id from the suffix URL examples: - http://host/bin/cpm/nodes/node.reference.json/node-id - http://host/bin/cpm/nodes/node.reference.title.json/node-id - http://host/bin/cpm/nodes/node.reference.json?id=node-id
    • Constructor Detail

      • ReferenceOperation

        protected ReferenceOperation()
    • Method Detail

      • doIt

        public void doIt​(@NotNull
                         @NotNull org.apache.sling.api.SlingHttpServletRequest request,
                         @NotNull
                         @NotNull org.apache.sling.api.SlingHttpServletResponse response,
                         ResourceHandle resource)
                  throws javax.servlet.ServletException,
                         IOException
        Specified by:
        doIt in interface ServletOperation
        Throws:
        javax.servlet.ServletException
        IOException