Class AccountInfo


  • public class AccountInfo
    extends Object
    Summary information about an Account, for simple tabular displays.
    • Constructor Detail

      • AccountInfo

        protected AccountInfo()
      • AccountInfo

        public AccountInfo​(Account.Id id)
        Create an 'Anonymous Coward' account info, when only the id is known.

        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.

      • AccountInfo

        public AccountInfo​(Account a)
        Create an account description from a real data store record.
        Parameters:
        a - the data store record holding the specific account details.
    • Method Detail

      • getId

        public Account.Id getId()
        Returns:
        the unique local id of the account
      • setFullName

        public void setFullName​(String n)
      • getFullName

        public String getFullName()
        Returns:
        the full name of the account holder; null if not supplied
      • getPreferredEmail

        public String getPreferredEmail()
        Returns:
        the email address of the account holder; null if not supplied
      • setPreferredEmail

        public void setPreferredEmail​(String email)
      • getUsername

        public String getUsername()
        Returns:
        the username of the account holder