Activity.Field| Constructor and Description |
|---|
ActivityImpl() |
ActivityImpl(String id,
String userId) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAppId()
Get a string specifying the application that this activity is associated with.
|
String |
getBody()
Get a string specifying an optional expanded version of an activity.
|
String |
getBodyId()
Get a string specifying the body template message ID in the gadget spec.
|
String |
getExternalId()
Get an optional string ID generated by the posting application.
|
String |
getId()
Get a string ID that is permanently associated with this activity.
|
List<MediaItem> |
getMediaItems()
Get any photos, videos, or images that should be associated with the activity.
|
Long |
getPostedTime()
Get the time at which this activity took place in milliseconds since the epoch.
|
Float |
getPriority()
Get the priority, a number between 0 and 1 representing the relative priority of this activity
in relation to other activities from the same source.
|
String |
getStreamFaviconUrl()
Get a string specifying the URL for the stream's favicon.
|
String |
getStreamSourceUrl()
Get a string specifying the stream's source URL.
|
String |
getStreamTitle()
Get a string specifing the title of the stream.
|
String |
getStreamUrl()
Get a string specifying the stream's URL.
|
Map<String,String> |
getTemplateParams()
Get a map of custom key/value pairs associated with this activity.
|
String |
getTitle()
Get a string specifying the primary text of an activity.
|
String |
getTitleId()
Get a string specifying the title template message ID in the gadget spec.
|
Date |
getUpdated()
Get the last updated date of the Activity, additional to the Opensocial specification for the
REST-API.
|
String |
getUrl()
Get a string specifying the URL that represents this activity.
|
String |
getUserId()
Get a string ID of the user who this activity is for.
|
void |
setAppId(String appId)
Set a string specifying the application that this activity is associated with.
|
void |
setBody(String body)
Set a string specifying an optional expanded version of an activity.
|
void |
setBodyId(String bodyId)
Set a string specifying the body template message ID in the gadget spec.
|
void |
setExternalId(String externalId)
Set an optional string ID generated by the posting application.
|
void |
setId(String id)
Set a string ID that is permanently associated with this activity.
|
void |
setMediaItems(List<MediaItem> mediaItems)
Set any photos, videos, or images that should be associated with the activity.
|
void |
setPostedTime(Long postedTime)
Set the time at which this activity took place in milliseconds since the epoch Container
support for this field is OPTIONAL.
|
void |
setPriority(Float priority)
Set the priority, a number between 0 and 1 representing the relative priority of this activity
in relation to other activities from the same source.
|
void |
setStreamFaviconUrl(String streamFaviconUrl)
Set a string specifying the URL for the stream's favicon.
|
void |
setStreamSourceUrl(String streamSourceUrl)
Set a string specifying the stream's source URL.
|
void |
setStreamTitle(String streamTitle)
Set a string specifing the title of the stream.
|
void |
setStreamUrl(String streamUrl)
Set a string specifying the stream's URL.
|
void |
setTemplateParams(Map<String,String> templateParams)
Set a map of custom key/value pairs associated with this activity.
|
void |
setTitle(String title)
Set a string specifying the primary text of an activity.
|
void |
setTitleId(String titleId)
Set a string specifying the title template message ID in the gadget spec.
|
void |
setUpdated(Date updated)
.
|
void |
setUrl(String url)
Set a string specifying the URL that represents this activity.
|
void |
setUserId(String userId)
Get a string ID of the user who this activity is for.
|
public String getAppId()
Activitypublic void setAppId(String appId)
Activitypublic String getBody()
Activitypublic void setBody(String body)
Activitypublic String getBodyId()
Activitypublic void setBodyId(String bodyId)
Activitypublic String getExternalId()
ActivitygetExternalId in interface Activitypublic void setExternalId(String externalId)
ActivitysetExternalId in interface ActivityexternalId - An optional string ID generated by the posting application.public String getId()
Activitypublic void setId(String id)
Activitypublic Date getUpdated()
ActivitygetUpdated in interface Activitypublic void setUpdated(Date updated)
setUpdated in interface Activityupdated - the last updated datepublic List<MediaItem> getMediaItems()
ActivitygetMediaItems in interface ActivityMediaItem containing any photos, videos, or images that should be
associated with the activity.public void setMediaItems(List<MediaItem> mediaItems)
setMediaItems in interface ActivitymediaItems - a list of MediaItem to be associated with the activitypublic Long getPostedTime()
ActivitygetPostedTime in interface Activitypublic void setPostedTime(Long postedTime)
setPostedTime in interface ActivitypostedTime - the time at which this activity took place in milliseconds since the epochpublic Float getPriority()
ActivitygetPriority in interface Activitypublic void setPriority(Float priority)
setPriority in interface Activitypriority - a number between 0 and 1 representing the relative priority of this activity in
relation to other activities from the same source.public String getStreamFaviconUrl()
ActivitygetStreamFaviconUrl in interface Activitypublic void setStreamFaviconUrl(String streamFaviconUrl)
setStreamFaviconUrl in interface ActivitystreamFaviconUrl - a string specifying the URL for the stream's favicon.public String getStreamSourceUrl()
ActivitygetStreamSourceUrl in interface Activitypublic void setStreamSourceUrl(String streamSourceUrl)
setStreamSourceUrl in interface ActivitystreamSourceUrl - a string specifying the stream's source URL.public String getStreamTitle()
ActivitygetStreamTitle in interface Activitypublic void setStreamTitle(String streamTitle)
setStreamTitle in interface ActivitystreamTitle - a string specifing the title of the stream.public String getStreamUrl()
ActivitygetStreamUrl in interface Activitypublic void setStreamUrl(String streamUrl)
setStreamUrl in interface ActivitystreamUrl - a string specifying the stream's URL.public Map<String,String> getTemplateParams()
ActivitygetTemplateParams in interface Activitypublic void setTemplateParams(Map<String,String> templateParams)
Map. The object may be either a String or an Person. When
passing in a person with key PersonKey, can use the following replacement variables in the
template:
setTemplateParams in interface ActivitytemplateParams - a map of custom key/value pairs associated with this activity.public String getTitle()
Activitypublic void setTitle(String title)
public String getTitleId()
ActivitygetTitleId in interface Activitypublic void setTitleId(String titleId)
setTitleId in interface ActivitytitleId - a string specifying the title template message ID in the gadget spec.public String getUrl()
Activitypublic void setUrl(String url)
public String getUserId()
ActivityCopyright © 2007-2012. All Rights Reserved.