public class FindUserHelper extends Object
Find all usages of this class and you will find all the places that 'transitional hackyness' is taking place.
Constructor and Description |
---|
FindUserHelper() |
Modifier and Type | Method and Description |
---|---|
static ConfluenceUser |
getUser(@Nullable com.atlassian.user.User user) |
static ConfluenceUser |
getUserByUserKey(com.atlassian.sal.api.user.UserKey userKey)
Get a user by
UserKey |
static @Nullable ConfluenceUser |
getUserByUsername(@Nullable String username)
Get a user by username.
|
static com.google.common.cache.LoadingCache<com.atlassian.sal.api.user.UserKey,com.atlassian.fugue.Option<ConfluenceUser>> |
getUsersByKey()
Deprecated.
since 7.0.1. Use
getUserByUserKey(UserKey) |
static com.google.common.cache.LoadingCache<String,com.atlassian.fugue.Option<ConfluenceUser>> |
getUsersByUsername()
Deprecated.
since 7.0.1. Use
getUserByUsername(String) |
public static @Nullable ConfluenceUser getUserByUsername(@Nullable String username)
username
- the username of the user requiredpublic static ConfluenceUser getUserByUserKey(com.atlassian.sal.api.user.UserKey userKey)
UserKey
userKey
- IllegalArgumentException
- if no user can be found for the keypublic static ConfluenceUser getUser(@Nullable com.atlassian.user.User user)
@Deprecated public static com.google.common.cache.LoadingCache<com.atlassian.sal.api.user.UserKey,com.atlassian.fugue.Option<ConfluenceUser>> getUsersByKey()
getUserByUserKey(UserKey)
This method should only be used in backwards-compatibility code.
@Deprecated public static com.google.common.cache.LoadingCache<String,com.atlassian.fugue.Option<ConfluenceUser>> getUsersByUsername()
getUserByUsername(String)
This method should only be used in backwards-compatibility code.
Copyright © 2003–2021 Atlassian. All rights reserved.