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
public abstract class AbstractGetAclServlet extends AbstractAccessGetServlet
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
KEY_DENIED
Deprecated.since 3.0.12, To be removed when the exported package version goes to 4.0protected static String
KEY_GRANTED
Deprecated.since 3.0.12, To be removed when the exported package version goes to 4.0protected static String
KEY_ORDER
Deprecated.since 3.0.12, To be removed when the exported package version goes to 4.0 useJsonConvert.KEY_ORDER
instead
-
Constructor Summary
Constructors Constructor Description AbstractGetAclServlet()
-
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 void
addRestrictions(javax.json.JsonObjectBuilder privilegeObj, String key, Set<LocalRestriction> restrictions)
Deprecated.useJsonConvert.addRestrictions(JsonObjectBuilder, String, Set)
insteadprotected javax.json.JsonArrayBuilder
addTo(javax.json.JsonArrayBuilder builder, Object value)
Deprecated.useJsonConvert.addTo(JsonObjectBuilder, String, Object)
insteadprotected javax.json.JsonObjectBuilder
addTo(javax.json.JsonObjectBuilder builder, String key, Object value)
Deprecated.useJsonConvert.addTo(javax.json.JsonArrayBuilder, Object)
insteadprotected javax.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)
insteadprotected abstract Map<String,List<javax.jcr.security.AccessControlEntry>>
getAccessControlEntriesMap(javax.jcr.Session session, String absPath, Map<Principal,Map<DeclarationType,Set<String>>> declaredAtPaths)
protected javax.json.JsonObject
internalGetAcl(javax.jcr.Session jcrSession, String resourcePath)
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
-
-
-
-
Field Detail
-
KEY_ORDER
@Deprecated protected static final String 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:
- Constant Field Values
-
KEY_DENIED
@Deprecated protected static final String KEY_DENIED
Deprecated.since 3.0.12, To be removed when the exported package version goes to 4.0- See Also:
- Constant Field Values
-
KEY_GRANTED
@Deprecated protected static final String KEY_GRANTED
Deprecated.since 3.0.12, To be removed when the exported package version goes to 4.0- See Also:
- Constant Field Values
-
-
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
-
internalGetAcl
protected javax.json.JsonObject internalGetAcl(javax.jcr.Session jcrSession, String resourcePath) throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
convertToJson
protected javax.json.JsonObjectBuilder convertToJson(List<Map.Entry<Principal,Map<javax.jcr.security.Privilege,LocalPrivilege>>> entrySetList, Map<Principal,Map<DeclarationType,Set<String>>> declaredAtPaths)
-
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
-
addRestrictions
@Deprecated protected void addRestrictions(javax.json.JsonObjectBuilder privilegeObj, String key, Set<LocalRestriction> restrictions)
Deprecated.useJsonConvert.addRestrictions(JsonObjectBuilder, String, Set)
instead
-
addTo
@Deprecated protected javax.json.JsonObjectBuilder addTo(javax.json.JsonObjectBuilder builder, String key, Object value)
Deprecated.useJsonConvert.addTo(javax.json.JsonArrayBuilder, Object)
instead
-
addTo
@Deprecated protected javax.json.JsonArrayBuilder addTo(javax.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,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) throws javax.jcr.RepositoryException
Deprecated.usegetAccessControlEntriesMap(Session, String, Map)
instead- Throws:
javax.jcr.RepositoryException
-
-