public class AccountInfo
extends java.lang.Object
Account
, for simple tabular displays.Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
fullName |
protected Account.Id |
id |
protected java.lang.String |
preferredEmail |
protected java.lang.String |
username |
Modifier | Constructor and Description |
---|---|
protected |
AccountInfo() |
|
AccountInfo(Account.Id id)
Create an 'Anonymous Coward' account info, when only the id is known.
|
|
AccountInfo(Account a)
Create an account description from a real data store record.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFullName() |
Account.Id |
getId() |
java.lang.String |
getPreferredEmail() |
java.lang.String |
getUsername() |
void |
setFullName(java.lang.String n) |
void |
setPreferredEmail(java.lang.String email) |
protected Account.Id id
protected java.lang.String fullName
protected java.lang.String preferredEmail
protected java.lang.String username
protected AccountInfo()
public AccountInfo(Account.Id id)
This constructor should only be a last-ditch effort, when the usual account lookup has failed and a stale account id has been discovered in the data store.
public AccountInfo(Account a)
a
- the data store record holding the specific account details.public Account.Id getId()
public void setFullName(java.lang.String n)
public java.lang.String getFullName()
public java.lang.String getPreferredEmail()
public void setPreferredEmail(java.lang.String email)
public java.lang.String getUsername()