|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.crowd.util.UserUtils
public class UserUtils
General utility class for email related methods.
| Constructor Summary | |
|---|---|
UserUtils()
|
|
| Method Summary | |
|---|---|
static boolean |
isValidEmail(java.lang.String email)
Returns true if an email address is valid. |
static User |
populateNames(User user)
Ensures that the first name, last name and displayName of the user object is fully populated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UserUtils()
| Method Detail |
|---|
public static boolean isValidEmail(java.lang.String email)
email - potential email address.
public static User populateNames(User user)
| Original data | Populated data |
|---|---|
| ("jsmith", "John", "Smith", "John Smith") | ("jsmith", "John", "Smith", "John Smith") |
| ("jsmith", "", "", "John Smith") | ("jsmith", "John", "Smith", "John Smith") |
| ("jsmith", "John", "Smith", "") | ("jsmith", "John", "Smith", "John Smith") |
| ("jsmith", "", "", "") | ("jsmith", "", "jsmith", "jsmith") |
| ("jsmith", null, null, null) | ("jsmith", "", "jsmith", "jsmith") |
user - potentially partially populated user. The username
of the user cannot be blank.
getDisplayName(String, String, String, String),
getFirstName(String, String),
getLastName(String, String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||