org.mycore.frontend.servlets
Class MCRUserAjaxServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.mycore.frontend.servlets.MCRServlet
org.mycore.frontend.servlets.MCRUserAjaxServlet
- All Implemented Interfaces:
- Serializable, Servlet, ServletConfig
public class MCRUserAjaxServlet
- extends MCRServlet
This servlet handles requests from the user interface for group and user
administration, with help from Ajax
- Author:
- Radi Radichev, Huu Chi Vu
- See Also:
- Serialized Form
|
Method Summary |
void |
doGetPost(MCRServletJob job)
Modes: users - get all data( groups with users ) update- if username is
"undefined" get the current group with all users in it. |
protected void |
doLayout(MCRServletJob job,
String style,
Document jdomDoc)
Gather information about the XML document to be shown and the
corresponding XSLT stylesheet and redirect the request to the
LayoutServlet |
| 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 |
MCRUserAjaxServlet
public MCRUserAjaxServlet()
doGetPost
public void doGetPost(MCRServletJob job)
throws IOException
- Modes: users - get all data( groups with users ) update- if username is
"undefined" get the current group with all users in it. else put the user
in the group and show updated version of the group. delete- if the group
is "null" then delete the user from the system. else delete the user from
the group
- Overrides:
doGetPost in class MCRServlet
- Throws:
IOException
doLayout
protected void doLayout(MCRServletJob job,
String style,
Document jdomDoc)
throws IOException
- Gather information about the XML document to be shown and the
corresponding XSLT stylesheet and redirect the request to the
LayoutServlet
- Parameters:
job - The MCRServletJob instancestyle - String value to select the correct XSL stylesheetjdomDoc - The XML representation to be presented by the LayoutServlet
- Throws:
ServletException - for errors from the servlet engine.
IOException - for java I/O errors.