com.atlassian.gadgets.opensocial.model
Class Activity

java.lang.Object
  extended by com.atlassian.gadgets.opensocial.model.Activity

@Immutable
public final class Activity
extends Object

Represents an activity, such as the creation of a wiki page

Since:
2.0

Nested Class Summary
static class Activity.Builder
          A builder that facilitates construction of Activity objects.
static class Activity.Field
          Activity fields that can be loaded when retrieving an activity
 
Method Summary
 boolean equals(Object o)
           
 AppId getAppId()
          Get the app id this activity is associated with.
 String getBody()
          Get a body string specifying an optional expanded version of an activity.
 String getExternalId()
          Get an optional string ID generated by the posting application.
 ActivityId getId()
          Get the activity id that is permanently associated with this activity.
 List<MediaItem> getMediaItems()
          Get the media items 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.
 String getTitle()
          Get a string specifying the primary text of an activity.
 Date getUpdated()
          Get the last updated date of the activity.
 String getUrl()
          Get a string specifying the URL that represents this activity.
 PersonId getUserId()
          Get the id of the user who this activity is for.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getAppId

public AppId getAppId()
Get the app id this activity is associated with.

Returns:
the app id

getBody

public String getBody()
Get a body string specifying an optional expanded version of an activity.

Returns:
the body

getExternalId

public String getExternalId()
Get an optional string ID generated by the posting application.

Returns:
the external id

getId

public ActivityId getId()
Get the activity id that is permanently associated with this activity.

Returns:
the activity id

getUpdated

public Date getUpdated()
Get the last updated date of the activity.

Returns:
the updated date

getMediaItems

public List<MediaItem> getMediaItems()
Get the media items associated with the activity.

Returns:
an unmodifiable list of the media items associated with the activity

getPostedTime

public Long getPostedTime()
Get the time at which this activity took place in milliseconds since the epoch.

Returns:
the posted time

getPriority

public 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.

Returns:
the priority

getStreamFaviconUrl

public String getStreamFaviconUrl()
Get a string specifying the URL for the stream's favicon.

Returns:
the stream favicon URL

getStreamSourceUrl

public String getStreamSourceUrl()
Get a string specifying the stream's source URL.

Returns:
the stream source URL

getStreamTitle

public String getStreamTitle()
Get a string specifing the title of the stream.

Returns:
the stream title

getStreamUrl

public String getStreamUrl()
Get a string specifying the stream's URL.

Returns:
the stream URL

getTitle

public String getTitle()
Get a string specifying the primary text of an activity.

Returns:
the title

getUrl

public String getUrl()
Get a string specifying the URL that represents this activity.

Returns:
the url

getUserId

public PersonId getUserId()
Get the id of the user who this activity is for.

Returns:
the user id

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011 Atlassian. All Rights Reserved.