|
||||||||||
| 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(String id,
String userId)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ActivityImpl()
public ActivityImpl(String id,
String userId)
| Method Detail |
|---|
public String getAppId()
Activity
getAppId in interface Activitypublic void setAppId(String appId)
Activity
setAppId in interface ActivityappId - A string specifying the application that this activity is associated withpublic String getBody()
Activity
getBody in interface Activitypublic void setBody(String body)
Activity
setBody in interface Activitybody - a string specifying an optional expanded version of an activity.public String getBodyId()
Activity
getBodyId in interface Activitypublic void setBodyId(String bodyId)
Activity
setBodyId in interface ActivitybodyId - a string specifying the body template message ID in the gadget spec.public String getExternalId()
Activity
getExternalId in interface Activitypublic void setExternalId(String externalId)
Activity
setExternalId in interface ActivityexternalId - An optional string ID generated by the posting application.public String getId()
Activity
getId in interface Activitypublic void setId(String id)
Activity
setId in interface Activityid - a string ID that is permanently associated with this activity.public Date getUpdated()
Activity
getUpdated in interface Activitypublic void setUpdated(Date updated)
setUpdated in interface Activityupdated - the last updated datepublic List<MediaItem> getMediaItems()
Activity
getMediaItems 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()
Activity
getPostedTime 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()
Activity
getPriority 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()
Activity
getStreamFaviconUrl in interface Activitypublic void setStreamFaviconUrl(String streamFaviconUrl)
setStreamFaviconUrl in interface ActivitystreamFaviconUrl - a string specifying the URL for the stream's favicon.public String getStreamSourceUrl()
Activity
getStreamSourceUrl in interface Activitypublic void setStreamSourceUrl(String streamSourceUrl)
setStreamSourceUrl in interface ActivitystreamSourceUrl - a string specifying the stream's source URL.public String getStreamTitle()
Activity
getStreamTitle in interface Activitypublic void setStreamTitle(String streamTitle)
setStreamTitle in interface ActivitystreamTitle - a string specifing the title of the stream.public String getStreamUrl()
Activity
getStreamUrl in interface Activitypublic void setStreamUrl(String streamUrl)
setStreamUrl in interface ActivitystreamUrl - a string specifying the stream's URL.public Map<String,String> getTemplateParams()
Activity
getTemplateParams 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()
Activity
getTitle in interface Activitypublic void setTitle(String title)
setTitle in interface Activitytitle - a string specifying the primary text of an activity.public String getTitleId()
Activity
getTitleId 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()
Activity
getUrl in interface Activitypublic void setUrl(String url)
setUrl in interface Activityurl - a string specifying the URL that represents this activity.public String getUserId()
Activity
getUserId in interface Activitypublic void setUserId(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 | |||||||||