Class DeleteAuthorizableServlet

  extended by javax.servlet.GenericServlet
      extended by
          extended by
              extended by
                  extended by
All Implemented Interfaces:, 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
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
activate, collectContent, deactivate, doPost, externalizePath, getItemPath, getRedirectUrl, hasItemPathPrefix, isSetStatus, processDeletes, requireItemPathPrefix, writeContent
Methods inherited from class
doDelete, doPut, getAllowedRequestMethods, isMethodValid, mayService
Methods inherited from class
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


public DeleteAuthorizableServlet()
Method Detail


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
request - the sling http request to process
htmlResponse - the response


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.

request - The SlingHttpServletRequest object used to get the SlingPostConstants.RP_APPLY_TO parameter.
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.