org.wso2.carbon.registry.social.api.people.userprofile.model
Interface Account


public interface Account

The Account interface describes the an account held by a person.


Nested Class Summary
static class Account.Field
          The fields that represent the account object in json form.
 
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.
 

Method Detail

getDomain

String getDomain()
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.

Returns:
the domain

setDomain

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. *

Parameters:
domain - the domain

getUserId

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

Returns:
the userId

setUserId

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

Parameters:
userId - the userId

getUsername

String getUsername()
An alphanumeric user name, usually chosen by the user, e.g. "jsmarr".

Returns:
the username

setUsername

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

Parameters:
username - the username


Copyright © 2012 WSO2 Inc. All Rights Reserved.