com.atlassian.confluence.user
Class AuthenticatedUserThreadLocal
java.lang.Object
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).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AuthenticatedUserThreadLocal
public AuthenticatedUserThreadLocal()
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()