Class SecurityServlet.GetAccessPolicies

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void doIt​(@NotNull org.apache.sling.api.SlingHttpServletRequest request, @NotNull org.apache.sling.api.SlingHttpServletResponse response, @Nullable ResourceHandle resource)  
      protected boolean seemsTheSame​(javax.jcr.security.AccessControlPolicy p1, javax.jcr.security.AccessControlPolicy p2)  
      protected void writePolicies​(com.google.gson.stream.JsonWriter writer, javax.jcr.security.AccessControlPolicy[] policies)  
      protected void writePolicies​(com.google.gson.stream.JsonWriter writer, javax.jcr.security.AccessControlPolicyIterator policies)  
      protected void writePolicy​(com.google.gson.stream.JsonWriter writer, javax.jcr.security.AccessControlPolicy policy)  
      protected void writePrivileges​(com.google.gson.stream.JsonWriter writer, javax.jcr.security.AccessControlEntry entry)  
      protected void writePrivileges​(com.google.gson.stream.JsonWriter writer, javax.jcr.security.Privilege[] privileges)  
      protected void writeRestrictions​(com.google.gson.stream.JsonWriter writer, org.apache.jackrabbit.api.security.JackrabbitAccessControlEntry entry)  
    • Constructor Detail

      • GetAccessPolicies

        public GetAccessPolicies()
    • Method Detail

      • doIt

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

        protected boolean seemsTheSame​(javax.jcr.security.AccessControlPolicy p1,
                                       javax.jcr.security.AccessControlPolicy p2)
      • writePolicies

        protected void writePolicies​(com.google.gson.stream.JsonWriter writer,
                                     javax.jcr.security.AccessControlPolicy[] policies)
                              throws IOException,
                                     javax.jcr.RepositoryException
        Throws:
        IOException
        javax.jcr.RepositoryException
      • writePolicies

        protected void writePolicies​(com.google.gson.stream.JsonWriter writer,
                                     javax.jcr.security.AccessControlPolicyIterator policies)
                              throws IOException,
                                     javax.jcr.RepositoryException
        Throws:
        IOException
        javax.jcr.RepositoryException
      • writePolicy

        protected void writePolicy​(com.google.gson.stream.JsonWriter writer,
                                   javax.jcr.security.AccessControlPolicy policy)
                            throws IOException,
                                   javax.jcr.RepositoryException
        Throws:
        IOException
        javax.jcr.RepositoryException
      • writePrivileges

        protected void writePrivileges​(com.google.gson.stream.JsonWriter writer,
                                       javax.jcr.security.AccessControlEntry entry)
                                throws IOException
        Throws:
        IOException
      • writePrivileges

        protected void writePrivileges​(com.google.gson.stream.JsonWriter writer,
                                       javax.jcr.security.Privilege[] privileges)
                                throws IOException
        Throws:
        IOException
      • writeRestrictions

        protected void writeRestrictions​(com.google.gson.stream.JsonWriter writer,
                                         org.apache.jackrabbit.api.security.JackrabbitAccessControlEntry entry)
                                  throws IOException,
                                         javax.jcr.RepositoryException
        Throws:
        IOException
        javax.jcr.RepositoryException