org.apache.wiki.auth
Class UserManager.JSONUserModule
java.lang.Object
org.apache.wiki.auth.UserManager.JSONUserModule
- All Implemented Interfaces:
- RPCCallable
- Enclosing class:
- UserManager
public static final class UserManager.JSONUserModule
- extends Object
- implements RPCCallable
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserManager.JSONUserModule
public UserManager.JSONUserModule(UserManager mgr)
- Create a new JSONUserModule.
- Parameters:
mgr
- Manager
getUserInfo
public UserProfile getUserInfo(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.
Copyright © {inceptionYear}-2014 The Apache Software Foundation. All rights reserved.