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

@Immutable public 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
  • Method Details

    • 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