Package org.apache.wiki.auth
Class DefaultUserManager.JSONUserModule
- java.lang.Object
- 
- org.apache.wiki.auth.DefaultUserManager.JSONUserModule
 
- 
- All Implemented Interfaces:
- WikiAjaxServlet
 - Enclosing class:
- DefaultUserManager
 
 public static final class DefaultUserManager.JSONUserModule extends java.lang.Object implements WikiAjaxServlet Implements the JSON API for usermanager.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 SummaryConstructors Constructor Description JSONUserModule(DefaultUserManager mgr)Create a new JSONUserModule.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetServletMapping()UserProfilegetUserInfo(java.lang.String uid)Directly returns the UserProfile object attached to an uid.voidservice(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, java.lang.String actionName, java.util.List<java.lang.String> params)
 
- 
- 
- 
Constructor Detail- 
JSONUserModulepublic JSONUserModule(DefaultUserManager mgr) Create a new JSONUserModule.- Parameters:
- mgr- Manager
 
 
- 
 - 
Method Detail- 
getServletMappingpublic java.lang.String getServletMapping() - Specified by:
- getServletMappingin interface- WikiAjaxServlet
 
 - 
servicepublic 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 - Specified by:
- servicein interface- WikiAjaxServlet
- Throws:
- javax.servlet.ServletException
- java.io.IOException
 
 - 
getUserInfopublic UserProfile getUserInfo(java.lang.String uid) throws NoSuchPrincipalException Directly returns the UserProfile object attached to an uid.- Parameters:
- uid- The user id (e.g. WikiName)
- Returns:
- A UserProfile object
- Throws:
- NoSuchPrincipalException- If such a name does not exist.
 
 
- 
 
-