Interface ExoSocialActivity
- All Superinterfaces:
CacheEntry
- All Known Implementing Classes:
ExoSocialActivityImpl
ExoSocialActivity interface
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionGets activity stream associated with this activity.getAppId()getBody()String[]Gets array of identityIds who comment this activity.getFiles()Get files of the activity.getId()String[]Gets array of identityIds who like this activity.String[]Gets array of identityIds who like this activity.getName()Gets the name; could be the name of the doc, the name of jira task or the page title.intGets number of Liker who like this activity.Get id of parent activity comment.Get id of parent activity.Gets the permanent link.Gets the Id of the identity that pinned the activity.Gets the pin datetime.*Gets id of identity who is poster.String[]Gets reply to identity id.Gets array of identityIds who shared this activity.The uuid of the node for this stream.Gets the stream owner, must be the remoteId of an identity.This string value provides a human readable description or summary of the activity object.getTitle()getType()The type of activity, this can be used for displaying activity with different ui components.getUrl()booleanbooleanTo 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.booleanisPinned()To know if this is a pinned activity.voidSets activity stream associated with this activity.voidvoidvoidvoidsetCategoryIds(List<Long> categoryIds) Set theListof associated Category IdentifiersvoidsetCommentedIds(String[] identityIds) Sets array of identityIds who comment this activity.voidsetExternalId(String externalId) voidsetFiles(List<ActivityFile> files) Set activity filesvoidvoidsetLikeIdentityIds(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.voidsetMetadataObjectId(String objectId) SetMetadataObjectid for current activityvoidsetMetadataObjectParentId(String objectParentId) SetMetadataObjectparentId for current activityvoidsetMetadataObjectType(String objectType) SetMetadataObjecttype for current activityvoidsetMetadatas(Map<String, List<MetadataItem>> metadatas) Set aMapofMetadataItemof the activity grouped by Metadata typevoidSets 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.voidsetPinAuthorId(Long pinAuthorId) Sets the Id of the identity that pinned the activity.voidsetPinDate(String pinDate) Set the pin datetimevoidsetPinned(boolean pinned) Sets to indicate if this is a pinned activity or not.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.voidsetSpaceId(String spaceId) 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) voidvoidsetTitleId(String titleId) voidThe type of activity, this can be used for displaying activity with different ui components.voidsetUpdated(Long updated) Set the last update datetimevoidvoidMethods inherited from interface org.exoplatform.social.core.CacheEntry
getCacheTime, setCacheTime
-
Field Details
-
IS_COMMENT
The Constant label comment.- See Also:
-
-
Method Details
-
getId
String getId() -
setId
-
getExternalId
String getExternalId() -
setExternalId
-
getActivityStream
ActivityStream getActivityStream()Gets activity stream associated with this activity.- Returns:
- ActivityStream
-
setActivityStream
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
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
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
-
isPinned
boolean isPinned()To know if this is a pinned activity.- Returns:
- true or false
-
setPinned
void setPinned(boolean pinned) Sets to indicate if this is a pinned activity or not.- Parameters:
pinned- true or false
-
getPinDate
String getPinDate()Gets the pin datetime.* -
setPinDate
Set the pin datetime- Parameters:
pinDate- pin datetime
-
getPinAuthorId
Long getPinAuthorId()Gets the Id of the identity that pinned the activity.- Returns:
- Id of the identity that pinned the activity.
-
setPinAuthorId
Sets the Id of the identity that pinned the activity. -
getLikeIdentityIds
String[] getLikeIdentityIds()Gets array of identityIds who like this activity.- Returns:
- array of identityIds
-
getNumberOfLikes
int getNumberOfLikes()Gets number of Liker who like this activity.- Returns:
- number of liker
-
setLikeIdentityIds
Sets array of identityIds who like this activity.- Parameters:
identityIds- array of identity Ids
-
getStreamOwner
String getStreamOwner()Gets the stream owner, must be the remoteId of an identity.- Returns:
- the stream owner
-
setStreamOwner
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
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
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
-
getTitleId
String getTitleId() -
setTitleId
-
getSummary
String getSummary()This string value provides a human readable description or summary of the activity object.- Returns:
- the activity summary
-
setSummary
Sets activity summary.- Parameters:
summary- the activity summary
-
getBody
String getBody() -
setBody
-
getBodyId
String getBodyId() -
setBodyId
-
getAppId
String getAppId() -
setAppId
-
getPostedTime
Long getPostedTime() -
setPostedTime
-
getUrl
String getUrl() -
setUrl
-
getTemplateParams
-
setTemplateParams
-
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
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
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
Sets array of identityIds who comment this activity.- Parameters:
identityIds- array of identity Ids
-
getUpdated
Date getUpdated() -
setUpdated
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
Sets poster id.- Parameters:
posterId-
-
getParentCommentId
String getParentCommentId()Get id of parent activity comment.- Returns:
- Id of parent activity
-
setParentCommentId
Set parent activity comment id- Parameters:
parentCommentId-
-
getParentId
String getParentId()Get id of parent activity.- Returns:
- Id of parent activity
-
setParentId
Set parent activity id- Parameters:
parentId-
-
getFiles
List<ActivityFile> getFiles()Get files of the activity.- Returns:
- Files of the activity
-
setFiles
Set activity files- Parameters:
files-
-
getMetadatas
Map<String,List<MetadataItem>> getMetadatas()- Returns:
MapofMetadataItemof the activity grouped by Metadata type
-
setMetadatas
Set aMapofMetadataItemof the activity grouped by Metadata type- Parameters:
metadatas-
-
getUserId
String getUserId() -
setUserId
-
getSpaceId
String getSpaceId() -
setSpaceId
-
getPriority
Float getPriority() -
setPriority
-
getLinkedProcessedEntities
-
setLinkedProcessedEntities
-
getMetadataObjectType
String getMetadataObjectType()- Returns:
MetadataObjecttype associated to current activity
-
getMetadataObjectId
String getMetadataObjectId()- Returns:
MetadataObjectid associated to current activity
-
getMetadataObjectParentId
String getMetadataObjectParentId()- Returns:
MetadataObjectparentId associated to current activity
-
setMetadataObjectType
SetMetadataObjecttype for current activity- Parameters:
objectType-
-
setMetadataObjectId
SetMetadataObjectid for current activity- Parameters:
objectId-
-
setMetadataObjectParentId
SetMetadataObjectparentId for current activity- Parameters:
objectParentId-
-
getMetadataObject
MetadataObject getMetadataObject()- Returns:
MetadataObjectwith specific type and id for current activity
-
hasSpecificMetadataObject
boolean hasSpecificMetadataObject()- Returns:
- true if Activity has a specific
MetadataObjecttype
-
getCategoryIds
- Returns:
Listof associated Category Identifiers
-
setCategoryIds
Set theListof associated Category Identifiers- Parameters:
categoryIds-List
-