public class AuthenticatedUserThreadLocal extends Object
Constructor and Description |
---|
AuthenticatedUserThreadLocal() |
Modifier and Type | Method and Description |
---|---|
static AutoCloseable |
asUser(ConfluenceUser user) |
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. |
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()
public static AutoCloseable asUser(ConfluenceUser user)
Copyright © 2003–2021 Atlassian. All rights reserved.