org.brickred.socialauth
Class Contact

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

public class Contact
extends Object
implements Serializable

Data bean for contact information.

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

Constructor Summary
Contact()
           
 
Method Summary
 String getDisplayName()
          Retrieves the display name
 String getEmail()
          Returns the email address.
 String getEmailHash()
          Retrieves the email hash
 String getFirstName()
          Retrieves the first name
 String getId()
          Retrieves the contact person id
 String getLastName()
          Retrieves the last name
 String[] getOtherEmails()
          Retrieves the contact person emails
 String getProfileUrl()
          Retrieves the contact person Public profile URL
 void setDisplayName(String displayName)
          Updates the display name
 void setEmail(String email)
          Updates the email
 void setEmailHash(String emailHash)
          Updates the contact person email hash
 void setFirstName(String firstName)
          Updates the first name
 void setId(String id)
          Updates the contact person id
 void setLastName(String lastName)
          Updates the last name
 void setOtherEmails(String[] otherEmails)
           
 void setProfileUrl(String profileUrl)
          Updates the contact person Public profile URL
 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

Contact

public Contact()
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

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

getOtherEmails

public String[] getOtherEmails()
Retrieves the contact person emails

Returns:
String Array of emails

setOtherEmails

public void setOtherEmails(String[] otherEmails)
Parameters:
otherEmails - array of emails, if contact person has more than one email then it contains rest of the emails except first one

getProfileUrl

public String getProfileUrl()
Retrieves the contact person Public profile URL

Returns:
String contact person Public profile URL

setProfileUrl

public void setProfileUrl(String profileUrl)
Updates the contact person Public profile URL

Parameters:
profileUrl - contact person Public profile URL

getId

public String getId()
Retrieves the contact person id

Returns:
String contact person id

setId

public void setId(String id)
Updates the contact person id

Parameters:
id - contact person id

getEmailHash

public String getEmailHash()
Retrieves the email hash

Returns:
String contact person email hash

setEmailHash

public void setEmailHash(String emailHash)
Updates the contact person email hash

Parameters:
emailHash - contact person email hash

toString

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

Overrides:
toString in class Object
Returns:
String


Copyright © 2013. All Rights Reserved.