Class ActivityStreamImpl

java.lang.Object
org.exoplatform.social.core.activity.model.ActivityStreamImpl
All Implemented Interfaces:
ActivityStream

public class ActivityStreamImpl extends Object implements ActivityStream
ActivityStream implementation.
  • Constructor Details

    • ActivityStreamImpl

      public ActivityStreamImpl()
  • Method Details

    • setType

      public final void setType(String name)
      Sets type (could be "space" or "user").
      Specified by:
      setType in interface ActivityStream
      Parameters:
      name - the type name
    • getId

      public final String getId()
      Gets stream Id (internal activityStorage).
      Specified by:
      getId in interface ActivityStream
      Returns:
      stream uuid
    • setId

      public final void setId(String uuid)
      Sets stream Id (internal activityStorage).
      Specified by:
      setId in interface ActivityStream
      Parameters:
      uuid - the uuid of published-node
    • getPrettyId

      public final String getPrettyId()
      Gets prettyId name. Can be: "root" or "space_abc".
      Specified by:
      getPrettyId in interface ActivityStream
      Returns:
      pretty id
    • setPrettyId

      public final void setPrettyId(String sPrettyId)
      Sets prettyId name.
      Specified by:
      setPrettyId in interface ActivityStream
      Parameters:
      sPrettyId - the prettyId name
    • getType

      public final ActivityStream.Type getType()
      Gets stream type, could be Type.USER or Type.SPACE.
      Specified by:
      getType in interface ActivityStream
      Returns:
      the Type of ActivityManager
    • setType

      public final void setType(ActivityStream.Type sType)
      Sets stream type.
      Specified by:
      setType in interface ActivityStream
      Parameters:
      sType - the Type of ActivityManager
    • getFaviconUrl

      public final String getFaviconUrl()
      Gets a string specifying the URL for the stream's favicon.
      Specified by:
      getFaviconUrl in interface ActivityStream
      Returns:
      the favicon Url
    • setFaviconUrl

      public final void setFaviconUrl(String sFaviconUrl)
      Sets a string specifying the URL for the stream's favicon.
      Specified by:
      setFaviconUrl in interface ActivityStream
      Parameters:
      sFaviconUrl - the favicon Url
    • getTitle

      public final String getTitle()
      Gets a human-readable name for this stream. This property MAY be null if the stream has no title or name.
      Specified by:
      getTitle in interface ActivityStream
      Returns:
      the stream's title
    • setTitle

      public final void setTitle(String sTitle)
      Sets a human-readable name for this stream. This property MAY be null if the stream has no title or name.
      Specified by:
      setTitle in interface ActivityStream
      Parameters:
      sTitle - the stream title
    • getPermaLink

      public final String getPermaLink()
      Gets the link to the UI endpoint of the stream in portal.
      A string specifying the stream's URL
      Specified by:
      getPermaLink in interface ActivityStream
      Returns:
      the permanent link for this activity stream
    • setPermaLink

      public final void setPermaLink(String sPermaLink)
      Sets the link to the UI endpoint of the stream in portal.
      A string specifying the stream's URL
      Specified by:
      setPermaLink in interface ActivityStream
      Parameters:
      sPermaLink - the permanent link for this activity stream
    • isSpace

      public boolean isSpace()
      Specified by:
      isSpace in interface ActivityStream
      Returns:
      true if Stream is of Space type
    • isUser

      public boolean isUser()
      Specified by:
      isUser in interface ActivityStream
      Returns:
      true if Stream is of User type