com.atlassian.confluence.user
Class AuthenticatedUserThreadLocal

java.lang.Object
  extended by com.atlassian.confluence.user.AuthenticatedUserThreadLocal

public class AuthenticatedUserThreadLocal
extends Object

A simple ThreadLocal to store the currently authenticated user. This is can be used when the user comes from something other than the web interface (i.e. SOAP).


Constructor Summary
AuthenticatedUserThreadLocal()
           
 
Method Summary
static User getUser()
           
static String getUsername()
           
static void setUser(User user)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthenticatedUserThreadLocal

public AuthenticatedUserThreadLocal()
Method Detail

setUser

public static void setUser(User user)

getUser

public static User getUser()
Returns:
the currently authenticated user, null if anonymous user

getUsername

public static String getUsername()


Confluence is developed by Atlassian.