org.mycore.frontend.servlets
Class MCRStartClassEditorServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.mycore.frontend.servlets.MCRServlet
org.mycore.frontend.servlets.MCRStartClassEditorServlet
- All Implemented Interfaces:
- Serializable, Servlet, ServletConfig
public class MCRStartClassEditorServlet
- extends MCRServlet
The servlet start the MyCoRe class editor session with some parameters from a
HTML form. The parameters are:
name="todo" values like 'create-classification, modify-classification,
delete-classification, up and down'
name="path" uri to page after editactions
name="clid" classification id
name="categid" category id
- Version:
- $Revision: 15225 $ $Date: 2009-05-19 15:33:02 +0200 (Tue, 19 May 2009) $
- Author:
- Anja Schaar, 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, reportException |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MCRStartClassEditorServlet
public MCRStartClassEditorServlet()
think
public void think(MCRServletJob job)
throws Exception
- Replace the doGetPost method of MCRServlet. This method will be called
two times when using the classification editor. Firtst time it prepare
date for the editor and second time it execute the operation.
- Overrides:
think in class MCRServlet
- Throws:
Exception- See Also:
MCRServlet.render(MCRServletJob, Exception)
setResponsePage
public void setResponsePage(MCRServletJob job,
org.mycore.frontend.servlets.MCRStartClassEditorServlet.ReturnStatus status,
String url)
getResponsePage
public String getResponsePage(MCRServletJob job,
org.mycore.frontend.servlets.MCRStartClassEditorServlet.ReturnStatus status)
render
public void render(MCRServletJob job,
Exception thinkException)
throws IOException
- Description copied from class:
MCRServlet
- 2nd phase of doGetPost
This method has a seperate transaction and gets the same MCRServletJob from the first phase (think)
and any exception that occurs at the first phase.
By default this method calls doGetPost(MCRServletJob) as a fallback to the old behaviour.
- Overrides:
render in class MCRServlet
- Parameters:
job - same instance as of think(MCRServlet job)thinkException - any exception thrown by think(MCRServletJob) or transaction commit
- Throws:
IOException