|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.web.component.multiuserpicker.UserBean
public class UserBean
A bean for pickertable.vm that is used for displaying the user info.
Field Summary | |
---|---|
static Comparator |
COMPARATOR
Compares to user beans by full name comparison first, then username. |
Constructor Summary | |
---|---|
UserBean(String username)
Constructs a bean for a non-existing user |
|
UserBean(String username,
String fullName)
Constructs a bean for an existing user |
Method Summary | |
---|---|
static List |
convertUsernamesToUserBeans(Collection usernames)
Converst a collection of usernames to an ordered list of user beans |
static List |
convertUsersToUserBeans(Collection 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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Comparator COMPARATOR
Constructor Detail |
---|
public UserBean(String username, String fullName)
username
- usernamefullName
- user's full namepublic UserBean(String username)
username
- usernameMethod Detail |
---|
public static List convertUsernamesToUserBeans(Collection usernames)
usernames
- a collection of usernames
public static List convertUsersToUserBeans(Collection users)
users
- collection of user objects
public String getName()
public String getFullName()
public boolean isReal()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |