com.atlassian.gadgets.opensocial.model
Class Person

java.lang.Object
  extended by com.atlassian.gadgets.opensocial.model.Person

@Immutable
public final class Person
extends Object

Immutable container class encapsulating social data for a person. Person objects have a unique identifier, which is used for equality and hashing.

Since:
2.0

Nested Class Summary
static class Person.Builder
          A builder that facilitates construction of Person objects.
 
Method Summary
 boolean equals(Object obj)
           
 String getAboutMe()
          An "about me" blurb
 List<Address> getAddresses()
          A list of the person's addresses
 Address getCurrentLocation()
           
 Date getDateOfBirth()
           
 List<EmailAddress> getEmailAddresses()
           
 Name getName()
          The full name for this person
 PersonId getPersonId()
          A (unique) username/id for this person
 List<PhoneNumber> getPhoneNumbers()
           
 URI getProfileUrl()
           
 String getStatus()
           
 URI getThumbnailUrl()
           
 int getTimeZone()
           
 List<URI> getUrls()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getPersonId

public PersonId getPersonId()
A (unique) username/id for this person

Returns:
the unique username/id for this person

getName

public Name getName()
The full name for this person

Returns:
a Name representing the person's full name

getAboutMe

public String getAboutMe()
An "about me" blurb

Returns:
text displayed fro the "about me" section of the Person's profile

getAddresses

public List<Address> getAddresses()
A list of the person's addresses

Returns:
the person's addresses

getCurrentLocation

public Address getCurrentLocation()
Returns:
the person's current location, as an Address

getDateOfBirth

public Date getDateOfBirth()
Returns:
the person's date of birth

getEmailAddresses

public List<EmailAddress> getEmailAddresses()
Returns:
email addresses associated with the person

getPhoneNumbers

public List<PhoneNumber> getPhoneNumbers()
Returns:
a list of phone numbers associated with the person

getProfileUrl

public URI getProfileUrl()
Returns:
a url for the person's profile

getStatus

public String getStatus()
Returns:
the person's status text

getThumbnailUrl

public URI getThumbnailUrl()
Returns:
a url for the person's thumbnail

getTimeZone

public int getTimeZone()
Returns:
the timezone offset, specified as the number of minutes from GMT

getUrls

public List<URI> getUrls()
Returns:
a list of the person's interesting urls

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011 Atlassian. All Rights Reserved.