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
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddExtraInfo(jakarta.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.getAccessControlEntriesMap(javax.jcr.Session session, String absPath, Principal principal, Map<Principal, Map<DeclarationType, Set<String>>> declaredAtPaths) protected jakarta.json.JsonObjectinternalGetAce(javax.jcr.Session jcrSession, String resourcePath, String principalId) protected jakarta.json.JsonObjectinternalJson(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, validateResourcePathMethods inherited from class org.apache.sling.jcr.jackrabbit.accessmanager.post.AbstractAccessServlet
bindRestrictionProvider, getRestrictionProvider, unbindRestrictionProviderMethods inherited from class org.apache.sling.api.servlets.SlingAllMethodsServlet
doDelete, doPost, doPut, getAllowedRequestMethods, isMethodValid, mayServiceMethods inherited from class org.apache.sling.api.servlets.SlingSafeMethodsServlet
doGeneric, doHead, doOptions, doTrace, getServletInfo, handleMethodNotImplemented, service, serviceMethods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, init, log, log
-
Constructor Details
-
AbstractGetAceServlet
public AbstractGetAceServlet()
-
-
Method Details
-
internalJson
protected jakarta.json.JsonObject internalJson(javax.jcr.Session session, String resourcePath, String principalId) throws javax.jcr.RepositoryException - Specified by:
internalJsonin classAbstractAccessGetServlet- Throws:
javax.jcr.RepositoryException
-
internalGetAce
protected jakarta.json.JsonObject internalGetAce(javax.jcr.Session jcrSession, String resourcePath, String principalId) throws javax.jcr.RepositoryException - Throws:
javax.jcr.RepositoryException
-
addExtraInfo
protected void addExtraInfo(jakarta.json.JsonObjectBuilder principalJson, Principal principal, Map<Principal, Map<DeclarationType, Set<String>>> principalToDeclaredAtPaths) Override to add additional data to the principal object- Parameters:
principalJson- the current principal JSON builderprincipal- 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, throws javax.jcr.RepositoryExceptionSet<String>>> declaredAtPaths) - 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
-
getAccessControlEntriesMap(Session, String, Principal, Map)instead