|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.user.AuthenticatedUserThreadLocal
public class AuthenticatedUserThreadLocal
A simple ThreadLocal to store the currently authenticated user. This can be used when the user comes from something other than the web interface (i.e. SOAP).
| Constructor Summary | |
|---|---|
AuthenticatedUserThreadLocal()
|
|
| Method Summary | |
|---|---|
static ConfluenceUser |
get()
|
static com.atlassian.user.User |
getUser()
Deprecated. since 5.2. Use get() instead. |
static String |
getUsername()
|
static boolean |
isAnonymousUser()
|
static void |
reset()
Remove any user from the current context |
static void |
set(ConfluenceUser user)
|
static void |
setUser(com.atlassian.user.User user)
Deprecated. since 5.2. Use set(ConfluenceUser) instead. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AuthenticatedUserThreadLocal()
| Method Detail |
|---|
public static void set(ConfluenceUser user)
@Deprecated public static void setUser(com.atlassian.user.User user)
set(ConfluenceUser) instead.
public static ConfluenceUser get()
@Deprecated public static com.atlassian.user.User getUser()
get() instead.
public static void reset()
public static String getUsername()
public static boolean isAnonymousUser()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||