Class Person.Builder
java.lang.Object
com.atlassian.gadgets.opensocial.model.Person.Builder
- Enclosing class:
- Person
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value of the "about me" string for thePersonbeing constructedSet the list of addresses for thePersonbeing constructedbuild()Build thePersoncurrentLocation(Address currentLocation) Sets the current location for the person.dateOfBirth(Date date) Sets the person's date of birthemailAddresses(List<EmailAddress> emailAddresses) Sets the list of email addressees for thePersonbeing constructedSet theNameof thePersonbeing constructedphoneNumbers(List<PhoneNumber> phoneNumbers) Set the list of phone numbers for thePersonbeing constructedprofileUri(URI uri) Set the profile URI of thePersonbeing constructedSets the value of the person's "status" textthumbnailUri(URI uri) Set the thumbnail URI of thePersonbeing constructedtimeZone(int timeZone) Sets the time zone offset for the person.Sets a list of interesting URLs for the person
-
Constructor Details
-
Builder
Create a builder initialized with the values from the specified person argument- Parameters:
person- the person from which this builder's values should be initialized
-
Builder
Create a builder with the given thePersonIdfor thePersonto be constructed- Parameters:
personId- the unique ID of the person being constructed
-
-
Method Details
-
name
Set theNameof thePersonbeing constructed- Parameters:
name- the full name of the person being constructed- Returns:
- the builder for futher construction
-
profileUri
Set the profile URI of thePersonbeing constructed- Parameters:
uri- the profile URI to set- Returns:
- the builder for further construction
-
thumbnailUri
Set the thumbnail URI of thePersonbeing constructed- Parameters:
uri- the thumbnail URI to set- Returns:
- the builder for further construction
-
addresses
Set the list of addresses for thePersonbeing constructed- Parameters:
addresses- the addresses to set- Returns:
- the builder for further construction
-
phoneNumbers
Set the list of phone numbers for thePersonbeing constructed- Parameters:
phoneNumbers- the phone numbers to set- Returns:
- the builder for further construction
-
emailAddresses
Sets the list of email addressees for thePersonbeing constructed- Parameters:
emailAddresses- the email addresses to set- Returns:
- the builder for further construction
-
aboutMe
Sets the value of the "about me" string for thePersonbeing constructed- Parameters:
aboutMe- the text to set for the "about me" blurb- Returns:
- the builder for further construction
-
status
Sets the value of the person's "status" text- Parameters:
status- the text to set for the person's status- Returns:
- the builder for further construction
-
dateOfBirth
Sets the person's date of birth- Parameters:
date- the date of birth- Returns:
- the builder for further construction
-
timeZone
Sets the time zone offset for the person. The offset is specified as the difference in minutes from GMT- Parameters:
timeZone- the time zone offset for the person.- Returns:
- the builder for further construction
-
currentLocation
Sets the current location for the person.- Parameters:
currentLocation- the location to set, as anAddress- Returns:
- the builder for further construction
-
urls
Sets a list of interesting URLs for the person- Parameters:
urls- the URLs for the person- Returns:
- the builder for further construction
-
build
Build thePerson- Returns:
- the constructed
Person
-