AuthenticatedUserAccessor instead if your threads are all wrapped by WorkContext
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).@Deprecated public class AuthenticatedUserThreadLocal extends Object
| Constructor and Description |
|---|
AuthenticatedUserThreadLocal()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static ConfluenceUser |
get()
Deprecated.
|
static com.atlassian.user.User |
getUser()
Deprecated.
since 5.2. Use
get() instead. |
static String |
getUsername()
Deprecated.
|
static boolean |
isAnonymousUser()
Deprecated.
|
static void |
reset()
Deprecated.
Remove any user from the current context
|
static void |
set(ConfluenceUser user)
Deprecated.
|
static void |
setUser(com.atlassian.user.User user)
Deprecated.
since 5.2. Use
set(ConfluenceUser) instead. |
public static void set(@Nullable ConfluenceUser user)
@Deprecated public static void setUser(com.atlassian.user.User user)
set(ConfluenceUser) instead.@Nullable 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()
Copyright © 2003–2017 Atlassian. All rights reserved.