Interface ExoSocialActivity
-
- All Superinterfaces:
CacheEntry
- All Known Implementing Classes:
ExoSocialActivityImpl
public interface ExoSocialActivity extends CacheEntry
ExoSocialActivity interface- Since:
- Nov 9, 2010, 1.2.0-GA
- Author:
- hoatle (hoatlevan at gmail dot com)
-
-
Field Summary
Fields Modifier and Type Field Description static StringIS_COMMENTThe Constant label comment.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ActivityStreamgetActivityStream()Gets activity stream associated with this activity.StringgetAppId()StringgetBody()StringgetBodyId()String[]getCommentedIds()Gets array of identityIds who comment this activity.StringgetExternalId()List<ActivityFile>getFiles()Get files of the activity.StringgetId()String[]getLikeIdentityIds()Gets array of identityIds who like this activity.Map<String,Object>getLinkedProcessedEntities()String[]getMentionedIds()Gets array of identityIds who like this activity.StringgetName()Gets the name; could be the name of the doc, the name of jira task or the page title.intgetNumberOfLikes()Gets number of Liker who like this activity.StringgetParentCommentId()Get id of parent activity comment.StringgetParentId()Get id of parent activity.StringgetPermaLink()Gets the permanent link.LonggetPostedTime()StringgetPosterId()Gets id of identity who is poster.FloatgetPriority()String[]getReplyToId()Gets reply to identity id.Set<ActivityShareAction>getShareActions()Gets array of identityIds who shared this activity.StringgetStreamFaviconUrl()StringgetStreamId()The uuid of the node for this stream.StringgetStreamOwner()Gets the stream owner, must be the remoteId of an identity.StringgetStreamSourceUrl()StringgetStreamTitle()StringgetStreamUrl()StringgetSummary()This string value provides a human readable description or summary of the activity object.Map<String,String>getTemplateParams()StringgetTitle()StringgetTitleId()StringgetType()The type of activity, this can be used for displaying activity with different ui components.DategetUpdated()StringgetUrl()StringgetUserId()booleanisComment()To indicate if this a comment to an activity.voidisComment(boolean isCommentOrNot)To indicate if this a comment to an activity.booleanisHidden()To know if this is a hidden activity.voidisHidden(boolean isHiddenOrNot)Sets to indicate if this is a hidden activity or not.booleanisLocked()To know if this is a locked activity.voidisLocked(boolean isLockedOrNot)Sets to indicate if this is a locked activity or not.voidsetActivityStream(ActivityStream as)Sets activity stream associated with this activity.voidsetAppId(String appId)voidsetBody(String body)voidsetBodyId(String bodyId)voidsetCommentedIds(String[] identityIds)Sets array of identityIds who comment this activity.voidsetExternalId(String externalId)voidsetFiles(List<ActivityFile> files)Set activity filesvoidsetId(String id)voidsetLikeIdentityIds(String[] identityIds)Sets array of identityIds who like this activity.voidsetLinkedProcessedEntities(Map<String,Object> linkedProcessedEntities)voidsetMentionedIds(String[] identityIds)Sets array of identityIds who like this activity.voidsetName(String name)Sets the name; could be the name of the doc, the name of jira task or the page title.voidsetParentCommentId(String parentCommentId)Set parent activity comment idvoidsetParentId(String parentId)Set parent activity idvoidsetPermanLink(String permaLink)Sets the permanent link.voidsetPostedTime(Long postedTime)voidsetPosterId(String posterId)Sets poster id.voidsetPriority(Float priority)voidsetReplyToId(String[] replyToId)Sets reply to identity id.voidsetShareActions(Set<ActivityShareAction> shareActions)Sets share actions of the activity.voidsetStreamId(String streamId)The uuid of the node for this stream.voidsetStreamOwner(String so)Sets the stream owner, must be the remoteId of an identity.voidsetSummary(String summary)Sets activity summary.voidsetTemplateParams(Map<String,String> templateParams)voidsetTitle(String title)voidsetTitleId(String titleId)voidsetType(String activityType)The type of activity, this can be used for displaying activity with different ui components.voidsetUpdated(Long updated)Set the last update datetimevoidsetUrl(String url)voidsetUserId(String userId)-
Methods inherited from interface org.exoplatform.social.core.CacheEntry
getCacheTime, setCacheTime
-
-
-
-
Field Detail
-
IS_COMMENT
static final String IS_COMMENT
The Constant label comment.- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
String getId()
-
setId
void setId(String id)
-
getExternalId
String getExternalId()
-
setExternalId
void setExternalId(String externalId)
-
getActivityStream
ActivityStream getActivityStream()
Gets activity stream associated with this activity.- Returns:
- ActivityStream
-
setActivityStream
void setActivityStream(ActivityStream as)
Sets activity stream associated with this activity.- Parameters:
as- the activity stream
-
isComment
boolean isComment()
To indicate if this a comment to an activity.- Returns:
- true if this is a comment or false
-
isComment
void isComment(boolean isCommentOrNot)
To indicate if this a comment to an activity.- Parameters:
isCommentOrNot- to know if this is a comment
-
getType
String getType()
The type of activity, this can be used for displaying activity with different ui components.- Returns:
- the type of activity
-
setType
void setType(String activityType)
The type of activity, this can be used for displaying activity with different ui components.- Parameters:
activityType- the type of activity
-
getReplyToId
String[] getReplyToId()
Gets reply to identity id.- Returns:
- the corresponding identity id
-
setReplyToId
void setReplyToId(String[] replyToId)
Sets reply to identity id.- Parameters:
replyToId- the identity id
-
isHidden
boolean isHidden()
To know if this is a hidden activity.- Returns:
- true or false
-
isHidden
void isHidden(boolean isHiddenOrNot)
Sets to indicate if this is a hidden activity or not.- Parameters:
isHiddenOrNot- true or false
-
isLocked
boolean isLocked()
To know if this is a locked activity.- Returns:
- true or false
-
isLocked
void isLocked(boolean isLockedOrNot)
Sets to indicate if this is a locked activity or not.- Parameters:
isLockedOrNot- true or false
-
getLikeIdentityIds
String[] getLikeIdentityIds()
Gets array of identityIds who like this activity.- Returns:
- array of identityIds
-
getShareActions
Set<ActivityShareAction> getShareActions()
Gets array of identityIds who shared this activity.- Returns:
- array of identityIds
-
getNumberOfLikes
int getNumberOfLikes()
Gets number of Liker who like this activity.- Returns:
- number of liker
-
setLikeIdentityIds
void setLikeIdentityIds(String[] identityIds)
Sets array of identityIds who like this activity.- Parameters:
identityIds- array of identity Ids
-
setShareActions
void setShareActions(Set<ActivityShareAction> shareActions)
Sets share actions of the activity.- Parameters:
shareActions-Setshare actions of user
-
getStreamOwner
String getStreamOwner()
Gets the stream owner, must be the remoteId of an identity.- Returns:
- the stream owner
-
setStreamOwner
void setStreamOwner(String so)
Sets the stream owner, must be the remoteId of an identity.- Parameters:
so- the stream owner
-
getStreamId
String getStreamId()
The uuid of the node for this stream.- Returns:
- stream id
-
setStreamId
void setStreamId(String streamId)
The uuid of the node for this stream.- Parameters:
streamId- the stream id
-
getName
String getName()
Gets the name; could be the name of the doc, the name of jira task or the page title.- Returns:
- the name
-
setName
void setName(String name)
Sets the name; could be the name of the doc, the name of jira task or the page title.- Parameters:
name- the name
-
getTitle
String getTitle()
-
setTitle
void setTitle(String title)
-
getTitleId
String getTitleId()
-
setTitleId
void setTitleId(String titleId)
-
getSummary
String getSummary()
This string value provides a human readable description or summary of the activity object.- Returns:
- the activity summary
-
setSummary
void setSummary(String summary)
Sets activity summary.- Parameters:
summary- the activity summary
-
getBody
String getBody()
-
setBody
void setBody(String body)
-
getBodyId
String getBodyId()
-
setBodyId
void setBodyId(String bodyId)
-
getAppId
String getAppId()
-
setAppId
void setAppId(String appId)
-
getPostedTime
Long getPostedTime()
-
setPostedTime
void setPostedTime(Long postedTime)
-
getUrl
String getUrl()
-
setUrl
void setUrl(String url)
-
getPermaLink
String getPermaLink()
Gets the permanent link.
Could be the link to the doc, the jira task, or the link- Returns:
- a permalink string, possibly null
-
setPermanLink
void setPermanLink(String permaLink)
Sets the permanent link. Could be the link to the doc, the jira task, or the link- Parameters:
permaLink- the permalink link
-
getStreamFaviconUrl
String getStreamFaviconUrl()
-
getStreamSourceUrl
String getStreamSourceUrl()
-
getStreamTitle
String getStreamTitle()
-
getStreamUrl
String getStreamUrl()
-
getMentionedIds
String[] getMentionedIds()
Gets array of identityIds who like this activity.- Returns:
- array of identityIds
-
setMentionedIds
void setMentionedIds(String[] identityIds)
Sets array of identityIds who like this activity.- Parameters:
identityIds- array of identity Ids
-
getCommentedIds
String[] getCommentedIds()
Gets array of identityIds who comment this activity.- Returns:
- array of identityIds
-
setCommentedIds
void setCommentedIds(String[] identityIds)
Sets array of identityIds who comment this activity.- Parameters:
identityIds- array of identity Ids
-
getUpdated
Date getUpdated()
-
setUpdated
void setUpdated(Long updated)
Set the last update datetime- Parameters:
updated- last update datetime
-
getPosterId
String getPosterId()
Gets id of identity who is poster.- Returns:
- Id of poster.
-
setPosterId
void setPosterId(String posterId)
Sets poster id.- Parameters:
posterId-
-
getParentCommentId
String getParentCommentId()
Get id of parent activity comment.- Returns:
- Id of parent activity
-
setParentCommentId
void setParentCommentId(String parentCommentId)
Set parent activity comment id- Parameters:
parentCommentId-
-
getParentId
String getParentId()
Get id of parent activity.- Returns:
- Id of parent activity
-
setParentId
void setParentId(String parentId)
Set parent activity id- Parameters:
parentId-
-
getFiles
List<ActivityFile> getFiles()
Get files of the activity.- Returns:
- Files of the activity
-
setFiles
void setFiles(List<ActivityFile> files)
Set activity files- Parameters:
files-
-
getUserId
String getUserId()
-
setUserId
void setUserId(String userId)
-
getPriority
Float getPriority()
-
setPriority
void setPriority(Float priority)
-
-