org.mycore.frontend.servlets
Class MCRCheckDataBase
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.mycore.frontend.servlets.MCRServlet
org.mycore.frontend.servlets.MCRCheckBase
org.mycore.frontend.servlets.MCRCheckDataBase
- All Implemented Interfaces:
- Serializable, Servlet, ServletConfig
- Direct Known Subclasses:
- MCRCheckCommitDataServlet, MCRCheckEditDataServlet, MCRCheckNewDataServlet
public abstract class MCRCheckDataBase
- extends MCRCheckBase
This class is the superclass of servlets which checks the MCREditorServlet
output XML and store the XML in a file or if an error was occured start the
editor again.
- Version:
- $Revision: 15272 $ $Date: 2009-05-26 12:37:41 +0200 (Tue, 26 May 2009) $
- Author:
- Jens Kupferschmidt, Thomas Scheffler (yagee)
- See Also:
- Serialized Form
| 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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MCRCheckDataBase
public MCRCheckDataBase()
doGetPost
public void doGetPost(MCRServletJob job)
throws Exception
- This method overrides doGetPost of MCRServlet.
- Overrides:
doGetPost in class MCRServlet
- Throws:
Exception
storeMetadata
public final boolean storeMetadata(byte[] outxml,
MCRServletJob job,
MCRObjectID ID,
String fullname)
throws Exception
- The method stores the data in a working directory dependenced of the
type.
- Parameters:
outxml - the prepared JDOM objectjob - the MCRServletJobID - MCRObjectID of the MCRObject/MCRDerivatefullname - the file name where the JDOM was stored.
- Throws:
Exception
prepareMetadata
protected Document prepareMetadata(Document jdom_in,
MCRObjectID ID,
MCRServletJob job,
String lang)
throws IOException
- The method read the incoming JDOM tree in a MCRObject and prepare this by
the following rules. After them it return a JDOM as result of
MCRObject.createXML().
- remove all target of MCRMetaClassification they have not a categid
attribute.
- remove all target of MCRMetaLangText they have an empty text
- Parameters:
jdom_in - the JDOM tree from the editorID - the MCRObjectID of the MCRObjectjob - the MCRServletJob datalang - the current language
- Throws:
IOException