Modifier and Type | Class and Description |
---|---|
static class |
User.Expansions |
Modifier and Type | Field and Description |
---|---|
static com.google.common.base.Predicate<User> |
isUserKnown
A predicate that filters out unknown users.
|
static com.google.common.base.Function<User,String> |
mapUserToUsername |
protected String |
username |
ANONYMOUS_USER_TYPE, KNOWN_USER_TYPE
Constructor and Description |
---|
User(Icon profilePicture,
String username)
Deprecated.
since 5.6. Use
User(Icon, String, String, UserKey) instead. |
User(Icon profilePicture,
String username,
String displayName,
String userKey) |
User(Icon profilePicture,
String username,
String displayName,
com.atlassian.sal.api.user.UserKey userKey) |
Modifier and Type | Method and Description |
---|---|
static User |
fromUserkey(com.atlassian.sal.api.user.UserKey key)
Creates a user object with only the userkey filled in, suitable for passing to services that accept a User object
|
static User |
fromUsername(String username)
Creates a user object with only the username filled in, suitable for passing to services that accept a User object
|
com.atlassian.fugue.Option<String> |
getOptionalUsername()
Deprecated.
since 7.0.1. Use
Person.optionalUsername() |
com.atlassian.fugue.Option<com.atlassian.sal.api.user.UserKey> |
getUserKey()
Deprecated.
since 7.0.1. Use
Person.optionalUserKey() |
String |
getUsername() |
String |
toString() |
getDisplayName, getProfilePicture, getSubjectType, optionalUserKey, optionalUsername
protected final String username
public static final com.google.common.base.Function<User,String> mapUserToUsername
public static final com.google.common.base.Predicate<User> isUserKnown
public User(Icon profilePicture, String username, String displayName, com.atlassian.sal.api.user.UserKey userKey)
@Deprecated public User(Icon profilePicture, String username)
User(Icon, String, String, UserKey)
instead.public String getUsername()
@Deprecated public com.atlassian.fugue.Option<String> getOptionalUsername()
Person.optionalUsername()
getOptionalUsername
in class Person
@Deprecated public com.atlassian.fugue.Option<com.atlassian.sal.api.user.UserKey> getUserKey()
Person.optionalUserKey()
getUserKey
in class Person
public static User fromUsername(String username)
public static User fromUserkey(com.atlassian.sal.api.user.UserKey key)
Copyright © 2003–2019 Atlassian. All rights reserved.