Interface ActivityStream
- All Known Implementing Classes:
ActivityStreamImpl
public interface ActivityStream
Use this class to know the stream context and its information. As defined in
http://activitystrea.ms/
- Since:
- Nov 10, 2010
- Author:
- hoatle (hoatlevan at gmail dot com)
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumThe type of activity stream, can be user or space. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionGets a string specifying the URL for the stream's favicon.getId()Gets stream Id (internal activityStorage).Gets the link to the UI endpoint of the stream in portal.Gets prettyId name.getTitle()Gets a human-readable name for this stream.getType()Gets stream type, could be Type.USER or Type.SPACE.booleanisSpace()booleanisUser()voidsetFaviconUrl(String faviconUrl) Sets a string specifying the URL for the stream's favicon.voidSets stream Id (internal activityStorage).voidsetPermaLink(String permaLink) Sets the link to the UI endpoint of the stream in portal.voidsetPrettyId(String prettyId) Sets prettyId name.voidSets a human-readable name for this stream.voidSets type (could be "space" or "user").voidsetType(ActivityStream.Type type) Sets stream type.
-
Field Details
-
ORGANIZATION_PROVIDER_ID
- See Also:
-
SPACE_PROVIDER_ID
- See Also:
-
-
Method Details
-
setType
Sets type (could be "space" or "user").- Parameters:
name- the type name
-
getId
String getId()Gets stream Id (internal activityStorage).- Returns:
- stream uuid
-
setId
Sets stream Id (internal activityStorage).- Parameters:
id- the uuid of published-node
-
getPrettyId
String getPrettyId()Gets prettyId name. Can be: "root" or "space_abc".- Returns:
- pretty id
-
setPrettyId
Sets prettyId name.- Parameters:
prettyId- the prettyId name
-
getType
ActivityStream.Type getType()Gets stream type, could be Type.USER or Type.SPACE.- Returns:
- the Type of ActivityManager
-
setType
Sets stream type.- Parameters:
type- the Type of ActivityManager
-
getFaviconUrl
String getFaviconUrl()Gets a string specifying the URL for the stream's favicon.- Returns:
- the favicon Url
-
setFaviconUrl
Sets a string specifying the URL for the stream's favicon.- Parameters:
faviconUrl- the favicon Url
-
getTitle
String getTitle()Gets a human-readable name for this stream. This property MAY be null if the stream has no title or name.- 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.- Parameters:
title- the stream title
-
getPermaLink
String getPermaLink()Gets the link to the UI endpoint of the stream in portal.
A string specifying the stream's URL- 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- Parameters:
permaLink- the permanent link for this activity stream
-
isSpace
boolean isSpace()- Returns:
- true if Stream is of Space type
-
isUser
boolean isUser()- Returns:
- true if Stream is of User type
-