Class Activity
java.lang.Object
com.atlassian.gadgets.opensocial.model.Activity
Represents an activity, such as the creation of a wiki page
- Since:
- 2.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder that facilitates construction ofActivityobjects.static enumActivity fields that can be loaded when retrieving an activity -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAppId()Get the app id this activity is associated with.getBody()Get a body string specifying an optional expanded version of an activity.Get an optional string ID generated by the posting application.getId()Get the activity id that is permanently associated with this activity.Get the media items associated with the activity.Get the time at which this activity took place in milliseconds since the epoch.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.Get a string specifying the URL for the stream's favicon.Get a string specifying the stream's source URL.Get a string specifing the title of the stream.Get a string specifying the stream's URL.getTitle()Get a string specifying the primary text of an activity.Get the last updated date of the activity.getUrl()Get a string specifying the URL that represents this activity.Get the id of the user who this activity is for.inthashCode()toString()
-
Method Details
-
getAppId
Get the app id this activity is associated with.- Returns:
- the app id
-
getBody
Get a body string specifying an optional expanded version of an activity.- Returns:
- the body
-
getExternalId
Get an optional string ID generated by the posting application.- Returns:
- the external id
-
getId
Get the activity id that is permanently associated with this activity.- Returns:
- the activity id
-
getUpdated
Get the last updated date of the activity.- Returns:
- the updated date
-
getMediaItems
Get the media items associated with the activity.- Returns:
- an unmodifiable list of the media items associated with the activity
-
getPostedTime
Get the time at which this activity took place in milliseconds since the epoch.- Returns:
- the posted time
-
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.- Returns:
- the priority
-
getStreamFaviconUrl
Get a string specifying the URL for the stream's favicon.- Returns:
- the stream favicon URL
-
getStreamSourceUrl
Get a string specifying the stream's source URL.- Returns:
- the stream source URL
-
getStreamTitle
Get a string specifing the title of the stream.- Returns:
- the stream title
-
getStreamUrl
Get a string specifying the stream's URL.- Returns:
- the stream URL
-
getTitle
Get a string specifying the primary text of an activity.- Returns:
- the title
-
getUrl
Get a string specifying the URL that represents this activity.- Returns:
- the url
-
getUserId
Get the id of the user who this activity is for.- Returns:
- the user id
-
equals
-
hashCode
public int hashCode() -
toString
-