Class Activity.Builder
java.lang.Object
com.atlassian.gadgets.opensocial.model.Activity.Builder
- Enclosing class:
- Activity
A builder that facilitates construction of
Activity objects. The final Activity
is created by calling the build() method-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSet the application (gadget type) id of theActivityunder construction and return thisBuilderto allow further construction to be done.Set the body of theActivityunder construction and return thisBuilderto allow further construction to be done.build()Returns the final constructedActivityexternalId(String externalId) Set the externalId of theActivityunder construction and return thisBuilderto allow further construction to be done.id(ActivityId id) Set the id of theActivityunder construction and return thisBuilderto allow further construction to be done.mediaItems(List<MediaItem> mediaItems) Set the mediaItems associated with theActivityunder construction and return thisBuilderto allow further construction to be done.postedTime(Long postedTime) Set the postedTime of theActivityunder construction and return thisBuilderto allow further construction to be done.Set the priority of theActivityunder construction and return thisBuilderto allow further construction to be done.streamFaviconUrl(String streamFaviconUrl) Set the streamFaviconUrl of theActivityunder construction and return thisBuilderto allow further construction to be done.streamSourceUrl(String streamSourceUrl) Set the streamSourceUrl of theActivityunder construction and return thisBuilderto allow further construction to be done.streamTitle(String streamTitle) Set the streamTitle of theActivityunder construction and return thisBuilderto allow further construction to be done.Set the streamUrl of theActivityunder construction and return thisBuilderto allow further construction to be done.Set the updated date of theActivityunder construction and return thisBuilderto allow further construction to be done.Set the url of theActivityunder construction and return thisBuilderto allow further construction to be done.Set the user id of theActivityunder construction and return thisBuilderto allow further construction to be done.
-
Constructor Details
-
Builder
Create a newActivity.Builderwith the same field values as the passed inActivity- Parameters:
activity- the activity whose fields should be copied
-
Builder
Create a newActivity.Builderthat can be used to create anActivity- Parameters:
title- the title of theActivityunder construction
-
-
Method Details
-
appId
Set the application (gadget type) id of theActivityunder construction and return thisBuilderto allow further construction to be done.- Parameters:
appId- the application id to use for theActivity- Returns:
- this builder to allow for further construction
-
body
Set the body of theActivityunder construction and return thisBuilderto allow further construction to be done.- Parameters:
body- the body to use for theActivity- Returns:
- this builder to allow for further construction
-
externalId
Set the externalId of theActivityunder construction and return thisBuilderto allow further construction to be done.- Parameters:
externalId- the externalId to use for theActivity- Returns:
- this builder to allow for further construction
-
id
Set the id of theActivityunder construction and return thisBuilderto allow further construction to be done.- Parameters:
id- the id to use for theActivity- Returns:
- this builder to allow for further construction
-
updated
Set the updated date of theActivityunder construction and return thisBuilderto allow further construction to be done.- Parameters:
updated- the updated date to use for theActivity- Returns:
- this builder to allow for further construction
-
mediaItems
Set the mediaItems associated with theActivityunder construction and return thisBuilderto allow further construction to be done.- Parameters:
mediaItems- the media items to use for theActivity- Returns:
- this builder to allow for further construction
-
postedTime
Set the postedTime of theActivityunder construction and return thisBuilderto allow further construction to be done.- Parameters:
postedTime- the postedTime to use for theActivity- Returns:
- this builder to allow for further construction
-
priority
Set the priority of theActivityunder construction and return thisBuilderto allow further construction to be done.- Parameters:
priority- the priority to use for theActivity- Returns:
- this builder to allow for further construction
-
streamFaviconUrl
Set the streamFaviconUrl of theActivityunder construction and return thisBuilderto allow further construction to be done.- Parameters:
streamFaviconUrl- the streamFaviconUrl to use for theActivity- Returns:
- this builder to allow for further construction
-
streamSourceUrl
Set the streamSourceUrl of theActivityunder construction and return thisBuilderto allow further construction to be done.- Parameters:
streamSourceUrl- the streamSourceUrl to use for theActivity- Returns:
- this builder to allow for further construction
-
streamTitle
Set the streamTitle of theActivityunder construction and return thisBuilderto allow further construction to be done.- Parameters:
streamTitle- the streamTitle to use for theActivity- Returns:
- this builder to allow for further construction
-
streamUrl
Set the streamUrl of theActivityunder construction and return thisBuilderto allow further construction to be done.- Parameters:
streamUrl- the streamUrl to use for theActivity- Returns:
- this builder to allow for further construction
-
url
Set the url of theActivityunder construction and return thisBuilderto allow further construction to be done.- Parameters:
url- the url to use for theActivity- Returns:
- this builder to allow for further construction
-
userId
Set the user id of theActivityunder construction and return thisBuilderto allow further construction to be done.- Parameters:
userId- the user id to use for theActivity- Returns:
- this builder to allow for further construction
-
build
Returns the final constructedActivity- Returns:
- the
Activity
-