org.apache.sling.jackrabbit.usermanager.post
Class DeleteAuthorizableServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by org.apache.sling.api.servlets.SlingSafeMethodsServlet
          extended by org.apache.sling.api.servlets.SlingAllMethodsServlet
              extended by org.apache.sling.jackrabbit.usermanager.post.AbstractAuthorizablePostServlet
                  extended by org.apache.sling.jackrabbit.usermanager.post.DeleteAuthorizableServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class DeleteAuthorizableServlet
extends AbstractAuthorizablePostServlet

Sling Post Operation implementation for deleting one or more users and/or groups from the jackrabbit UserManager.

See Also:
Serialized Form

Constructor Summary
DeleteAuthorizableServlet()
           
 
Method Summary
protected  java.util.Iterator<Resource> getApplyToResources(SlingHttpServletRequest request)
          Returns an iterator on Resource instances addressed in the SlingPostConstants.RP_APPLY_TO request parameter.
protected  void handleOperation(SlingHttpServletRequest request, HtmlResponse htmlResponse, java.util.List<Modification> changes)
          Extending Servlet should implement this operation to do the work
 
Methods inherited from class org.apache.sling.jackrabbit.usermanager.post.AbstractAuthorizablePostServlet
activate, collectContent, deactivate, doPost, externalizePath, getItemPath, getRedirectUrl, hasItemPathPrefix, isSetStatus, processDeletes, requireItemPathPrefix, writeContent
 
Methods inherited from class org.apache.sling.api.servlets.SlingAllMethodsServlet
doDelete, doPut, getAllowedRequestMethods, isMethodValid, mayService
 
Methods inherited from class org.apache.sling.api.servlets.SlingSafeMethodsServlet
doGeneric, doGet, doHead, doOptions, doTrace, getServletInfo, handleMethodNotImplemented, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeleteAuthorizableServlet

public DeleteAuthorizableServlet()
Method Detail

handleOperation

protected void handleOperation(SlingHttpServletRequest request,
                               HtmlResponse htmlResponse,
                               java.util.List<Modification> changes)
                        throws javax.jcr.RepositoryException
Description copied from class: AbstractAuthorizablePostServlet
Extending Servlet should implement this operation to do the work

Specified by:
handleOperation in class AbstractAuthorizablePostServlet
Parameters:
request - the sling http request to process
htmlResponse - the response
Throws:
javax.jcr.RepositoryException

getApplyToResources

protected java.util.Iterator<Resource> getApplyToResources(SlingHttpServletRequest request)
Returns an iterator on Resource instances addressed in the SlingPostConstants.RP_APPLY_TO request parameter. If the request parameter is not set, null is returned. If the parameter is set with valid resources an empty iterator is returned. Any resources addressed in the SlingPostConstants.RP_APPLY_TO parameter is ignored.

Parameters:
request - The SlingHttpServletRequest object used to get the SlingPostConstants.RP_APPLY_TO parameter.
Returns:
The iterator of resources listed in the parameter or null if the parameter is not set in the request.


Copyright © 2007-2009. All Rights Reserved.