public class UserProfile extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static UserProfile |
EMPTY
Shared, empty profile that when used indicates no profile data is available (all property values are null).
|
Constructor and Description |
---|
UserProfile(String name,
String firstName,
String lastName,
String email,
String username)
Deprecated.
Use other constructor instead
|
UserProfile(String id,
String name,
String firstName,
String lastName,
String email,
String username)
Creates an instance of a UserProfile.
|
Modifier and Type | Method and Description |
---|---|
String |
getEmail()
The user's registered email address.
|
String |
getFirstName()
The user's registered first name e.g.
|
String |
getId()
The user's id in the provider
May be null if not exposed/supported by the provider.
|
String |
getLastName()
The user's registered last name e.g.
|
String |
getName()
The user's registered full name e.g.
|
String |
getUsername()
The user's registered username e.g.
|
public static final UserProfile EMPTY
@Deprecated public UserProfile(String name, String firstName, String lastName, String email, String username)
name
- The user's full namefirstName
- The user's first namelastName
- The user's last nameemail
- The user's email addressusername
- The user's usernamepublic UserProfile(String id, String name, String firstName, String lastName, String email, String username)
id
- The user IDname
- The user's full namefirstName
- The user's first namelastName
- The user's last nameemail
- The user's email addressusername
- The user's usernamepublic String getId()
public String getName()
public String getFirstName()
public String getLastName()
public String getEmail()
public String getUsername()