Class AbstractGetAclServlet
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.AbstractGetAclServlet
- All Implemented Interfaces:
Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
- Direct Known Subclasses:
GetAclServlet
,GetEffectiveAclServlet
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final String
Deprecated.since 3.0.12, To be removed when the exported package version goes to 4.0protected static final String
Deprecated.since 3.0.12, To be removed when the exported package version goes to 4.0protected static final String
Deprecated.since 3.0.12, To be removed when the exported package version goes to 4.0 useJsonConvert.KEY_ORDER
instead -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addExtraInfo
(jakarta.json.JsonObjectBuilder principalJson, Principal principal, Map<Principal, Map<DeclarationType, Set<String>>> principalToDeclaredAtPaths) Override to add additional data to the principal objectprotected void
addRestrictions
(jakarta.json.JsonObjectBuilder privilegeObj, String key, Set<LocalRestriction> restrictions) Deprecated.useJsonConvert.addRestrictions(JsonObjectBuilder, String, Set)
insteadprotected jakarta.json.JsonArrayBuilder
Deprecated.useJsonConvert.addTo(JsonObjectBuilder, String, Object)
insteadprotected jakarta.json.JsonObjectBuilder
Deprecated.useJsonConvert#addTo(javax.json.JsonArrayBuilder, Object)
insteadprotected jakarta.json.JsonObjectBuilder
convertToJson
(List<Map.Entry<Principal, Map<javax.jcr.security.Privilege, LocalPrivilege>>> entrySetList, Map<Principal, Map<DeclarationType, Set<String>>> declaredAtPaths) protected javax.jcr.security.AccessControlEntry[]
getAccessControlEntries
(javax.jcr.Session session, String absPath) Deprecated.usegetAccessControlEntriesMap(Session, String, Map)
insteadgetAccessControlEntriesMap
(javax.jcr.Session session, String absPath, Map<Principal, Map<DeclarationType, Set<String>>> declaredAtPaths) protected jakarta.json.JsonObject
internalGetAcl
(javax.jcr.Session jcrSession, String resourcePath) protected jakarta.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
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, init, log, log
-
Field Details
-
KEY_ORDER
Deprecated.since 3.0.12, To be removed when the exported package version goes to 4.0 useJsonConvert.KEY_ORDER
instead- See Also:
-
KEY_DENIED
Deprecated.since 3.0.12, To be removed when the exported package version goes to 4.0- See Also:
-
KEY_GRANTED
Deprecated.since 3.0.12, To be removed when the exported package version goes to 4.0- See Also:
-
-
Constructor Details
-
AbstractGetAclServlet
public AbstractGetAclServlet()
-
-
Method Details
-
internalJson
protected jakarta.json.JsonObject internalJson(javax.jcr.Session session, String resourcePath, String principalId) throws javax.jcr.RepositoryException - Specified by:
internalJson
in classAbstractAccessGetServlet
- Throws:
javax.jcr.RepositoryException
-
internalGetAcl
protected jakarta.json.JsonObject internalGetAcl(javax.jcr.Session jcrSession, String resourcePath) throws javax.jcr.RepositoryException - Throws:
javax.jcr.RepositoryException
-
convertToJson
-
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
-
addRestrictions
@Deprecated protected void addRestrictions(jakarta.json.JsonObjectBuilder privilegeObj, String key, Set<LocalRestriction> restrictions) Deprecated.useJsonConvert.addRestrictions(JsonObjectBuilder, String, Set)
instead -
addTo
@Deprecated protected jakarta.json.JsonObjectBuilder addTo(jakarta.json.JsonObjectBuilder builder, String key, Object value) Deprecated.useJsonConvert#addTo(javax.json.JsonArrayBuilder, Object)
instead -
addTo
@Deprecated protected jakarta.json.JsonArrayBuilder addTo(jakarta.json.JsonArrayBuilder builder, Object value) Deprecated.useJsonConvert.addTo(JsonObjectBuilder, String, Object)
instead -
getAccessControlEntriesMap
protected abstract Map<String,List<javax.jcr.security.AccessControlEntry>> getAccessControlEntriesMap(javax.jcr.Session session, String absPath, 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) throws javax.jcr.RepositoryException Deprecated.usegetAccessControlEntriesMap(Session, String, Map)
instead- Throws:
javax.jcr.RepositoryException
-