org.mycore.frontend.servlets
Class MCRUserAdminGUICommons
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.mycore.frontend.servlets.MCRServlet
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
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pageDir
protected String pageDir
noPrivsPage
protected String noPrivsPage
cancelPage
protected String cancelPage
okPage
protected String okPage
MCRUserAdminGUICommons
public MCRUserAdminGUICommons()
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 instancestyleSheet - String value to select the correct XSL stylesheetjdomDoc - The XML representation to be presented by the LayoutServiceuseStrict - 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.