Interface ActivityStream
-
- All Known Implementing Classes:
ActivityStreamImpl
public interface ActivityStreamUse 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 Classes Modifier and Type Interface Description static classActivityStream.TypeThe type of activity stream, can be user or space.
-
Field Summary
Fields Modifier and Type Field Description static StringORGANIZATION_PROVIDER_IDstatic StringSPACE_PROVIDER_ID
-
Method Summary
All Methods Instance Methods Abstract 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 faviconUrl)Sets a string specifying the URL for the stream's favicon.voidsetId(String id)Sets 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.voidsetTitle(String title)Sets a human-readable name for this stream.voidsetType(String name)Sets type (could be "space" or "user").voidsetType(ActivityStream.Type type)Sets stream type.
-
-
-
Field Detail
-
ORGANIZATION_PROVIDER_ID
static final String ORGANIZATION_PROVIDER_ID
- See Also:
- Constant Field Values
-
SPACE_PROVIDER_ID
static final String SPACE_PROVIDER_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
setType
void setType(String name)
Sets type (could be "space" or "user").- Parameters:
name- the type name
-
getId
String getId()
Gets stream Id (internal activityStorage).- Returns:
- stream uuid
-
setId
void setId(String id)
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
void setPrettyId(String prettyId)
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
void setType(ActivityStream.Type type)
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
void setFaviconUrl(String faviconUrl)
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
void setTitle(String title)
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
void setPermaLink(String permaLink)
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
-
-