|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.shindig.social.core.model.ActivityImpl
public class ActivityImpl
Default implementation of an Activity
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.shindig.social.opensocial.model.Activity |
|---|
Activity.Field |
| Constructor Summary | |
|---|---|
ActivityImpl()
|
|
ActivityImpl(java.lang.String id,
java.lang.String userId)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getAppId()
Get a string specifying the application that this activity is associated with. |
java.lang.String |
getBody()
Get a string specifying an optional expanded version of an activity. |
java.lang.String |
getBodyId()
Get a string specifying the body template message ID in the gadget spec. |
java.lang.String |
getExternalId()
Get an optional string ID generated by the posting application. |
java.lang.String |
getId()
Get a string ID that is permanently associated with this activity. |
java.util.List<MediaItem> |
getMediaItems()
Get any photos, videos, or images that should be associated with the activity. |
java.lang.Long |
getPostedTime()
Get the time at which this activity took place in milliseconds since the epoch. |
java.lang.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. |
java.lang.String |
getStreamFaviconUrl()
Get a string specifying the URL for the stream's favicon. |
java.lang.String |
getStreamSourceUrl()
Get a string specifying the stream's source URL. |
java.lang.String |
getStreamTitle()
Get a string specifing the title of the stream. |
java.lang.String |
getStreamUrl()
Get a string specifying the stream's URL. |
java.util.Map<java.lang.String,java.lang.String> |
getTemplateParams()
Get a map of custom key/value pairs associated with this activity. |
java.lang.String |
getTitle()
Get a string specifying the primary text of an activity. |
java.lang.String |
getTitleId()
Get a string specifying the title template message ID in the gadget spec. |
java.util.Date |
getUpdated()
Get the last updated date of the Activity, additional to the Opensocial specification for the REST-API. |
java.lang.String |
getUrl()
Get a string specifying the URL that represents this activity. |
java.lang.String |
getUserId()
Get a string ID of the user who this activity is for. |
void |
setAppId(java.lang.String appId)
Set a string specifying the application that this activity is associated with. |
void |
setBody(java.lang.String body)
Set a string specifying an optional expanded version of an activity. |
void |
setBodyId(java.lang.String bodyId)
Set a string specifying the body template message ID in the gadget spec. |
void |
setExternalId(java.lang.String externalId)
Set an optional string ID generated by the posting application. |
void |
setId(java.lang.String id)
Set a string ID that is permanently associated with this activity. |
void |
setMediaItems(java.util.List<MediaItem> mediaItems)
Set any photos, videos, or images that should be associated with the activity. |
void |
setPostedTime(java.lang.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(java.lang.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(java.lang.String streamFaviconUrl)
Set a string specifying the URL for the stream's favicon. |
void |
setStreamSourceUrl(java.lang.String streamSourceUrl)
Set a string specifying the stream's source URL. |
void |
setStreamTitle(java.lang.String streamTitle)
Set a string specifing the title of the stream. |
void |
setStreamUrl(java.lang.String streamUrl)
Set a string specifying the stream's URL. |
void |
setTemplateParams(java.util.Map<java.lang.String,java.lang.String> templateParams)
Set a map of custom key/value pairs associated with this activity. |
void |
setTitle(java.lang.String title)
Set a string specifying the primary text of an activity. |
void |
setTitleId(java.lang.String titleId)
Set a string specifying the title template message ID in the gadget spec. |
void |
setUpdated(java.util.Date updated)
. |
void |
setUrl(java.lang.String url)
Set a string specifying the URL that represents this activity. |
void |
setUserId(java.lang.String userId)
Get a string ID of the user who this activity is for. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ActivityImpl()
public ActivityImpl(java.lang.String id,
java.lang.String userId)
| Method Detail |
|---|
public java.lang.String getAppId()
Activity
getAppId in interface Activitypublic void setAppId(java.lang.String appId)
Activity
setAppId in interface ActivityappId - A string specifying the application that this activity is associated withpublic java.lang.String getBody()
Activity
getBody in interface Activitypublic void setBody(java.lang.String body)
Activity
setBody in interface Activitybody - a string specifying an optional expanded version of an activity.public java.lang.String getBodyId()
Activity
getBodyId in interface Activitypublic void setBodyId(java.lang.String bodyId)
Activity
setBodyId in interface ActivitybodyId - a string specifying the body template message ID in the gadget spec.public java.lang.String getExternalId()
Activity
getExternalId in interface Activitypublic void setExternalId(java.lang.String externalId)
Activity
setExternalId in interface ActivityexternalId - An optional string ID generated by the posting application.public java.lang.String getId()
Activity
getId in interface Activitypublic void setId(java.lang.String id)
Activity
setId in interface Activityid - a string ID that is permanently associated with this activity.public java.util.Date getUpdated()
Activity
getUpdated in interface Activitypublic void setUpdated(java.util.Date updated)
setUpdated in interface Activityupdated - the last updated datepublic java.util.List<MediaItem> getMediaItems()
Activity
getMediaItems in interface ActivityMediaItem containing any photos, videos, or images that should be
associated with the activity.public void setMediaItems(java.util.List<MediaItem> mediaItems)
setMediaItems in interface ActivitymediaItems - a list of MediaItem to be associated with the activitypublic java.lang.Long getPostedTime()
Activity
getPostedTime in interface Activitypublic void setPostedTime(java.lang.Long postedTime)
setPostedTime in interface ActivitypostedTime - the time at which this activity took place in milliseconds since the epochpublic java.lang.Float getPriority()
Activity
getPriority in interface Activitypublic void setPriority(java.lang.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 java.lang.String getStreamFaviconUrl()
Activity
getStreamFaviconUrl in interface Activitypublic void setStreamFaviconUrl(java.lang.String streamFaviconUrl)
setStreamFaviconUrl in interface ActivitystreamFaviconUrl - a string specifying the URL for the stream's favicon.public java.lang.String getStreamSourceUrl()
Activity
getStreamSourceUrl in interface Activitypublic void setStreamSourceUrl(java.lang.String streamSourceUrl)
setStreamSourceUrl in interface ActivitystreamSourceUrl - a string specifying the stream's source URL.public java.lang.String getStreamTitle()
Activity
getStreamTitle in interface Activitypublic void setStreamTitle(java.lang.String streamTitle)
setStreamTitle in interface ActivitystreamTitle - a string specifing the title of the stream.public java.lang.String getStreamUrl()
Activity
getStreamUrl in interface Activitypublic void setStreamUrl(java.lang.String streamUrl)
setStreamUrl in interface ActivitystreamUrl - a string specifying the stream's URL.public java.util.Map<java.lang.String,java.lang.String> getTemplateParams()
Activity
getTemplateParams in interface Activitypublic void setTemplateParams(java.util.Map<java.lang.String,java.lang.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 java.lang.String getTitle()
Activity
getTitle in interface Activitypublic void setTitle(java.lang.String title)
setTitle in interface Activitytitle - a string specifying the primary text of an activity.public java.lang.String getTitleId()
Activity
getTitleId in interface Activitypublic void setTitleId(java.lang.String titleId)
setTitleId in interface ActivitytitleId - a string specifying the title template message ID in the gadget spec.public java.lang.String getUrl()
Activity
getUrl in interface Activitypublic void setUrl(java.lang.String url)
setUrl in interface Activityurl - a string specifying the URL that represents this activity.public java.lang.String getUserId()
Activity
getUserId in interface Activitypublic void setUserId(java.lang.String userId)
setUserId in interface ActivityuserId - a string ID of the user who this activity is for.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||