org.mycore.frontend.servlets
Class MCRCheckBase
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.mycore.frontend.servlets.MCRServlet
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
| 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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
MCRCheckBase
public MCRCheckBase()
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 MCRObjectokay - 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