org.mycore.frontend.servlets
Class MCRCheckEditACLServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.mycore.frontend.servlets.MCRServlet
org.mycore.frontend.servlets.MCRCheckBase
org.mycore.frontend.servlets.MCRCheckACLBase
org.mycore.frontend.servlets.MCRCheckEditACLServlet
- All Implemented Interfaces:
- Serializable, Servlet, ServletConfig
public class MCRCheckEditACLServlet
- extends MCRCheckACLBase
The servlet store the MCREditorServlet output XML in a file of a MCR type
dependencies directory, check it dependence of the MCR type and store the XML
in a file in this directory or if an error was occured start the editor again
with todo repair.
- Version:
- $Revision: 15272 $ $Date: 2009-05-26 12:37:41 +0200 (Tue, 26 May 2009) $
- Author:
- Jens Kupferschmidt
- 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 |
MCRCheckEditACLServlet
public MCRCheckEditACLServlet()
getNextURL
protected 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.
- Specified by:
getNextURL in class MCRCheckBase
- Parameters:
ID - the MCRObjectID of the MCRObjectokay - the return value of the store operation
- Returns:
- the next URL as String
- Throws:
MCRActiveLinkException
sendMail
public final void sendMail(MCRObjectID ID)
- The method send a message to the mail address for the MCRObjectType.
- Specified by:
sendMail in class MCRCheckBase
- Parameters:
ID - the MCRObjectID of the MCRObject
storeService
public final boolean storeService(Element outelm,
MCRServletJob job,
MCRObjectID ID)
- The method store the incoming service data from the ACL editor to the
workflow.
- Specified by:
storeService in class MCRCheckACLBase
- Parameters:
outelm - the service subelement of an MCRObjectjob - the MCRServletJob instanceID - the MCRObjectID
checkAccess
protected boolean checkAccess(MCRObjectID ID)
- check the access permission
- Overrides:
checkAccess in class MCRCheckBase
- Parameters:
ID - the mycore ID
- Returns:
- true if the access is set