org.eaglei.repository.servlet.admin
Class UpdateGrants

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.eaglei.repository.servlet.RepositoryServlet
              extended by org.eaglei.repository.servlet.admin.UpdateGrants
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class UpdateGrants
extends RepositoryServlet

Add and remove Access Grants. This servlet exists primarily to serve the Edit Grants page in the admin JSP UI. Of course it can be used by itself, but beware of weird behavior when its referrer is a .JSP URL - it will indicate success by redirecting back to the JSP. Method: POST only. REQUIRED ARGS: uri = URI of the object action = add | remove access = URI of hte access type to be added/deleted agent = URI of the person or Role in the access grant. These args are passed through to the JSP upon redirect. See editGrants.jsp for details: type, label, lock_access, backLink, backLabel

Author:
Larry Stone Started March 2011
See Also:
Serialized Form

Nested Class Summary
static class UpdateGrants.Action
           
 
Constructor Summary
UpdateGrants()
           
 
Method Summary
protected  void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          
 
Methods inherited from class org.eaglei.repository.servlet.RepositoryServlet
getExactParameter, getParameter, getParameterAsBoolean, getParameterAsKeyword, getParameterAsReader, getParameterAsURI, getParameterContentType, getParameters, isParameterPresent, redirectToJSP, service
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, 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

UpdateGrants

public UpdateGrants()
Method Detail

doPost

protected void doPost(javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response)
               throws javax.servlet.ServletException,
                      java.io.IOException

Overrides:
doPost in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
java.io.IOException


Copyright © 2009-2011 Eagle-I. All Rights Reserved.