public class UserData
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static UserData |
ANONYMOUS
Sentinel value representing an anonymous user (not logged in)
|
Constructor and Description |
---|
UserData() |
UserData(java.lang.String userName)
Use this constructor when you are passing a UserData when creating a entity, which requires only a key -- e.g.
|
UserData(java.lang.String userName,
java.lang.String displayName,
java.lang.String avatarUrl) |
UserData(java.lang.String userName,
java.lang.String displayName,
java.lang.String url,
java.lang.String avatarUrl) |
Modifier and Type | Method and Description |
---|---|
UserData |
clone() |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getAvatarUrl() |
java.lang.String |
getDisplayName() |
java.lang.String |
getUrl() |
java.lang.String |
getUserName() |
int |
hashCode() |
void |
setAvatarUrl(java.lang.String avatarUrl) |
void |
setDisplayName(java.lang.String displayName) |
void |
setUserName(java.lang.String userName) |
public static final UserData ANONYMOUS
public UserData()
public UserData(java.lang.String userName, java.lang.String displayName, java.lang.String avatarUrl)
public UserData(java.lang.String userName, java.lang.String displayName, java.lang.String url, java.lang.String avatarUrl)
public UserData(java.lang.String userName)
userName
- public UserData clone()
clone
in class java.lang.Object
public java.lang.String getUserName()
public void setUserName(java.lang.String userName)
public java.lang.String getDisplayName()
public void setDisplayName(java.lang.String displayName)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String getAvatarUrl()
public void setAvatarUrl(java.lang.String avatarUrl)
public java.lang.String getUrl()