org.apache.shindig.social.core.model
Class AccountImpl

java.lang.Object
  extended by org.apache.shindig.social.core.model.AccountImpl
All Implemented Interfaces:
Account

public class AccountImpl
extends Object
implements Account

Default Implementation of an Account


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.shindig.social.opensocial.model.Account
Account.Field
 
Constructor Summary
AccountImpl()
           
AccountImpl(String domain, String userId, String username)
           
 
Method Summary
 String getDomain()
          The top-most authoritative domain for this account, e.g.
 String getUserId()
          A user ID number, usually chosen automatically, and usually numeric but sometimes alphanumeric, e.g.
 String getUsername()
          An alphanumeric user name, usually chosen by the user, e.g.
 void setDomain(String domain)
          The top-most authoritative domain for this account, e.g.
 void setUserId(String userId)
          A user ID number, usually chosen automatically, and usually numeric but sometimes alphanumeric, e.g.
 void setUsername(String username)
          An alphanumeric user name, usually chosen by the user, e.g.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccountImpl

public AccountImpl()

AccountImpl

public AccountImpl(String domain,
                   String userId,
                   String username)
Method Detail

getDomain

public String getDomain()
Description copied from interface: Account
The top-most authoritative domain for this account, e.g. "twitter.com". This is the Primary Sub-Field for this field, for the purposes of sorting and filtering.

Specified by:
getDomain in interface Account
Returns:
the domain

setDomain

public void setDomain(String domain)
The top-most authoritative domain for this account, e.g. "twitter.com". This is the Primary Sub-Field for this field, for the purposes of sorting and filtering. *

Specified by:
setDomain in interface Account
Parameters:
domain - the domain

getUserId

public String getUserId()
Description copied from interface: Account
A user ID number, usually chosen automatically, and usually numeric but sometimes alphanumeric, e.g. "12345" or "1Z425A".

Specified by:
getUserId in interface Account
Returns:
the userId

setUserId

public void setUserId(String userId)
A user ID number, usually chosen automatically, and usually numeric but sometimes alphanumeric, e.g. "12345" or "1Z425A".

Specified by:
setUserId in interface Account
Parameters:
userId - the userId

getUsername

public String getUsername()
Description copied from interface: Account
An alphanumeric user name, usually chosen by the user, e.g. "jsmarr".

Specified by:
getUsername in interface Account
Returns:
the username

setUsername

public void setUsername(String username)
An alphanumeric user name, usually chosen by the user, e.g. "jsmarr".

Specified by:
setUsername in interface Account
Parameters:
username - the username


Copyright © 2007-2012. All Rights Reserved.