public class UserBean extends Object
Constructor and Description |
---|
UserBean(String username)
Constructs a bean for a non-existing user
|
UserBean(String username,
String fullName)
Constructs a bean for an existing user
|
Modifier and Type | Method and Description |
---|---|
static List<UserBean> |
convertUsernamesToUserBeans(Locale userLocale,
Collection<String> usernames)
Converst a collection of usernames to an ordered list of user beans
|
static List<UserBean> |
convertUsersToUserBeans(Locale userLocale,
Collection<ApplicationUser> users)
Converts a collection of user objects to an oredered list of user beans.
|
String |
getFullName()
Returns user's full name if this bean represents an existing user, empty string otherwise
|
String |
getName()
Returns the username
|
boolean |
isReal()
Returns true if this bean represents an existing user, false otherwise
|
public UserBean(String username, String fullName)
username
- usernamefullName
- user's full namepublic UserBean(String username)
username
- usernamepublic static List<UserBean> convertUsernamesToUserBeans(Locale userLocale, Collection<String> usernames)
usernames
- a collection of usernamespublic static List<UserBean> convertUsersToUserBeans(Locale userLocale, Collection<ApplicationUser> users)
users
- collection of user objectspublic String getName()
public String getFullName()
public boolean isReal()
Copyright © 2002-2019 Atlassian. All Rights Reserved.