org.brickred.socialauth
Class Profile

java.lang.Object
  extended by org.brickred.socialauth.Profile
All Implemented Interfaces:
Serializable

public class Profile
extends Object
implements Serializable

Data bean for profile information.

Author:
tarunn@brickred.com
See Also:
Serialized Form

Constructor Summary
Profile()
           
 
Method Summary
 String getCountry()
          Retrieves the country
 String getDisplayName()
          Retrieves the display name
 BirthDate getDob()
          Retrieves the date of birth
 String getEmail()
          Returns the email address.
 String getFirstName()
          Retrieves the first name
 String getFullName()
          Retrieves the full name
 String getGender()
          Retrieves the gender
 String getLanguage()
          Retrieves the language
 String getLastName()
          Retrieves the last name
 String getLocation()
          Retrieves the location
 String getProfileImageURL()
          Retrieves the profile image URL
 String getProviderId()
          Retrieves the provider id with this profile associates
 String getValidatedId()
          Retrieves the validated id
 void setCountry(String country)
          Updates the country
 void setDisplayName(String displayName)
          Updates the display name
 void setDob(BirthDate dob)
          Updates the date of birth
 void setEmail(String email)
          Updates the email
 void setFirstName(String firstName)
          Updates the first name
 void setFullName(String fullName)
          Updates the full name
 void setGender(String gender)
          Updates the gender
 void setLanguage(String language)
          Updates the language
 void setLastName(String lastName)
          Updates the last name
 void setLocation(String location)
          Updates the location
 void setProfileImageURL(String profileImageURL)
          Updates the profile image URL
 void setProviderId(String providerId)
          Updates the provider id
 void setValidatedId(String validatedId)
          Updates the validated id
 String toString()
          Retrieves the profile info as a string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Profile

public Profile()
Method Detail

getFirstName

public String getFirstName()
Retrieves the first name

Returns:
String the first name

setFirstName

public void setFirstName(String firstName)
Updates the first name

Parameters:
firstName - the first name of user

getLastName

public String getLastName()
Retrieves the last name

Returns:
String the last name

setLastName

public void setLastName(String lastName)
Updates the last name

Parameters:
lastName - the last name of user

getEmail

public String getEmail()
Returns the email address.

Returns:
email address of the user

setEmail

public void setEmail(String email)
Updates the email

Parameters:
email - the email of user

getValidatedId

public String getValidatedId()
Retrieves the validated id

Returns:
String the validated id

setValidatedId

public void setValidatedId(String validatedId)
Updates the validated id

Parameters:
validatedId - the validated id of user

getDisplayName

public String getDisplayName()
Retrieves the display name

Returns:
String the display name

setDisplayName

public void setDisplayName(String displayName)
Updates the display name

Parameters:
displayName - the display name of user

getCountry

public String getCountry()
Retrieves the country

Returns:
String the country

setCountry

public void setCountry(String country)
Updates the country

Parameters:
country - the country of user

getLanguage

public String getLanguage()
Retrieves the language

Returns:
String the language

setLanguage

public void setLanguage(String language)
Updates the language

Parameters:
language - the language of user

getFullName

public String getFullName()
Retrieves the full name

Returns:
String the full name

setFullName

public void setFullName(String fullName)
Updates the full name

Parameters:
fullName - the full name of user

getDob

public BirthDate getDob()
Retrieves the date of birth

Returns:
the date of birth different providers may use different formats

setDob

public void setDob(BirthDate dob)
Updates the date of birth

Parameters:
dob - the date of birth of user

getGender

public String getGender()
Retrieves the gender

Returns:
String the gender - could be "Male", "M" or "male"

setGender

public void setGender(String gender)
Updates the gender

Parameters:
gender - the gender of user

getLocation

public String getLocation()
Retrieves the location

Returns:
String the location

setLocation

public void setLocation(String location)
Updates the location

Parameters:
location - the location of user

getProfileImageURL

public String getProfileImageURL()
Retrieves the profile image URL

Returns:
String the profileImageURL

setProfileImageURL

public void setProfileImageURL(String profileImageURL)
Updates the profile image URL

Parameters:
profileImageURL - profile image URL of user

getProviderId

public String getProviderId()
Retrieves the provider id with this profile associates

Returns:
the provider id

setProviderId

public void setProviderId(String providerId)
Updates the provider id

Parameters:
providerId - the provider id

toString

public String toString()
Retrieves the profile info as a string

Overrides:
toString in class Object
Returns:
String


Copyright © 2013. All Rights Reserved.