Class MCRDeleteDerivateServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.mycore.frontend.servlets.MCRServlet
org.mycore.frontend.servlets.persistence.MCRDeleteDerivateServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet
,jakarta.servlet.ServletConfig
,Serializable
Handles DELTE operation on
MCRDerivate
.- Author:
- Thomas Scheffler (yagee)
- See Also:
-
Field Summary
Fields inherited from class org.mycore.frontend.servlets.MCRServlet
ATTR_MYCORE_SESSION, CURRENT_THREAD_NAME_KEY, INITIAL_SERVLET_NAME_KEY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
init()
protected void
redirectToUploadForm
(jakarta.servlet.ServletContext context, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String objectId, String derivateId) protected void
render
(MCRServletJob job, Exception ex) 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.protected void
think
(MCRServletJob job) 1st phase of doGetPost.Methods inherited from class org.mycore.frontend.servlets.MCRServlet
allowCrossDomainRequests, buildRedirectURL, cleanupMCRSession, doGet, doGet, doGetPost, doPost, doPost, getErrorI18N, getLastModified, getLayoutService, getProperty, getReferer, getServletBaseURL, getSession, handleException, initializeMCRSession, reportException, toReferrer, toReferrer
Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, service, service
Methods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Field Details
-
OBJECT_ID_KEY
-
-
Constructor Details
-
MCRDeleteDerivateServlet
public MCRDeleteDerivateServlet()
-
-
Method Details
-
init
public void init() throws jakarta.servlet.ServletException- Overrides:
init
in classMCRServlet
- Throws:
jakarta.servlet.ServletException
-
think
Description copied from class:MCRServlet
1st phase of doGetPost. This method has a seperate transaction. Per default id does nothing as a fallback to the old behaviour.- Overrides:
think
in classMCRServlet
- Throws:
Exception
- See Also:
-
render
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 classMCRServlet
- Parameters:
job
- same instance as of think(MCRServlet job)ex
- any exception thrown by think(MCRServletJob) or transaction commit- Throws:
Exception
- if render could not handleex
to produce a nice user page
-
redirectToUploadForm
protected void redirectToUploadForm(jakarta.servlet.ServletContext context, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String objectId, String derivateId) throws jakarta.servlet.ServletException, IOException - Throws:
jakarta.servlet.ServletException
IOException
-