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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.exoplatform.social.core.activity.model.ActivityStream
ActivityStream.Type
-
-
Field Summary
-
Fields inherited from interface org.exoplatform.social.core.activity.model.ActivityStream
ORGANIZATION_PROVIDER_ID, SPACE_PROVIDER_ID
-
-
Constructor Summary
Constructors Constructor Description ActivityStreamImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFaviconUrl()Gets a string specifying the URL for the stream's favicon.StringgetId()Gets stream Id (internal activityStorage).StringgetPermaLink()Gets the link to the UI endpoint of the stream in portal.StringgetPrettyId()Gets prettyId name.StringgetTitle()Gets a human-readable name for this stream.ActivityStream.TypegetType()Gets stream type, could be Type.USER or Type.SPACE.booleanisSpace()booleanisUser()voidsetFaviconUrl(String sFaviconUrl)Sets a string specifying the URL for the stream's favicon.voidsetId(String uuid)Sets stream Id (internal activityStorage).voidsetPermaLink(String sPermaLink)Sets the link to the UI endpoint of the stream in portal.voidsetPrettyId(String sPrettyId)Sets prettyId name.voidsetTitle(String sTitle)Sets a human-readable name for this stream.voidsetType(String name)Sets type (could be "space" or "user").voidsetType(ActivityStream.Type sType)Sets stream type.
-
-
-
Method Detail
-
setType
public final void setType(String name)
Sets type (could be "space" or "user").- Specified by:
setTypein interfaceActivityStream- Parameters:
name- the type name
-
getId
public final String getId()
Gets stream Id (internal activityStorage).- Specified by:
getIdin interfaceActivityStream- Returns:
- stream uuid
-
setId
public final void setId(String uuid)
Sets stream Id (internal activityStorage).- Specified by:
setIdin interfaceActivityStream- Parameters:
uuid- the uuid of published-node
-
getPrettyId
public final String getPrettyId()
Gets prettyId name. Can be: "root" or "space_abc".- Specified by:
getPrettyIdin interfaceActivityStream- Returns:
- pretty id
-
setPrettyId
public final void setPrettyId(String sPrettyId)
Sets prettyId name.- Specified by:
setPrettyIdin interfaceActivityStream- Parameters:
sPrettyId- the prettyId name
-
getType
public final ActivityStream.Type getType()
Gets stream type, could be Type.USER or Type.SPACE.- Specified by:
getTypein interfaceActivityStream- Returns:
- the Type of ActivityManager
-
setType
public final void setType(ActivityStream.Type sType)
Sets stream type.- Specified by:
setTypein interfaceActivityStream- Parameters:
sType- the Type of ActivityManager
-
getFaviconUrl
public final String getFaviconUrl()
Gets a string specifying the URL for the stream's favicon.- Specified by:
getFaviconUrlin interfaceActivityStream- Returns:
- the favicon Url
-
setFaviconUrl
public final void setFaviconUrl(String sFaviconUrl)
Sets a string specifying the URL for the stream's favicon.- Specified by:
setFaviconUrlin interfaceActivityStream- 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:
getTitlein interfaceActivityStream- 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:
setTitlein interfaceActivityStream- 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:
getPermaLinkin interfaceActivityStream- 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:
setPermaLinkin interfaceActivityStream- Parameters:
sPermaLink- the permanent link for this activity stream
-
isSpace
public boolean isSpace()
- Specified by:
isSpacein interfaceActivityStream- Returns:
- true if Stream is of Space type
-
isUser
public boolean isUser()
- Specified by:
isUserin interfaceActivityStream- Returns:
- true if Stream is of User type
-
-