|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.gadgets.opensocial.model.Person.Builder
public static final class Person.Builder
A builder that facilitates construction of Person objects. The final Person is returned by the
build method
| Constructor Summary | |
|---|---|
Person.Builder(Person person)
Create a builder initialized with the values from the specified person argument |
|
Person.Builder(PersonId personId)
Create a builder with the given the PersonId for the Person to be constructed |
|
| Method Summary | |
|---|---|
Person.Builder |
aboutMe(String aboutMe)
Sets the value of the "about me" string for the Person being constructed |
Person.Builder |
addresses(List<Address> addresses)
Set the list of addresses for the Person being constructed |
Person |
build()
Build the Person |
Person.Builder |
currentLocation(Address currentLocation)
Sets the current location for the person. |
Person.Builder |
dateOfBirth(Date date)
Sets the person's date of birth |
Person.Builder |
emailAddresses(List<EmailAddress> emailAddresses)
Sets the list of email addressees for the Person being constructed |
Person.Builder |
name(Name name)
Set the Name of the Person being constructed |
Person.Builder |
phoneNumbers(List<PhoneNumber> phoneNumbers)
Set the list of phone numbers for the Person being constructed |
Person.Builder |
profileUri(URI uri)
Set the profile URI of the Person being constructed |
Person.Builder |
status(String status)
Sets the value of the person's "status" text |
Person.Builder |
thumbnailUri(URI uri)
Set the thumbnail URI of the Person being constructed |
Person.Builder |
timeZone(int timeZone)
Sets the time zone offset for the person. |
Person.Builder |
urls(List<URI> urls)
Sets a list of interesting URLs for the person |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Person.Builder(Person person)
person - the person from which this builder's values should be initializedpublic Person.Builder(PersonId personId)
PersonId for the Person to be constructed
personId - the unique ID of the person being constructed| Method Detail |
|---|
public Person.Builder name(Name name)
Name of the Person being constructed
name - the full name of the person being constructed
public Person.Builder profileUri(URI uri)
Person being constructed
uri - the profile URI to set
public Person.Builder thumbnailUri(URI uri)
Person being constructed
uri - the thumbnail URI to set
public Person.Builder addresses(List<Address> addresses)
Person being constructed
addresses - the addresses to set
public Person.Builder phoneNumbers(List<PhoneNumber> phoneNumbers)
Person being constructed
phoneNumbers - the phone numbers to set
public Person.Builder emailAddresses(List<EmailAddress> emailAddresses)
Person being constructed
emailAddresses - the email addresses to set
public Person.Builder aboutMe(String aboutMe)
Person being constructed
aboutMe - the text to set for the "about me" blurb
public Person.Builder status(String status)
status - the text to set for the person's status
public Person.Builder dateOfBirth(Date date)
date - the date of birth
public Person.Builder timeZone(int timeZone)
timeZone - the time zone offset for the person.
public Person.Builder currentLocation(Address currentLocation)
currentLocation - the location to set, as an Address
public Person.Builder urls(List<URI> urls)
urls - the URLs for the person
public Person build()
Person
Person
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||