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

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.AbstractGroupPostServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
Direct Known Subclasses:
CreateGroupServlet, UpdateGroupServlet

public abstract class AbstractGroupPostServlet
extends AbstractAuthorizablePostServlet

Base class for servlets manipulating groups

See Also:
Serialized Form

Constructor Summary
AbstractGroupPostServlet()
           
 
Method Summary
protected  void updateGroupMembership(SlingHttpServletRequest request, org.apache.jackrabbit.api.security.user.Authorizable authorizable, java.util.List<Modification> changes)
          Update the group membership based on the ":member" request parameters.
 
Methods inherited from class org.apache.sling.jackrabbit.usermanager.post.AbstractAuthorizablePostServlet
activate, collectContent, deactivate, doPost, externalizePath, getItemPath, getRedirectUrl, handleOperation, 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

AbstractGroupPostServlet

public AbstractGroupPostServlet()
Method Detail

updateGroupMembership

protected void updateGroupMembership(SlingHttpServletRequest request,
                                     org.apache.jackrabbit.api.security.user.Authorizable authorizable,
                                     java.util.List<Modification> changes)
                              throws javax.jcr.RepositoryException
Update the group membership based on the ":member" request parameters. If the ":member" value ends with @Delete it is removed from the group membership, otherwise it is added to the group membership.

Parameters:
request -
authorizable -
Throws:
javax.jcr.RepositoryException


Copyright © 2007-2009. All Rights Reserved.