|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.gadgets.opensocial.model.Activity.Builder
public static class Activity.Builder
A builder that facilitates construction of Activity
objects. The final Activity
is created by calling the build()
method
Constructor Summary | |
---|---|
Activity.Builder(Activity activity)
Create a new Activity.Builder with the same field values as the passed in Activity |
|
Activity.Builder(String title)
Create a new Activity.Builder that can be used to create an Activity |
Method Summary | |
---|---|
Activity.Builder |
appId(AppId appId)
Set the application (gadget type) id of the Activity under construction and return this Builder
to allow further construction to be done. |
Activity.Builder |
body(String body)
Set the body of the Activity under construction and return this Builder
to allow further construction to be done. |
Activity |
build()
Returns the final constructed Activity |
Activity.Builder |
externalId(String externalId)
Set the externalId of the Activity under construction and return this Builder
to allow further construction to be done. |
Activity.Builder |
id(ActivityId id)
Set the id of the Activity under construction and return this Builder
to allow further construction to be done. |
Activity.Builder |
mediaItems(List<MediaItem> mediaItems)
Set the mediaItems associated with the Activity under construction and return this Builder
to allow further construction to be done. |
Activity.Builder |
postedTime(Long postedTime)
Set the postedTime of the Activity under construction and return this Builder
to allow further construction to be done. |
Activity.Builder |
priority(Float priority)
Set the priority of the Activity under construction and return this Builder
to allow further construction to be done. |
Activity.Builder |
streamFaviconUrl(String streamFaviconUrl)
Set the streamFaviconUrl of the Activity under construction and return this Builder
to allow further construction to be done. |
Activity.Builder |
streamSourceUrl(String streamSourceUrl)
Set the streamSourceUrl of the Activity under construction and return this Builder
to allow further construction to be done. |
Activity.Builder |
streamTitle(String streamTitle)
Set the streamTitle of the Activity under construction and return this Builder
to allow further construction to be done. |
Activity.Builder |
streamUrl(String streamUrl)
Set the streamUrl of the Activity under construction and return this Builder
to allow further construction to be done. |
Activity.Builder |
updated(Date updated)
Set the updated date of the Activity under construction and return this Builder
to allow further construction to be done. |
Activity.Builder |
url(String url)
Set the url of the Activity under construction and return this Builder
to allow further construction to be done. |
Activity.Builder |
userId(PersonId userId)
Set the user id of the Activity under construction and return this Builder
to allow further construction to be done. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Activity.Builder(Activity activity)
Activity.Builder
with the same field values as the passed in Activity
activity
- the activity whose fields should be copiedpublic Activity.Builder(String title)
Activity.Builder
that can be used to create an Activity
title
- the title of the Activity
under constructionMethod Detail |
---|
public Activity.Builder appId(AppId appId)
Activity
under construction and return this Builder
to allow further construction to be done.
appId
- the application id to use for the Activity
public Activity.Builder body(String body)
Activity
under construction and return this Builder
to allow further construction to be done.
body
- the body to use for the Activity
public Activity.Builder externalId(String externalId)
Activity
under construction and return this Builder
to allow further construction to be done.
externalId
- the externalId to use for the Activity
public Activity.Builder id(ActivityId id)
Activity
under construction and return this Builder
to allow further construction to be done.
id
- the id to use for the Activity
public Activity.Builder updated(Date updated)
Activity
under construction and return this Builder
to allow further construction to be done.
updated
- the updated date to use for the Activity
public Activity.Builder mediaItems(List<MediaItem> mediaItems)
Activity
under construction and return this Builder
to allow further construction to be done.
mediaItems
- the media items to use for the Activity
public Activity.Builder postedTime(Long postedTime)
Activity
under construction and return this Builder
to allow further construction to be done.
postedTime
- the postedTime to use for the Activity
public Activity.Builder priority(Float priority)
Activity
under construction and return this Builder
to allow further construction to be done.
priority
- the priority to use for the Activity
public Activity.Builder streamFaviconUrl(String streamFaviconUrl)
Activity
under construction and return this Builder
to allow further construction to be done.
streamFaviconUrl
- the streamFaviconUrl to use for the Activity
public Activity.Builder streamSourceUrl(String streamSourceUrl)
Activity
under construction and return this Builder
to allow further construction to be done.
streamSourceUrl
- the streamSourceUrl to use for the Activity
public Activity.Builder streamTitle(String streamTitle)
Activity
under construction and return this Builder
to allow further construction to be done.
streamTitle
- the streamTitle to use for the Activity
public Activity.Builder streamUrl(String streamUrl)
Activity
under construction and return this Builder
to allow further construction to be done.
streamUrl
- the streamUrl to use for the Activity
public Activity.Builder url(String url)
Activity
under construction and return this Builder
to allow further construction to be done.
url
- the url to use for the Activity
public Activity.Builder userId(PersonId userId)
Activity
under construction and return this Builder
to allow further construction to be done.
userId
- the user id to use for the Activity
public Activity build()
Activity
Activity
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |