Class AbstractGetAceServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- org.apache.sling.api.servlets.SlingSafeMethodsServlet
-
- org.apache.sling.api.servlets.SlingAllMethodsServlet
-
- org.apache.sling.jcr.jackrabbit.accessmanager.post.AbstractAccessServlet
-
- org.apache.sling.jcr.jackrabbit.accessmanager.post.AbstractAccessGetServlet
-
- org.apache.sling.jcr.jackrabbit.accessmanager.post.AbstractGetAceServlet
-
- All Implemented Interfaces:
Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
- Direct Known Subclasses:
GetAceServlet
,GetEffectiveAceServlet
,GetPrincipalAceServlet
public abstract class AbstractGetAceServlet extends AbstractAccessGetServlet
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractGetAceServlet()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
addExtraInfo(javax.json.JsonObjectBuilder principalJson, Principal principal, Map<Principal,Map<DeclarationType,Set<String>>> principalToDeclaredAtPaths)
Override to add additional data to the principal objectprotected javax.jcr.security.AccessControlEntry[]
getAccessControlEntries(javax.jcr.Session session, String absPath, Principal principal)
Deprecated.protected abstract Map<String,List<javax.jcr.security.AccessControlEntry>>
getAccessControlEntriesMap(javax.jcr.Session session, String absPath, Principal principal, Map<Principal,Map<DeclarationType,Set<String>>> declaredAtPaths)
protected javax.json.JsonObject
internalGetAce(javax.jcr.Session jcrSession, String resourcePath, String principalId)
protected javax.json.JsonObject
internalJson(javax.jcr.Session session, String resourcePath, String principalId)
-
Methods inherited from class org.apache.sling.jcr.jackrabbit.accessmanager.post.AbstractAccessGetServlet
doGet, entriesSortedByEffectivePath, getItemPath, processACE, validateArgs, validateArgs, validateResourcePath
-
Methods inherited from class org.apache.sling.jcr.jackrabbit.accessmanager.post.AbstractAccessServlet
bindRestrictionProvider, getRestrictionProvider, unbindRestrictionProvider
-
Methods inherited from class org.apache.sling.api.servlets.SlingAllMethodsServlet
doDelete, doPost, doPut, getAllowedRequestMethods, isMethodValid, mayService
-
Methods inherited from class org.apache.sling.api.servlets.SlingSafeMethodsServlet
doGeneric, doHead, doOptions, doTrace, getServletInfo, handleMethodNotImplemented, service, service
-
-
-
-
Method Detail
-
internalJson
protected javax.json.JsonObject internalJson(javax.jcr.Session session, String resourcePath, String principalId) throws javax.jcr.RepositoryException
- Specified by:
internalJson
in classAbstractAccessGetServlet
- Throws:
javax.jcr.RepositoryException
-
internalGetAce
protected javax.json.JsonObject internalGetAce(javax.jcr.Session jcrSession, String resourcePath, String principalId) throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
addExtraInfo
protected void addExtraInfo(javax.json.JsonObjectBuilder principalJson, Principal principal, Map<Principal,Map<DeclarationType,Set<String>>> principalToDeclaredAtPaths)
Override to add additional data to the principal object- Parameters:
principalObj
- the current principal objectprincipal
- the current principalprincipalToDeclaredAtPaths
- a map of principal the paths where ACEs are declared
-
getAccessControlEntriesMap
protected abstract Map<String,List<javax.jcr.security.AccessControlEntry>> getAccessControlEntriesMap(javax.jcr.Session session, String absPath, Principal principal, Map<Principal,Map<DeclarationType,Set<String>>> declaredAtPaths) throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
getAccessControlEntries
@Deprecated protected javax.jcr.security.AccessControlEntry[] getAccessControlEntries(javax.jcr.Session session, String absPath, Principal principal) throws javax.jcr.RepositoryException
Deprecated.- Throws:
javax.jcr.RepositoryException
-
-