org.mycore.frontend.servlets
Class MCRUserEditorServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.mycore.frontend.servlets.MCRServlet
              extended by org.mycore.frontend.servlets.MCRUserAdminGUICommons
                  extended by org.mycore.frontend.servlets.MCRUserEditorServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class MCRUserEditorServlet
extends MCRUserAdminGUICommons

This servlet provides a web interface for the editors of the user management of the mycore system.

Version:
$Revision: 14994 $ $Date: 2009-03-24 13:01:57 +0100 (Tue, 24 Mar 2009) $
Author:
Detlev Degenhardt
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.mycore.frontend.servlets.MCRUserAdminGUICommons
cancelPage, noPrivsPage, okPage, pageDir
 
Fields inherited from class org.mycore.frontend.servlets.MCRServlet
BASE_URL_ATTRIBUTE, trustedProxies
 
Constructor Summary
MCRUserEditorServlet()
           
 
Method Summary
 void doGetPost(MCRServletJob job)
          This method overrides doGetPost of MCRServlet and handles HTTP requests.
 void init()
          Initialisation of the servlet
 
Methods inherited from class org.mycore.frontend.servlets.MCRUserAdminGUICommons
doLayout, showNoPrivsPage, showOkPage
 
Methods inherited from class org.mycore.frontend.servlets.MCRServlet
buildRedirectURL, doGet, doGet, doPost, doPost, generateActiveLinkErrorpage, generateErrorPage, getBaseURL, getLastModified, getLayoutService, getProperty, getRemoteAddr, getServletBaseURL, getSession, handleException, initTrustedProxies, render, reportException, think
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MCRUserEditorServlet

public MCRUserEditorServlet()
Method Detail

init

public void init()
          throws ServletException
Initialisation of the servlet

Overrides:
init in class MCRUserAdminGUICommons
Throws:
ServletException

doGetPost

public void doGetPost(MCRServletJob job)
               throws IOException
This method overrides doGetPost of MCRServlet and handles HTTP requests. Depending on the mode parameter in the request, the method dispatches actions to be done by subsequent private methods. In contrast to the MCRUserAdminServlet - which serves as an entry point and dispatcher for all use cases of the user management GUI - this servlet is called by the MyCoRe editor framework, triggered by the editor definition files of the user management GUI. In addition, this servlet is the target of the MyCoRe editor framework for the user management GUI, i.e. it reads the editor submission and acts accordingly.

Overrides:
doGetPost in class MCRServlet
Parameters:
job - The MCRServletJob instance
Throws:
IOException - for java I/O errors.
ServletException - for errors from the servlet engine.