Package com.composum.sling.nodes.servlet
Class SecurityServlet.GetAccessPolicies
- java.lang.Object
-
- com.composum.sling.nodes.servlet.SecurityServlet.GetAccessPolicies
-
- All Implemented Interfaces:
ServletOperation
- Direct Known Subclasses:
SecurityServlet.GetAllAccessPolicies
- Enclosing class:
- SecurityServlet
public class SecurityServlet.GetAccessPolicies extends Object implements ServletOperation
the access rules retrieval for an JSON result of on policy list
-
-
Constructor Summary
Constructors Constructor Description 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)
-
-
-
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 interfaceServletOperation
- 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
-
-