org.mycore.frontend.servlets
Class MCRCheckBase

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.MCRCheckBase
All Implemented Interfaces:
Serializable, Servlet, ServletConfig
Direct Known Subclasses:
MCRCheckACLBase, MCRCheckCommitDerivateServlet, MCRCheckDataBase, MCRCheckEditDerivateServlet

public abstract class MCRCheckBase
extends MCRServlet

This class is the superclass of servlets which checks the MCREditorServlet output XML for metadata object and derivate objects.

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

Field Summary
protected  List<String> errorlog
           
(package private)  String NL
           
protected static String pagedir
           
protected static MCRUserMgr UM
           
protected static String usererrorpage
           
protected static MCRSimpleWorkflowManager WFM
           
 
Fields inherited from class org.mycore.frontend.servlets.MCRServlet
BASE_URL_ATTRIBUTE, trustedProxies
 
Constructor Summary
MCRCheckBase()
           
 
Method Summary
protected  boolean checkAccess(MCRObjectID ID)
          check the access permission
protected  void errorHandlerIO(MCRServletJob job)
          A method to handle IO errors.
protected abstract  String getNextURL(MCRObjectID ID, boolean okay)
          The method return an URL with the next working step.
protected abstract  void sendMail(MCRObjectID ID)
          The method send a message to the mail address for the MCRObjectType.
 
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, init, 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

NL

String NL

WFM

protected static MCRSimpleWorkflowManager WFM

UM

protected static MCRUserMgr UM

pagedir

protected static String pagedir

errorlog

protected List<String> errorlog

usererrorpage

protected static String usererrorpage
Constructor Detail

MCRCheckBase

public MCRCheckBase()
Method Detail

getNextURL

protected abstract String getNextURL(MCRObjectID ID,
                                     boolean okay)
                              throws MCRActiveLinkException
The method return an URL with the next working step. If okay flag is true, the object will present else it shows the error page.

Parameters:
ID - the MCRObjectID of the MCRObject
okay - the return value of the store operation
Returns:
the next URL as String
Throws:
MCRActiveLinkException

sendMail

protected abstract void sendMail(MCRObjectID ID)
The method send a message to the mail address for the MCRObjectType.

Parameters:
ID - the MCRObjectID of the MCRObject

errorHandlerIO

protected void errorHandlerIO(MCRServletJob job)
                       throws Exception
A method to handle IO errors.

Parameters:
job - the MCRServletJob
Throws:
Exception

checkAccess

protected boolean checkAccess(MCRObjectID ID)
check the access permission

Parameters:
ID - the mycore ID
Returns:
true if the access is set