org.mycore.frontend.servlets
Class MCRStartClassEditorServlet

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.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

    Field Summary
     
    Fields inherited from class org.mycore.frontend.servlets.MCRServlet
    BASE_URL_ATTRIBUTE, trustedProxies
     
    Constructor Summary
    MCRStartClassEditorServlet()
               
     
    Method Summary
     String getResponsePage(MCRServletJob job, org.mycore.frontend.servlets.MCRStartClassEditorServlet.ReturnStatus status)
               
     void render(MCRServletJob job, Exception thinkException)
              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.
     void setResponsePage(MCRServletJob job, org.mycore.frontend.servlets.MCRStartClassEditorServlet.ReturnStatus status, String url)
               
     void think(MCRServletJob job)
              Replace the doGetPost method of MCRServlet.
     
    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 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

    MCRStartClassEditorServlet

    public MCRStartClassEditorServlet()
    Method Detail

    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