public class

UserBean

extends Object
java.lang.Object
   ↳ com.atlassian.jira.web.component.multiuserpicker.UserBean

Class Overview

A bean for pickertable.vm that is used for displaying the user info.

Summary

Public Constructors
UserBean(String username, String fullName)
Constructs a bean for an existing user
UserBean(String username)
Constructs a bean for a non-existing user
Public Methods
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<User> 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
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public UserBean (String username, String fullName)

Constructs a bean for an existing user

Parameters
username username
fullName user's full name

public UserBean (String username)

Constructs a bean for a non-existing user

Parameters
username username

Public Methods

public static List<UserBean> convertUsernamesToUserBeans (Locale userLocale, Collection<String> usernames)

Converst a collection of usernames to an ordered list of user beans

Parameters
usernames a collection of usernames
Returns
  • a list of user beans, never null

public static List<UserBean> convertUsersToUserBeans (Locale userLocale, Collection<User> users)

Converts a collection of user objects to an oredered list of user beans.

Parameters
users collection of user objects
Returns
  • list of user beans, never null

public String getFullName ()

Returns user's full name if this bean represents an existing user, empty string otherwise

Returns
  • user's full name if this bean represents an existing user, empty string otherwise

public String getName ()

Returns the username

Returns
  • username

public boolean isReal ()

Returns true if this bean represents an existing user, false otherwise

Returns
  • true if this bean represents an existing user, false otherwise