Package com.google.gerrit.entities
Class UserIdentity
- java.lang.Object
-
- com.google.gerrit.entities.UserIdentity
-
public final class UserIdentity extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected Account.Id
accountId
If the user has a Gerrit account, their account identity.protected String
email
Email address (or user@host style string anyway).protected String
name
Full name of the user.protected int
tz
Offset from UTCprotected String
username
Username of the user.protected Timestamp
when
Time (in UTC) when the identity was constructed.
-
Constructor Summary
Constructors Constructor Description UserIdentity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Account.Id
getAccount()
Timestamp
getDate()
String
getEmail()
String
getName()
int
getTimeZone()
String
getUsername()
void
setAccount(Account.Id id)
void
setDate(Timestamp d)
void
setEmail(String e)
void
setName(String n)
void
setTimeZone(int offset)
-
-
-
Field Detail
-
name
protected String name
Full name of the user.
-
email
protected String email
Email address (or user@host style string anyway).
-
username
protected String username
Username of the user.
-
when
protected Timestamp when
Time (in UTC) when the identity was constructed.
-
tz
protected int tz
Offset from UTC
-
accountId
protected Account.Id accountId
If the user has a Gerrit account, their account identity.
-
-
Method Detail
-
getName
public String getName()
-
setName
public void setName(String n)
-
getEmail
public String getEmail()
-
setEmail
public void setEmail(String e)
-
getUsername
public String getUsername()
-
getDate
public Timestamp getDate()
-
setDate
public void setDate(Timestamp d)
-
getTimeZone
public int getTimeZone()
-
setTimeZone
public void setTimeZone(int offset)
-
getAccount
public Account.Id getAccount()
-
setAccount
public void setAccount(Account.Id id)
-
-