Class GraphServlet

  • All Implemented Interfaces:
    Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    public class GraphServlet
    extends org.apache.sling.api.servlets.SlingSafeMethodsServlet
    a servlet to render authorizable graphs built from scratch to support extraction for external resuse
    See Also:
    Serialized Form
    • Constructor Detail

      • GraphServlet

        public GraphServlet()
    • Method Detail

      • getComponentBase

        @NotNull
        protected @NotNull String getComponentBase​(@NotNull
                                                   @NotNull org.apache.sling.api.resource.ResourceResolver resolver)
      • doGet

        protected void doGet​(@NotNull
                             @NotNull org.apache.sling.api.SlingHttpServletRequest request,
                             @NotNull
                             @NotNull org.apache.sling.api.SlingHttpServletResponse response)
                      throws javax.servlet.ServletException,
                             IOException
        Overrides:
        doGet in class org.apache.sling.api.servlets.SlingSafeMethodsServlet
        Throws:
        javax.servlet.ServletException
        IOException
      • getGraph

        protected AuthorizablesGraph getGraph​(@NotNull
                                              @NotNull org.apache.sling.api.SlingHttpServletRequest request,
                                              @NotNull
                                              @NotNull org.apache.sling.api.SlingHttpServletResponse response)
                                       throws javax.jcr.RepositoryException
        Throws:
        javax.jcr.RepositoryException
      • getPaths

        protected AuthorizablesPaths getPaths​(@NotNull
                                              @NotNull org.apache.sling.api.SlingHttpServletRequest request,
                                              @NotNull
                                              @NotNull org.apache.sling.api.SlingHttpServletResponse response)
                                       throws javax.jcr.RepositoryException
        Throws:
        javax.jcr.RepositoryException
      • nodeUrl

        protected String nodeUrl​(@NotNull
                                 @NotNull org.apache.sling.api.SlingHttpServletRequest request,
                                 @NotNull
                                 @NotNull String option,
                                 @NotNull
                                 @NotNull AuthorizableModel node)
      • pathUrl

        protected String pathUrl​(@NotNull
                                 @NotNull org.apache.sling.api.SlingHttpServletRequest request,
                                 @NotNull
                                 @NotNull String option,
                                 @NotNull
                                 @NotNull AuthorizableModel node,
                                 @NotNull
                                 @NotNull String path)