
public static final class UserManager.JSONUserModule extends 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(UserManager mgr)
Create a new JSONUserModule.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getServletMapping() |
UserProfile |
getUserInfo(String uid)
Directly returns the UserProfile object attached to an uid.
|
void |
service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
String actionName,
List<String> params) |
public JSONUserModule(UserManager mgr)
mgr - Managerpublic String getServletMapping()
getServletMapping in interface WikiAjaxServletpublic void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, String actionName, List<String> params) throws javax.servlet.ServletException, IOException
service in interface WikiAjaxServletjavax.servlet.ServletExceptionIOExceptionpublic UserProfile getUserInfo(String uid) throws NoSuchPrincipalException
uid - The user id (e.g. WikiName)NoSuchPrincipalException - If such a name does not exist.Copyright © 2001-2018 The Apache Software Foundation. All rights reserved.