org.mycore.frontend.servlets
Class MCRUserAdminGUICommons

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
All Implemented Interfaces:
Serializable, Servlet, ServletConfig
Direct Known Subclasses:
MCRUserAdminServlet, MCRUserEditorServlet

public class MCRUserAdminGUICommons
extends MCRServlet

This servlet provides some common methods for the editors of the user management of the mycore system.

Version:
$Revision: 15202 $ $Date: 2009-05-15 17:00:44 +0200 (Fri, 15 May 2009) $
Author:
Detlev Degenhardt
See Also:
Serialized Form

Field Summary
protected  String cancelPage
           
protected  String noPrivsPage
           
protected  String okPage
           
protected  String pageDir
           
 
Fields inherited from class org.mycore.frontend.servlets.MCRServlet
BASE_URL_ATTRIBUTE, trustedProxies
 
Constructor Summary
MCRUserAdminGUICommons()
           
 
Method Summary
protected  void doLayout(MCRServletJob job, String styleSheet, Document jdomDoc, boolean useStrict)
          Gather information about the XML document to be shown and the corresponding XSLT stylesheet and redirect the request to the LayoutService
 void init()
          Initialisation of the servlet
protected  void showNoPrivsPage(MCRServletJob job)
          This method simply redirects to a page providing information that the privileges for a use case are not sufficient.
protected  void showOkPage(MCRServletJob job)
          This method simply redirects to a page providing information that the current use case was fulfilled successfully.
 
Methods inherited from class org.mycore.frontend.servlets.MCRServlet
buildRedirectURL, doGet, doGet, doGetPost, 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
 

Field Detail

pageDir

protected String pageDir

noPrivsPage

protected String noPrivsPage

cancelPage

protected String cancelPage

okPage

protected String okPage
Constructor Detail

MCRUserAdminGUICommons

public MCRUserAdminGUICommons()
Method Detail

init

public void init()
          throws ServletException
Initialisation of the servlet

Overrides:
init in class MCRServlet
Throws:
ServletException

showNoPrivsPage

protected void showNoPrivsPage(MCRServletJob job)
                        throws IOException
This method simply redirects to a page providing information that the privileges for a use case are not sufficient.

Parameters:
job - The MCRServletJob instance
Throws:
IOException

showOkPage

protected void showOkPage(MCRServletJob job)
                   throws IOException
This method simply redirects to a page providing information that the current use case was fulfilled successfully.

Parameters:
job - The MCRServletJob instance
Throws:
IOException

doLayout

protected void doLayout(MCRServletJob job,
                        String styleSheet,
                        Document jdomDoc,
                        boolean useStrict)
                 throws IOException
Gather information about the XML document to be shown and the corresponding XSLT stylesheet and redirect the request to the LayoutService

Parameters:
job - The MCRServletJob instance
styleSheet - String value to select the correct XSL stylesheet
jdomDoc - The XML representation to be presented by the LayoutService
useStrict - If true, the parameter styleSheet must be used directly as name of a stylesheet when forwarding to the MCRLayoutService. If false, styleSheet will be appended by the signature of the current language. useStrict=true is used when not using a stylesheet at all because one simply needs the raw XML output.
Throws:
ServletException - for errors from the servlet engine.
IOException - for java I/O errors.