Class DeletePrincipalAcesServlet
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.AbstractAccessPostServlet
org.apache.sling.jcr.jackrabbit.accessmanager.post.DeleteAcesServlet
org.apache.sling.jcr.jackrabbit.accessmanager.post.DeletePrincipalAcesServlet
- All Implemented Interfaces:
- Serializable,- javax.servlet.Servlet,- javax.servlet.ServletConfig,- DeleteAces,- DeletePrincipalAces
Sling Post Servlet implementation for deleting the principal ACE for a set of principals on a JCR resource.
Rest Service Description
Delete a set of Ace's from a node, the node is identified as a resource by the request url >resource<.deletePAce.html
Transport Details:
Methods
- POST
Post Parameters
- :applyTo
- An array of ace principal names to delete. Note the principal name is the primary key of the Ace in the Acl
Response
- 200
- Success.
- 404
- The resource was not found.
- 500
- Failure. HTML explains the failure.
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanReturns whether this operation can operate on paths that do not exist yetprotected voiddeleteAces(javax.jcr.Session jcrSession, String resourcePath, String[] principalNamesToDelete, List<Modification> changes) voiddeletePrincipalAces(javax.jcr.Session jcrSession, String resourcePath, String[] principalNamesToDelete) Deletes one or more pricipal ACEs from the access control list of a resource.protected org.apache.jackrabbit.api.security.authorization.PrincipalAccessControlListgetAccessControlListOrNull(org.apache.jackrabbit.api.security.JackrabbitAccessControlManager jacm, Principal principal) Methods inherited from class org.apache.sling.jcr.jackrabbit.accessmanager.post.DeleteAcesServletdeleteAces, handleOperation, validateArgsMethods inherited from class org.apache.sling.jcr.jackrabbit.accessmanager.post.AbstractAccessPostServletbindPostResponseCreator, createHtmlResponse, doPost, externalizePath, getAccessControlList, getAccessControlListOrNull, getItemPath, getParentPath, getRedirectUrl, getRedirectUrl, handleOperation, isSetStatus, unbindPostResponseCreator, validateResourcePathMethods inherited from class org.apache.sling.jcr.jackrabbit.accessmanager.post.AbstractAccessServletbindRestrictionProvider, getRestrictionProvider, unbindRestrictionProviderMethods inherited from class org.apache.sling.api.servlets.SlingAllMethodsServletdoDelete, doPut, getAllowedRequestMethods, isMethodValid, mayServiceMethods inherited from class org.apache.sling.api.servlets.SlingSafeMethodsServletdoGeneric, doGet, doHead, doOptions, doTrace, getServletInfo, handleMethodNotImplemented, service, serviceMethods inherited from class javax.servlet.GenericServletdestroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, init, log, log
- 
Constructor Details- 
DeletePrincipalAcesServletpublic DeletePrincipalAcesServlet()
 
- 
- 
Method Details- 
allowNonExistingPathsprotected boolean allowNonExistingPaths()Description copied from class:AbstractAccessPostServletReturns whether this operation can operate on paths that do not exist yet- Overrides:
- allowNonExistingPathsin class- AbstractAccessPostServlet
- Returns:
- true if the resourcePath must exist, false otherwise
 
- 
deletePrincipalAcespublic void deletePrincipalAces(javax.jcr.Session jcrSession, String resourcePath, String[] principalNamesToDelete) throws javax.jcr.RepositoryException Description copied from interface:DeletePrincipalAcesDeletes one or more pricipal ACEs from the access control list of a resource.- Specified by:
- deletePrincipalAcesin interface- DeletePrincipalAces
- Parameters:
- jcrSession- the JCR session of the user updating the user
- resourcePath- The path of the resource to update the ACL for (required)
- principalNamesToDelete- An array of ace principal names to delete.. (required)
- Throws:
- javax.jcr.RepositoryException- if any errors applying the changes
 
- 
deleteAcesprotected void deleteAces(javax.jcr.Session jcrSession, String resourcePath, String[] principalNamesToDelete, List<Modification> changes) throws javax.jcr.RepositoryException - Overrides:
- deleteAcesin class- DeleteAcesServlet
- Throws:
- javax.jcr.RepositoryException
 
- 
getAccessControlListOrNullprotected org.apache.jackrabbit.api.security.authorization.PrincipalAccessControlList getAccessControlListOrNull(org.apache.jackrabbit.api.security.JackrabbitAccessControlManager jacm, Principal principal) throws javax.jcr.RepositoryException - Throws:
- javax.jcr.RepositoryException
 
 
-