org.mycore.frontend.servlets
Class MCRCheckCommitDataServlet

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
                  extended by org.mycore.frontend.servlets.MCRCheckDataBase
                      extended by org.mycore.frontend.servlets.MCRCheckCommitDataServlet
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class MCRCheckCommitDataServlet
extends MCRCheckDataBase

The servlet store the MCREditorServlet output XML in a file of a MCR type dependencies directory, check it dependence of the MCR type and store the XML in a file in this directory or if an error was occured start the editor again with todo repair.

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

Field Summary
 
Fields inherited from class org.mycore.frontend.servlets.MCRCheckBase
errorlog, NL, pagedir, UM, usererrorpage, WFM
 
Fields inherited from class org.mycore.frontend.servlets.MCRServlet
BASE_URL_ATTRIBUTE, trustedProxies
 
Constructor Summary
MCRCheckCommitDataServlet()
           
 
Method Summary
protected  boolean checkAccess(MCRObjectID ID)
          check the access permission
 String getNextURL(MCRObjectID ID, boolean okay)
          The method is a dummy and return an URL with the next working step.
 void sendMail(MCRObjectID ID)
          The method send a message to the mail address for the MCRObjectType.
 
Methods inherited from class org.mycore.frontend.servlets.MCRCheckDataBase
doGetPost, prepareMetadata, storeMetadata
 
Methods inherited from class org.mycore.frontend.servlets.MCRCheckBase
errorHandlerIO
 
Methods inherited from class org.mycore.frontend.servlets.MCRServlet
buildRedirectURL, doGet, doGet, 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
 

Constructor Detail

MCRCheckCommitDataServlet

public MCRCheckCommitDataServlet()
Method Detail

getNextURL

public final String getNextURL(MCRObjectID ID,
                               boolean okay)
                        throws MCRActiveLinkException
The method is a dummy and return an URL with the next working step.

Specified by:
getNextURL in class MCRCheckBase
Parameters:
ID - the MCRObjectID of the MCRObject
okay - the return value of the store operation
Returns:
the next URL as String
Throws:
MCRActiveLinkException

sendMail

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

Specified by:
sendMail in class MCRCheckBase
Parameters:
ID - the MCRObjectID of the MCRObject

checkAccess

protected boolean checkAccess(MCRObjectID ID)
check the access permission

Overrides:
checkAccess in class MCRCheckBase
Parameters:
ID - the mycore ID
Returns:
true if the access is set