public static final class DefaultUserManager.JSONUserModule extends java.lang.Object implements WikiAjaxServlet
Even though this gets serialized whenever container shuts down/restarts, this gets reinstalled to the session when JSPWiki starts. This means that it's not actually necessary to save anything.
| Constructor and Description |
|---|
JSONUserModule(DefaultUserManager mgr)
Create a new JSONUserModule.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getServletMapping() |
UserProfile |
getUserInfo(java.lang.String uid)
Directly returns the UserProfile object attached to an uid.
|
void |
service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
java.lang.String actionName,
java.util.List<java.lang.String> params) |
public JSONUserModule(DefaultUserManager mgr)
mgr - Managerpublic java.lang.String getServletMapping()
getServletMapping in interface WikiAjaxServletpublic void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, java.lang.String actionName, java.util.List<java.lang.String> params) throws javax.servlet.ServletException, java.io.IOException
service in interface WikiAjaxServletjavax.servlet.ServletExceptionjava.io.IOExceptionpublic UserProfile getUserInfo(java.lang.String uid) throws NoSuchPrincipalException
uid - The user id (e.g. WikiName)NoSuchPrincipalException - If such a name does not exist.Copyright (c) 2001-2022 The Apache Software Foundation. All rights reserved.