Interface ActivityStorage
public interface ActivityStorage
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault ActivityShareActioncreateShareActivityAction(ActivityShareAction activityShareAction) Stores in database the share activity action detailvoiddeleteActivity(String activityId) Deletes activity by its id.voiddeleteComment(String activityId, String commentId) Delete comment by its id.getActivities(List<String> activityIdList) Load activities switch list of IDsgetActivities(Identity owner, Identity viewer, long offset, long limit) Gets the activities by identity owner but it's viewed by viewer.default List<ExoSocialActivity> getActivitiesByFilter(Identity viewerIdentity, ActivityFilter activityFilter, long offset, long limit) Get the activities by identity and activity filter.getActivitiesByPoster(Identity posterIdentity, int offset, int limit) Gets activities by poster.getActivitiesByPoster(Identity posterIdentity, int offset, int limit, String... activityTypes) Gets activities by poster and activity's typesdefault intgetActivitiesCountByFilter(Identity viewerIdentity, ActivityFilter activityFilter) Count the number of activities from an ownerIdentity by filtergetActivitiesOfConnections(Identity ownerIdentity, int offset, int limit) Gets activities of connections of an identity with offset, limit.getActivitiesOfConnectionsForUpgrade(Identity ownerIdentity, int offset, int limit) Deprecated.not used anymoregetActivitiesOfIdentity(Identity ownerIdentity, long offset, long limit) Gets the activities of the identity with offset, limit.getActivity(String activityId) Load an activity by its id.getActivityCategoryIds(long spaceIdentityId) getActivityCategoryIds(Set<Long> streamFeedOwnerIds) getActivityFeed(Identity ownerIdentity, int offset, int limit) Gets activity feed from an identity.getActivityFeedForUpgrade(Identity ownerIdentity, int offset, int limit) Deprecated.not used anymoregetActivityIdsByFilter(Identity viewerIdentity, ActivityFilter activityFilter, long offset, long limit) Get the activity ids by identity and activity filter.getActivityIdsFeed(Identity ownerIdentity, int offset, int limit) Gets activity ids feed from an identity.getActivityIdsOfConnections(Identity ownerIdentity, int offset, int limit) Gets activity id list of connections of an identity with offset, limit.Gets the activity processors.getAllActivities(int index, int limit) Get all activitiesgetComments(ExoSocialActivity existingActivity, boolean loadSubComments, int offset, int limit) Gets the comments of an activity with offset, limit.default List<ExoSocialActivity> getComments(ExoSocialActivity activity, boolean loadSubComments, int offset, int limit, boolean sortDescending) Gets the comments of an activity with offset, limit.getNewerActivitiesOfConnections(Identity owner, Long sinceTime, int limit) Gets connections' activities of an user base on since time.getNewerComments(ExoSocialActivity existingActivity, Long sinceTime, int limit) Gets the newer comments of an activity based on an updated time.getNewerComments(ExoSocialActivity existingActivity, ExoSocialActivity baseComment, int limit) Gets the newer comments of an activity based on a comment.getNewerFeedActivities(Identity owner, Long sinceTime, int limit) Gets feed activities base on since time.getNewerOnActivitiesOfConnections(Identity ownerIdentity, ExoSocialActivity baseActivity, long limit) Gets the newer activities of connections based on baseActivity.getNewerOnActivityFeed(Identity ownerIdentity, ExoSocialActivity baseActivity, int limit) Gets the list of newer activities feed based on an existing activity.getNewerOnSpaceActivities(Identity spaceIdentity, ExoSocialActivity baseActivity, int limit) Gets list of newer activities of spaces where the identity can accessgetNewerOnUserActivities(Identity ownerIdentity, ExoSocialActivity baseActivity, int limit) Gets the list of newer activities based on an existing activity.getNewerOnUserSpacesActivities(Identity ownerIdentity, ExoSocialActivity baseActivity, int limit) Gets the newer activities of spaces where identity can access (manager or member), based on an existing activity.getNewerSpaceActivities(Identity owner, Long sinceTime, int limit) Gets space activities base on since time.getNewerUserActivities(Identity owner, Long sinceTime, int limit) Gets activities of an user base on since time.getNewerUserSpacesActivities(Identity owner, Long sinceTime, int limit) Gets activities of an user on spaces base on since time.intgetNumberOfActivitesOnActivityFeed(Identity ownerIdentity) Gets the number of activities feed based from ownerIdentity.intgetNumberOfActivitesOnActivityFeedForUpgrade(Identity ownerIdentity) Gets the number of activities feed based from ownerIdentity for upgrade Activity Stream feature.intgetNumberOfActivitiesByPoster(Identity posterIdentity) Gets the number of activities of poster.intgetNumberOfActivitiesByPoster(Identity ownerIdentity, Identity viewerIdentity) Gets the number of activities of poster.intgetNumberOfActivitiesOfConnections(Identity ownerIdentity) Gets the count of the activities of connections who connected with an identity.intgetNumberOfActivitiesOfConnectionsForUpgrade(Identity ownerIdentity) Gets the count of the activities of connections who connected with an identity for upgrade Activity Stream feature.default intgetNumberOfAllComments(String activityId) Gets the number of comments and subcomments of an activity.intgetNumberOfComments(ExoSocialActivity existingActivity) Gets the number of comments of an activity.intgetNumberOfNewerComments(ExoSocialActivity existingActivity, Long sinceTime) Gets the number of newer commentsintgetNumberOfNewerComments(ExoSocialActivity existingActivity, ExoSocialActivity baseComment) Gets the number of newer comments of an activity based on a comment.intgetNumberOfNewerOnActivitiesOfConnections(Identity ownerIdentity, Long sinceTime) Gets the number of newer activities based on postedTime of connections.intgetNumberOfNewerOnActivitiesOfConnections(Identity ownerIdentity, ExoSocialActivity baseActivity) Gets the number of newer activities based on base activity of connections.intgetNumberOfNewerOnActivityFeed(Identity ownerIdentity, Long sinceTime) Gets the list of newer activities feed based on an existing postedTime.intgetNumberOfNewerOnActivityFeed(Identity ownerIdentity, ExoSocialActivity baseActivity) Gets the list of newer activities feed based on an existing activity.intgetNumberOfNewerOnSpaceActivities(Identity spaceIdentity, Long sinceTime) Gets the number of older activities of spaces where the identity can access and based on an existing postedTime of baseActivity.intgetNumberOfNewerOnSpaceActivities(Identity spaceIdentity, ExoSocialActivity baseActivity) Gets the number of newer activities of spaces where the identity can access and based on an existing postedTime of baseActivity.intgetNumberOfNewerOnUserActivities(Identity ownerIdentity, Long sinceTime) Gets the number of newer activities based on an existing postedTime.intgetNumberOfNewerOnUserActivities(Identity ownerIdentity, ExoSocialActivity baseActivity) Gets the number of newer activities based on an existing activity.intgetNumberOfNewerOnUserSpacesActivities(Identity ownerIdentity, Long sinceTime) Gets the number of newer activities of spaces where the identity can access, based on an existing postedTime.intgetNumberOfNewerOnUserSpacesActivities(Identity ownerIdentity, ExoSocialActivity baseActivity) Gets the number of newer activities of spaces where the identity can access, based on an existing activity.intgetNumberOfOlderComments(ExoSocialActivity existingActivity, Long sinceTime) Gets the number of older commentsintgetNumberOfOlderComments(ExoSocialActivity existingActivity, ExoSocialActivity baseComment) Gets the number of newer comments of an activity based on a comment.intgetNumberOfOlderOnActivitiesOfConnections(Identity ownerIdentity, Long sinceTime) Gets the number of older activities based on postedTime of connections.intgetNumberOfOlderOnActivitiesOfConnections(Identity ownerIdentity, ExoSocialActivity baseActivity) Gets the number of older activities of connections based on baseActivity.intgetNumberOfOlderOnActivityFeed(Identity ownerIdentity, Long sinceTime) Gets the list of older activities feed based on an existing postedTime.intgetNumberOfOlderOnActivityFeed(Identity ownerIdentity, ExoSocialActivity baseActivity) Gets the list of older activities feed based on an existing activity.intgetNumberOfOlderOnSpaceActivities(Identity ownerIdentity, Long sinceTime) Gets the number of older activities of spaces base on a time.intgetNumberOfOlderOnSpaceActivities(Identity spaceIdentity, ExoSocialActivity baseActivity) Gets the number of older activities of spaces where the identity can access and based on an existing postedTime of baseActivity.intgetNumberOfOlderOnUserActivities(Identity ownerIdentity, Long sinceTime) Gets the number of older activities based on an existing postedTime.intgetNumberOfOlderOnUserActivities(Identity ownerIdentity, ExoSocialActivity baseActivity) Gets the number of older activities based on an existing activity.intgetNumberOfOlderOnUserSpacesActivities(Identity ownerIdentity, Long sinceTime) Gets the number of older activities of spacesintgetNumberOfOlderOnUserSpacesActivities(Identity ownerIdentity, ExoSocialActivity baseActivity) Gets the number of newer activities of spaces where the identity can access, based on an existing activity.intgetNumberOfSpaceActivities(Identity spaceIdentity) Gets the number of newer activities of spaces where the identity can access.intgetNumberOfSpaceActivitiesForUpgrade(Identity spaceIdentity) Gets the number of newer activities of spaces where the identity can access for upgrade Stream featureintCount the number of activities from an ownerIdentityintCount the number of activities from an ownerIdentity for upgrade Activity Stream featureintgetNumberOfUserSpacesActivities(Identity ownerIdentity) Gets the number of activities of spaces where identity can access (manager or member).intgetNumberOfUserSpacesActivitiesForUpgrade(Identity ownerIdentity) Gets the number of activities of spaces where identity can access (manager or member) for upgrade Activity Stream feature.getOlderActivitiesOfConnections(Identity owner, Long sinceTime, int limit) Gets connections' activities of an user base on since time.getOlderComments(ExoSocialActivity existingActivity, Long sinceTime, int limit) Gets the older comments of an activity based on an updated time.getOlderComments(ExoSocialActivity existingActivity, ExoSocialActivity baseComment, int limit) Gets the older comments of an activity based on a comment.getOlderFeedActivities(Identity owner, Long sinceTime, int limit) Gets feed activities base on since time.getOlderOnActivitiesOfConnections(Identity ownerIdentity, ExoSocialActivity baseActivity, int limit) Gets the older of activities of connections based on base an activity.getOlderOnActivityFeed(Identity ownerIdentity, ExoSocialActivity baseActivity, int limit) Gets the list of older activities feed based on an existing activity.getOlderOnSpaceActivities(Identity spaceIdentity, ExoSocialActivity baseActivity, int limit) Gets the list of older activities of spaces where the identity can access and based on an existing postedTime of baseActivity.getOlderOnUserActivities(Identity ownerIdentity, ExoSocialActivity baseActivity, int limit) Gets the list of older activities based on an existing activity.getOlderOnUserSpacesActivities(Identity ownerIdentity, ExoSocialActivity baseActivity, int limit) Gets the older activities of spaces where identity can access (manager or member), based on an existing activity.getOlderSpaceActivities(Identity owner, Long sinceTime, int limit) Gets space activities base on since time.getOlderUserActivities(Identity owner, Long sinceTime, int limit) Gets activities of an user base on since time.getOlderUserSpacesActivities(Identity owner, Long sinceTime, int limit) Gets activities of an user on spaces base on since time.getParentActivity(ExoSocialActivity comment) getSpaceActivities(Identity spaceIdentity, int index, int limit) Gets list of activities of spaces where the identity can access.getSpaceActivitiesForUpgrade(Identity spaceIdentity, int index, int limit) Gets list of activities of spaces where the identity can access for upgrade Stream featuregetSpaceActivityIds(Identity spaceIdentity, int index, int limit) Gets list of activity ids of spaces where the identity can access.getStreamFeedOwnerIds(Identity identity) Computes the owner Ids of Streams that the user identity can see in his main activity stream (Spaces where the user is member and his confirmed connections)getSubComments(ExoSocialActivity comment) Get all sub comments of a chosen commentgetUserActivities(Identity owner) Gets all the activities by identity.getUserActivities(Identity owner, long offset, long limit) Gets the activities by identity.getUserActivitiesForUpgrade(Identity owner, long offset, long limit) Gets the activities by identity for upgrade Activity Stream feature Access a user's activity stream by specifying the offset and limit.getUserIdsActivities(Identity owner, long offset, long limit) Gets the activity ids by identity.getUserSpacesActivities(Identity ownerIdentity, int offset, int limit) Gets the activities of spaces where identity can access (manager or member).getUserSpacesActivitiesForUpgrade(Identity ownerIdentity, int offset, int limit) Gets the activities of spaces where identity can access (manager or member) for upgrade Activity Stream featuregetUserSpacesActivityIds(Identity ownerIdentity, int offset, int limit) Gets the activity id list of spaces where identity can access (manager or member).default ExoSocialActivityhideActivity(String activityId) Hides an activity to not be displayed in stream, but keep it accessible in standalone modedefault booleanisActivityExists(String activityId) default ExoSocialActivitypinActivity(String activityId, String userIdentityId) Pins a specific activity to space stream.saveActivity(Identity owner, ExoSocialActivity activity) Saves an activity into a stream.voidsaveComment(ExoSocialActivity activity, ExoSocialActivity comment) Save comment to an activity.default ExoSocialActivityunpinActivity(String activityId) Unpins a specific activity from space stream.voidupdateActivity(ExoSocialActivity existingActivity) Updates an existing activity.
-
Field Details
-
MENTION_CHAR
- See Also:
-
-
Method Details
-
getActivity
Load an activity by its id.- Parameters:
activityId- the id of the activity. An UUID.- Returns:
- the activity
- Throws:
ActivityStorageException
-
getUserActivities
Gets all the activities by identity.- Parameters:
owner- the identity- Returns:
- the activities
- Throws:
ActivityStorageException
-
getUserActivities
List<ExoSocialActivity> getUserActivities(Identity owner, long offset, long limit) throws ActivityStorageException Gets the activities by identity. Access a user's activity stream by specifying the offset and limit.- Parameters:
owner- the identityoffset-limit-- Returns:
- the activities
- Throws:
ActivityStorageException
-
getUserIdsActivities
List<String> getUserIdsActivities(Identity owner, long offset, long limit) throws ActivityStorageException Gets the activity ids by identity. Access a user's activity stream by specifying the offset and limit.- Parameters:
owner- the identityoffset-limit-- Returns:
- the activity ids list
- Throws:
ActivityStorageException
-
getActivitiesByFilter
default List<ExoSocialActivity> getActivitiesByFilter(Identity viewerIdentity, ActivityFilter activityFilter, long offset, long limit) Get the activities by identity and activity filter.- Parameters:
viewerIdentity- the viewer identityactivityFilter- the activity filteroffset- The starting pointlimit- Limit of activities to retrieve- Returns:
ListofExoSocialActivitythat contains list of activities matching the filter
-
getActivityIdsByFilter
default List<String> getActivityIdsByFilter(Identity viewerIdentity, ActivityFilter activityFilter, long offset, long limit) Get the activity ids by identity and activity filter. -
getUserActivitiesForUpgrade
List<ExoSocialActivity> getUserActivitiesForUpgrade(Identity owner, long offset, long limit) throws ActivityStorageException Gets the activities by identity for upgrade Activity Stream feature Access a user's activity stream by specifying the offset and limit.- Parameters:
owner- the identityoffset-limit-- Returns:
- the activities
- Throws:
ActivityStorageException
-
getActivities
List<ExoSocialActivity> getActivities(Identity owner, Identity viewer, long offset, long limit) throws ActivityStorageException Gets the activities by identity owner but it's viewed by viewer. Example: If there is relationship between Mary and Demo, signed in Demo, and then watch Mary's activity stream Expectation: Only show user's activities and space activity if both of them is member. Access a user's activity stream by specifying the offset and limit.- Parameters:
owner- the identityviewer- the identityoffset-limit-- Returns:
- the activities
- Throws:
ActivityStorageException
-
saveComment
void saveComment(ExoSocialActivity activity, ExoSocialActivity comment) throws ActivityStorageException Save comment to an activity. activity's ownerstream has to be the same as ownerStream param here.- Parameters:
activity-comment-- Throws:
ActivityStorageException- Since:
- 1.1.1
-
saveActivity
ExoSocialActivity saveActivity(Identity owner, ExoSocialActivity activity) throws ActivityStorageException Saves an activity into a stream. Note that the fieldExoSocialActivity.setUserId(String)should be the id of an identityIdentity.getId()- Parameters:
owner- owner of the stream where this activity is bound. Usually a user or space identityactivity- the activity to save- Returns:
- stored activity
- Throws:
ActivityStorageException- activity storage exception with type: ActivityStorageException.Type.FAILED_TO_SAVE_ACTIVITY- Since:
- 1.1.1
-
getParentActivity
- Throws:
ActivityStorageException
-
deleteActivity
Deletes activity by its id. This will delete comments from this activity first, then delete the activity.- Parameters:
activityId- the activity id- Throws:
ActivityStorageException
-
deleteComment
Delete comment by its id.- Parameters:
activityId-commentId-- Throws:
ActivityStorageException
-
getNumberOfUserActivities
Count the number of activities from an ownerIdentity- Parameters:
owner-- Returns:
- the number of activities
- Throws:
ActivityStorageException
-
getActivitiesCountByFilter
Count the number of activities from an ownerIdentity by filter- Parameters:
viewerIdentity- the viewer identityactivityFilter- the activity filter- Returns:
- the number of activities
-
getNumberOfUserActivitiesForUpgrade
Count the number of activities from an ownerIdentity for upgrade Activity Stream feature- Parameters:
owner-- Returns:
- the number of activities
- Throws:
ActivityStorageException
-
getNumberOfNewerOnUserActivities
Gets the number of newer activities based on an existing activity.- Parameters:
ownerIdentity-baseActivity-- Returns:
-
getNewerOnUserActivities
List<ExoSocialActivity> getNewerOnUserActivities(Identity ownerIdentity, ExoSocialActivity baseActivity, int limit) Gets the list of newer activities based on an existing activity.- Parameters:
ownerIdentity-baseActivity-limit-- Returns:
-
getNumberOfOlderOnUserActivities
Gets the number of older activities based on an existing activity.- Parameters:
ownerIdentity-baseActivity-- Returns:
-
getOlderOnUserActivities
List<ExoSocialActivity> getOlderOnUserActivities(Identity ownerIdentity, ExoSocialActivity baseActivity, int limit) Gets the list of older activities based on an existing activity.- Parameters:
ownerIdentity-baseActivity-limit-- Returns:
-
getActivityFeed
Gets activity feed from an identity.- Parameters:
ownerIdentity-offset-limit-- Returns:
-
getActivityIdsFeed
Gets activity ids feed from an identity.- Parameters:
ownerIdentity-offset-limit-- Returns:
-
getActivityFeedForUpgrade
@Deprecated List<ExoSocialActivity> getActivityFeedForUpgrade(Identity ownerIdentity, int offset, int limit) Deprecated.not used anymoreGets activity feed from an identity for upgrade Activity Stream feature- Parameters:
ownerIdentity-offset-limit-- Returns:
- Since:
- 4.1.x, 4.0.2
-
getNumberOfActivitesOnActivityFeed
Gets the number of activities feed based from ownerIdentity.- Parameters:
ownerIdentity-- Returns:
-
getNumberOfActivitesOnActivityFeedForUpgrade
Gets the number of activities feed based from ownerIdentity for upgrade Activity Stream feature.- Parameters:
ownerIdentity-- Returns:
- Since:
- 4.1.x, 4.0.2
-
getNumberOfNewerOnActivityFeed
Gets the list of newer activities feed based on an existing activity.- Parameters:
ownerIdentity-baseActivity-- Returns:
-
getNewerOnActivityFeed
List<ExoSocialActivity> getNewerOnActivityFeed(Identity ownerIdentity, ExoSocialActivity baseActivity, int limit) Gets the list of newer activities feed based on an existing activity.- Parameters:
ownerIdentity-baseActivity-limit-- Returns:
-
getNumberOfOlderOnActivityFeed
Gets the list of older activities feed based on an existing activity.- Parameters:
ownerIdentity-baseActivity-- Returns:
-
getOlderOnActivityFeed
List<ExoSocialActivity> getOlderOnActivityFeed(Identity ownerIdentity, ExoSocialActivity baseActivity, int limit) Gets the list of older activities feed based on an existing activity.- Parameters:
ownerIdentity-baseActivity-limit-- Returns:
-
getActivitiesOfConnections
Gets activities of connections of an identity with offset, limit.- Parameters:
ownerIdentity-offset-limit-- Returns:
- Since:
- 1.2.0-Beta3
-
getActivityIdsOfConnections
Gets activity id list of connections of an identity with offset, limit.- Parameters:
ownerIdentity-offset-limit-- Returns:
- list of activity id
- Since:
- 4.3.0
-
getActivitiesOfConnectionsForUpgrade
@Deprecated List<ExoSocialActivity> getActivitiesOfConnectionsForUpgrade(Identity ownerIdentity, int offset, int limit) Deprecated.not used anymoreGets activities of connections of an identity with offset, limit for upgrade Activity Stream feature.- Parameters:
ownerIdentity-offset-limit-- Returns:
- Since:
- 4.1.x, 4.0.2
-
getNumberOfActivitiesOfConnections
Gets the count of the activities of connections who connected with an identity.- Parameters:
ownerIdentity-- Returns:
- Since:
- 1.2.0-Beta3
-
getNumberOfActivitiesOfConnectionsForUpgrade
Gets the count of the activities of connections who connected with an identity for upgrade Activity Stream feature.- Parameters:
ownerIdentity-- Returns:
- Since:
- 4.1.x, 4.0.2
-
getActivitiesOfIdentity
Gets the activities of the identity with offset, limit.- Parameters:
ownerIdentity-offset-limit-- Returns:
- Throws:
ActivityStorageException- Since:
- 1.2.0-Beta3
-
getNumberOfNewerOnActivitiesOfConnections
int getNumberOfNewerOnActivitiesOfConnections(Identity ownerIdentity, ExoSocialActivity baseActivity) Gets the number of newer activities based on base activity of connections.- Parameters:
ownerIdentity-baseActivity-- Returns:
- Since:
- 1.2.0-Beta3
-
getNewerOnActivitiesOfConnections
List<ExoSocialActivity> getNewerOnActivitiesOfConnections(Identity ownerIdentity, ExoSocialActivity baseActivity, long limit) Gets the newer activities of connections based on baseActivity.- Parameters:
ownerIdentity-baseActivity-limit-- Returns:
- Since:
- 1.2.0-Beta3
-
getNumberOfOlderOnActivitiesOfConnections
int getNumberOfOlderOnActivitiesOfConnections(Identity ownerIdentity, ExoSocialActivity baseActivity) Gets the number of older activities of connections based on baseActivity.- Parameters:
ownerIdentity-baseActivity-- Returns:
- Since:
- 1.2.0-Beta3
-
getOlderOnActivitiesOfConnections
List<ExoSocialActivity> getOlderOnActivitiesOfConnections(Identity ownerIdentity, ExoSocialActivity baseActivity, int limit) Gets the older of activities of connections based on base an activity.- Parameters:
ownerIdentity-baseActivity-limit-- Returns:
- Since:
- 1.2.0-Beta3
-
getUserSpacesActivities
Gets the activities of spaces where identity can access (manager or member).- Parameters:
ownerIdentity-offset-limit-- Returns:
- Since:
- 1.2.0-Beta3
-
getUserSpacesActivityIds
Gets the activity id list of spaces where identity can access (manager or member).- Parameters:
ownerIdentity-offset-limit-- Returns:
- the activity id list
- Since:
- 4.3.0
-
getUserSpacesActivitiesForUpgrade
List<ExoSocialActivity> getUserSpacesActivitiesForUpgrade(Identity ownerIdentity, int offset, int limit) Gets the activities of spaces where identity can access (manager or member) for upgrade Activity Stream feature- Parameters:
ownerIdentity-offset-limit-- Returns:
- Since:
- 4.1.x, 4.0.2
-
getNumberOfUserSpacesActivities
Gets the number of activities of spaces where identity can access (manager or member).- Parameters:
ownerIdentity-- Returns:
- Since:
- 1.2.0-Beta3
-
getNumberOfUserSpacesActivitiesForUpgrade
Gets the number of activities of spaces where identity can access (manager or member) for upgrade Activity Stream feature.- Parameters:
ownerIdentity-- Returns:
- Since:
- 4.1.x, 4.0.2
-
getNumberOfNewerOnUserSpacesActivities
Gets the number of newer activities of spaces where the identity can access, based on an existing activity.- Parameters:
ownerIdentity-baseActivity-- Returns:
- Since:
- 1.2.0-Beta3
-
getNewerOnUserSpacesActivities
List<ExoSocialActivity> getNewerOnUserSpacesActivities(Identity ownerIdentity, ExoSocialActivity baseActivity, int limit) Gets the newer activities of spaces where identity can access (manager or member), based on an existing activity.- Parameters:
ownerIdentity-baseActivity-limit-- Returns:
- Since:
- 1.2.0-Beta3
-
getNumberOfOlderOnUserSpacesActivities
Gets the number of newer activities of spaces where the identity can access, based on an existing activity.- Parameters:
ownerIdentity-baseActivity-- Returns:
- Since:
- 1.2.0-Beta3
-
getOlderOnUserSpacesActivities
List<ExoSocialActivity> getOlderOnUserSpacesActivities(Identity ownerIdentity, ExoSocialActivity baseActivity, int limit) Gets the older activities of spaces where identity can access (manager or member), based on an existing activity.- Parameters:
ownerIdentity-baseActivity-limit-- Returns:
- Since:
- 1.2.0-Beta3
-
getComments
List<ExoSocialActivity> getComments(ExoSocialActivity existingActivity, boolean loadSubComments, int offset, int limit) Gets the comments of an activity with offset, limit. If loadSubComments is true, sub comments will be added to the list.- Parameters:
existingActivity-loadSubComments-offset-limit-- Returns:
-
getComments
default List<ExoSocialActivity> getComments(ExoSocialActivity activity, boolean loadSubComments, int offset, int limit, boolean sortDescending) Gets the comments of an activity with offset, limit. If loadSubComments is true, sub comments will be added to the list. The returned list will be sorted by last post time or by first post time.- Parameters:
activity-loadSubComments-offset-limit-sortDescending-- Returns:
-
getNumberOfComments
Gets the number of comments of an activity.- Parameters:
existingActivity-- Returns:
- Since:
- 1.2.0-Beta3
-
getNumberOfAllComments
Gets the number of comments and subcomments of an activity.- Parameters:
activityId-ExoSocialActivityidentifier- Returns:
-
getNumberOfNewerComments
Gets the number of newer comments of an activity based on a comment.- Parameters:
existingActivity-baseComment-- Returns:
- Since:
- 1.2.0-Beta3
-
getNewerComments
List<ExoSocialActivity> getNewerComments(ExoSocialActivity existingActivity, ExoSocialActivity baseComment, int limit) Gets the newer comments of an activity based on a comment.- Parameters:
existingActivity-baseComment-limit-- Returns:
-
getNumberOfOlderComments
Gets the number of newer comments of an activity based on a comment.- Parameters:
existingActivity-baseComment-- Returns:
- Since:
- 1.2.0-Beta3
-
getOlderComments
List<ExoSocialActivity> getOlderComments(ExoSocialActivity existingActivity, ExoSocialActivity baseComment, int limit) Gets the older comments of an activity based on a comment.- Parameters:
existingActivity-baseComment-limit-- Returns:
- Since:
- 1.2.0-Beta3
-
getActivityProcessors
SortedSet<ActivityProcessor> getActivityProcessors()Gets the activity processors.- Returns:
- 1.2.0-GA
-
updateActivity
Updates an existing activity. If the updatedDate is different than the previous one, it is updated and the activity is moved up in the activity stream, otherwise the activity is updated without being moved in the stream.- Parameters:
existingActivity-- Throws:
ActivityStorageException
-
getNumberOfNewerOnActivityFeed
Gets the list of newer activities feed based on an existing postedTime.- Parameters:
ownerIdentity-sinceTime-- Returns:
- Since:
- 4.0 Alpha01
-
getNumberOfNewerOnUserActivities
Gets the number of newer activities based on an existing postedTime.- Parameters:
ownerIdentity-sinceTime-- Returns:
- Since:
- 4.0 Alpha01
-
getNumberOfNewerOnActivitiesOfConnections
Gets the number of newer activities based on postedTime of connections.- Parameters:
ownerIdentity-sinceTime-- Returns:
- Since:
- 4.0 Alpha01
-
getNumberOfNewerOnUserSpacesActivities
Gets the number of newer activities of spaces where the identity can access, based on an existing postedTime.- Parameters:
ownerIdentity-sinceTime-- Returns:
- Since:
- 4.0 Alpha01
-
getNumberOfSpaceActivities
Gets the number of newer activities of spaces where the identity can access.- Parameters:
spaceIdentity-- Returns:
- Since:
- 4.0 Alpha01
-
getNumberOfSpaceActivitiesForUpgrade
Gets the number of newer activities of spaces where the identity can access for upgrade Stream feature- Parameters:
spaceIdentity-- Returns:
- Since:
- 4.0.2, 4.1.x
-
getSpaceActivities
Gets list of activities of spaces where the identity can access.- Parameters:
spaceIdentity-index-limit-- Returns:
- Since:
- 4.0 Alpha01
-
getSpaceActivityIds
Gets list of activity ids of spaces where the identity can access.- Parameters:
spaceIdentity-index-limit-- Returns:
- Since:
- 4.3.0
-
getSpaceActivitiesForUpgrade
Gets list of activities of spaces where the identity can access for upgrade Stream feature- Parameters:
spaceIdentity-index-limit-- Returns:
- Since:
- 4.0.2, 4.1.x
-
getActivitiesByPoster
Gets activities by poster.- Parameters:
posterIdentity- The identity of given poster.offset- The start point to load.limit- The range to load.- Returns:
- The activities that match the given poster.
- Since:
- 4.0.1-GA
-
getActivitiesByPoster
List<ExoSocialActivity> getActivitiesByPoster(Identity posterIdentity, int offset, int limit, String... activityTypes) Gets activities by poster and activity's types- Parameters:
posterIdentity- The identity of given poster.offset- The start point to load.limit- The range to load.activityTypes- : type of activities- Returns:
- The activities that match the given poster.
- Since:
- 4.0.2-GA
-
getNumberOfActivitiesByPoster
Gets the number of activities of poster.- Parameters:
posterIdentity- The given poster identity information.- Returns:
- The size of return results.
- Since:
- 4.0.1-GA
-
getNumberOfActivitiesByPoster
Gets the number of activities of poster.- Parameters:
ownerIdentity- The given owner identity information.viewerIdentity- The given viewer identity information.- Returns:
- The size of return results.
- Since:
- 4.0.4
-
getNewerOnSpaceActivities
List<ExoSocialActivity> getNewerOnSpaceActivities(Identity spaceIdentity, ExoSocialActivity baseActivity, int limit) Gets list of newer activities of spaces where the identity can access- Parameters:
spaceIdentity-baseActivity-limit-- Returns:
- Since:
- 4.0 Alpha01
-
getNumberOfNewerOnSpaceActivities
Gets the number of newer activities of spaces where the identity can access and based on an existing postedTime of baseActivity.- Parameters:
spaceIdentity-baseActivity-- Returns:
- Since:
- 4.0 Alpha01
-
getOlderOnSpaceActivities
List<ExoSocialActivity> getOlderOnSpaceActivities(Identity spaceIdentity, ExoSocialActivity baseActivity, int limit) Gets the list of older activities of spaces where the identity can access and based on an existing postedTime of baseActivity.- Parameters:
spaceIdentity-baseActivity-limit-- Returns:
- Since:
- 4.0 Alpha01
-
getNumberOfOlderOnSpaceActivities
Gets the number of older activities of spaces where the identity can access and based on an existing postedTime of baseActivity.- Parameters:
spaceIdentity-baseActivity-- Returns:
- Since:
- 4.0 Alpha01
-
getNumberOfNewerOnSpaceActivities
Gets the number of older activities of spaces where the identity can access and based on an existing postedTime of baseActivity.- Parameters:
spaceIdentity-sinceTime-- Returns:
- Since:
- 4.0 Alpha01
-
getNewerFeedActivities
Gets feed activities base on since time.- Parameters:
owner-sinceTime-limit-- Returns:
- Since:
- 4.0
-
getNewerUserActivities
Gets activities of an user base on since time.- Parameters:
owner-sinceTime-limit-- Returns:
- Since:
- 4.0
-
getNewerUserSpacesActivities
Gets activities of an user on spaces base on since time.- Parameters:
owner-sinceTime-limit-- Returns:
- Since:
- 4.0
-
getNewerActivitiesOfConnections
Gets connections' activities of an user base on since time.- Parameters:
owner-sinceTime-limit-- Returns:
- Since:
- 4.0
-
getNewerSpaceActivities
Gets space activities base on since time.- Parameters:
owner-sinceTime-limit-- Returns:
- Since:
- 4.0
-
getOlderFeedActivities
Gets feed activities base on since time.- Parameters:
owner-sinceTime-limit-- Returns:
- Since:
- 4.0
-
getOlderUserActivities
Gets activities of an user base on since time.- Parameters:
owner-sinceTime-limit-- Returns:
- Since:
- 4.0
-
getOlderUserSpacesActivities
Gets activities of an user on spaces base on since time.- Parameters:
owner-sinceTime-limit-- Returns:
- Since:
- 4.0
-
getOlderActivitiesOfConnections
Gets connections' activities of an user base on since time.- Parameters:
owner-sinceTime-limit-- Returns:
- Since:
- 4.0
-
getOlderSpaceActivities
Gets space activities base on since time.- Parameters:
owner-sinceTime-limit-- Returns:
- Since:
- 4.0
-
getNumberOfOlderOnActivityFeed
Gets the list of older activities feed based on an existing postedTime.- Parameters:
ownerIdentity-sinceTime-- Returns:
- Since:
- 4.0
-
getNumberOfOlderOnUserActivities
Gets the number of older activities based on an existing postedTime.- Parameters:
ownerIdentity-sinceTime-- Returns:
- Since:
- 4.0
-
getNumberOfOlderOnActivitiesOfConnections
Gets the number of older activities based on postedTime of connections.- Parameters:
ownerIdentity-sinceTime-- Returns:
- Since:
- 4.0
-
getNumberOfOlderOnUserSpacesActivities
Gets the number of older activities of spaces- Parameters:
ownerIdentity-sinceTime-- Returns:
- Since:
- 4.0
-
getNumberOfOlderOnSpaceActivities
Gets the number of older activities of spaces base on a time.- Parameters:
ownerIdentity-sinceTime-- Returns:
- Since:
- 4.0
-
getNewerComments
List<ExoSocialActivity> getNewerComments(ExoSocialActivity existingActivity, Long sinceTime, int limit) Gets the newer comments of an activity based on an updated time.- Parameters:
existingActivity-sinceTime-limit-- Returns:
- Since:
- 4.0
-
getOlderComments
List<ExoSocialActivity> getOlderComments(ExoSocialActivity existingActivity, Long sinceTime, int limit) Gets the older comments of an activity based on an updated time.- Parameters:
existingActivity-sinceTime-limit-- Returns:
- Since:
- 4.0
-
getNumberOfNewerComments
Gets the number of newer comments- Parameters:
existingActivity-sinceTime-- Returns:
- Since:
- 4.0
-
getNumberOfOlderComments
Gets the number of older comments- Parameters:
existingActivity-sinceTime-- Returns:
- Since:
- 4.0
-
getAllActivities
Get all activities- Parameters:
index-limit-- Returns:
-
getSubComments
Get all sub comments of a chosen comment- Parameters:
comment-- Returns:
-
getActivities
Load activities switch list of IDs- Parameters:
activityIdList-- Returns:
-
getStreamFeedOwnerIds
Computes the owner Ids of Streams that the user identity can see in his main activity stream (Spaces where the user is member and his confirmed connections) -
hideActivity
Hides an activity to not be displayed in stream, but keep it accessible in standalone mode- Parameters:
activityId- Activity Identifier to hide- Returns:
- hidden
ExoSocialActivity
-
isActivityExists
- Parameters:
activityId-ExoSocialActivitytechnical identifier- Returns:
- true if activity exists else false
-
pinActivity
Pins a specific activity to space stream.- Parameters:
activityId- Activity Identifier to pinuserIdentityId- user identity Technical Identifier- Returns:
- pinned
ExoSocialActivity
-
unpinActivity
Unpins a specific activity from space stream.- Parameters:
activityId- Activity Identifier to pin- Returns:
- unpinned
ExoSocialActivity
-
getActivityCategoryIds
-
getActivityCategoryIds
- Parameters:
streamFeedOwnerIds- Stream feed ownerIds- Returns:
Listof Category Ids used in Activities
-