Class Activity

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

@Immutable public class Activity extends Object
Represents an activity, such as the creation of a wiki page
Since:
2.0
  • Method Details

    • 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