org.apache.wiki.auth
Class UserManager.JSONUserModule

java.lang.Object
  extended by 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.


Constructor Summary
UserManager.JSONUserModule(UserManager mgr)
          Create a new JSONUserModule.
 
Method Summary
 UserProfile getUserInfo(String uid)
          Directly returns the UserProfile object attached to an uid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserManager.JSONUserModule

public UserManager.JSONUserModule(UserManager mgr)
Create a new JSONUserModule.

Parameters:
mgr - Manager
Method Detail

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.