Class ActivityStreamImpl
java.lang.Object
org.exoplatform.social.core.activity.model.ActivityStreamImpl
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptionfinal StringGets a string specifying the URL for the stream's favicon.final StringgetId()Gets stream Id (internal activityStorage).final StringGets the link to the UI endpoint of the stream in portal.final StringGets prettyId name.final StringgetTitle()Gets a human-readable name for this stream.final ActivityStream.TypegetType()Gets stream type, could be Type.USER or Type.SPACE.booleanisSpace()booleanisUser()final voidsetFaviconUrl(String sFaviconUrl) Sets a string specifying the URL for the stream's favicon.final voidSets stream Id (internal activityStorage).final voidsetPermaLink(String sPermaLink) Sets the link to the UI endpoint of the stream in portal.final voidsetPrettyId(String sPrettyId) Sets prettyId name.final voidSets a human-readable name for this stream.final voidSets type (could be "space" or "user").final voidsetType(ActivityStream.Type sType) Sets stream type.
-
Constructor Details
-
ActivityStreamImpl
public ActivityStreamImpl()
-
-
Method Details
-
setType
Sets type (could be "space" or "user").- Specified by:
setTypein interfaceActivityStream- Parameters:
name- the type name
-
getId
Gets stream Id (internal activityStorage).- Specified by:
getIdin interfaceActivityStream- Returns:
- stream uuid
-
setId
Sets stream Id (internal activityStorage).- Specified by:
setIdin interfaceActivityStream- Parameters:
uuid- the uuid of published-node
-
getPrettyId
Gets prettyId name. Can be: "root" or "space_abc".- Specified by:
getPrettyIdin interfaceActivityStream- Returns:
- pretty id
-
setPrettyId
Sets prettyId name.- Specified by:
setPrettyIdin interfaceActivityStream- Parameters:
sPrettyId- the prettyId name
-
getType
Gets stream type, could be Type.USER or Type.SPACE.- Specified by:
getTypein interfaceActivityStream- Returns:
- the Type of ActivityManager
-
setType
Sets stream type.- Specified by:
setTypein interfaceActivityStream- Parameters:
sType- the Type of ActivityManager
-
getFaviconUrl
Gets a string specifying the URL for the stream's favicon.- Specified by:
getFaviconUrlin interfaceActivityStream- Returns:
- the favicon Url
-
setFaviconUrl
Sets a string specifying the URL for the stream's favicon.- Specified by:
setFaviconUrlin interfaceActivityStream- Parameters:
sFaviconUrl- the favicon Url
-
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
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
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
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
-