Interface ActivityStorage


  • public interface ActivityStorage
    Version:
    $Revision$
    Author:
    Alain Defrance
    • Method Detail

      • 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 identity
        offset -
        limit -
        Returns:
        the activity ids list
        Throws:
        ActivityStorageException
      • 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 identity
        offset -
        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 identity
        viewer - the identity
        offset -
        limit -
        Returns:
        the activities
        Throws:
        ActivityStorageException
      • deleteActivity

        void deleteActivity​(String activityId)
                     throws ActivityStorageException
        Deletes activity by its id. This will delete comments from this activity first, then delete the activity.
        Parameters:
        activityId - the activity id
        Throws:
        ActivityStorageException
      • getNumberOfUserActivitiesForUpgrade

        int getNumberOfUserActivitiesForUpgrade​(Identity owner)
                                         throws ActivityStorageException
        Count the number of activities from an ownerIdentity for upgrade Activity Stream feature
        Parameters:
        owner -
        Returns:
        the number of activities
        Throws:
        ActivityStorageException
      • getNumberOfNewerOnUserActivities

        int getNumberOfNewerOnUserActivities​(Identity ownerIdentity,
                                             ExoSocialActivity baseActivity)
        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

        int getNumberOfOlderOnUserActivities​(Identity ownerIdentity,
                                             ExoSocialActivity baseActivity)
        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

        List<ExoSocialActivity> getActivityFeed​(Identity ownerIdentity,
                                                int offset,
                                                int limit)
        Gets activity feed from an identity.
        Parameters:
        ownerIdentity -
        offset -
        limit -
        Returns:
      • getActivityIdsFeed

        List<String> getActivityIdsFeed​(Identity ownerIdentity,
                                        int offset,
                                        int limit)
        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 anymore
        Gets activity feed from an identity for upgrade Activity Stream feature
        Parameters:
        ownerIdentity -
        offset -
        limit -
        Returns:
        Since:
        4.1.x, 4.0.2
      • getNumberOfActivitesOnActivityFeed

        int getNumberOfActivitesOnActivityFeed​(Identity ownerIdentity)
        Gets the number of activities feed based from ownerIdentity.
        Parameters:
        ownerIdentity -
        Returns:
      • getNumberOfActivitesOnActivityFeedForUpgrade

        int getNumberOfActivitesOnActivityFeedForUpgrade​(Identity ownerIdentity)
        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

        int getNumberOfNewerOnActivityFeed​(Identity ownerIdentity,
                                           ExoSocialActivity baseActivity)
        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

        int getNumberOfOlderOnActivityFeed​(Identity ownerIdentity,
                                           ExoSocialActivity baseActivity)
        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

        List<ExoSocialActivity> getActivitiesOfConnections​(Identity ownerIdentity,
                                                           int offset,
                                                           int limit)
        Gets activities of connections of an identity with offset, limit.
        Parameters:
        ownerIdentity -
        offset -
        limit -
        Returns:
        Since:
        1.2.0-Beta3
      • getActivityIdsOfConnections

        List<String> getActivityIdsOfConnections​(Identity ownerIdentity,
                                                 int offset,
                                                 int limit)
        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 anymore
        Gets 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

        int getNumberOfActivitiesOfConnections​(Identity ownerIdentity)
        Gets the count of the activities of connections who connected with an identity.
        Parameters:
        ownerIdentity -
        Returns:
        Since:
        1.2.0-Beta3
      • getNumberOfActivitiesOfConnectionsForUpgrade

        int getNumberOfActivitiesOfConnectionsForUpgrade​(Identity ownerIdentity)
        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

        List<ExoSocialActivity> getActivitiesOfIdentity​(Identity ownerIdentity,
                                                        long offset,
                                                        long limit)
        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

        List<ExoSocialActivity> getUserSpacesActivities​(Identity ownerIdentity,
                                                        int offset,
                                                        int limit)
        Gets the activities of spaces where identity can access (manager or member).
        Parameters:
        ownerIdentity -
        offset -
        limit -
        Returns:
        Since:
        1.2.0-Beta3
      • getUserSpacesActivityIds

        List<String> getUserSpacesActivityIds​(Identity ownerIdentity,
                                              int offset,
                                              int limit)
        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

        int getNumberOfUserSpacesActivities​(Identity ownerIdentity)
        Gets the number of activities of spaces where identity can access (manager or member).
        Parameters:
        ownerIdentity -
        Returns:
        Since:
        1.2.0-Beta3
      • getNumberOfUserSpacesActivitiesForUpgrade

        int getNumberOfUserSpacesActivitiesForUpgrade​(Identity ownerIdentity)
        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

        int getNumberOfNewerOnUserSpacesActivities​(Identity ownerIdentity,
                                                   ExoSocialActivity baseActivity)
        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

        int getNumberOfOlderOnUserSpacesActivities​(Identity ownerIdentity,
                                                   ExoSocialActivity baseActivity)
        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

        int getNumberOfComments​(ExoSocialActivity existingActivity)
        Gets the number of comments of an activity.
        Parameters:
        existingActivity -
        Returns:
        Since:
        1.2.0-Beta3
      • getNumberOfNewerComments

        int getNumberOfNewerComments​(ExoSocialActivity existingActivity,
                                     ExoSocialActivity baseComment)
        Gets the number of newer comments of an activity based on a comment.
        Parameters:
        existingActivity -
        baseComment -
        Returns:
        Since:
        1.2.0-Beta3
      • getNumberOfOlderComments

        int getNumberOfOlderComments​(ExoSocialActivity existingActivity,
                                     ExoSocialActivity baseComment)
        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
      • updateActivity

        void updateActivity​(ExoSocialActivity existingActivity)
                     throws ActivityStorageException
        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

        int getNumberOfNewerOnActivityFeed​(Identity ownerIdentity,
                                           Long sinceTime)
        Gets the list of newer activities feed based on an existing postedTime.
        Parameters:
        ownerIdentity -
        sinceTime -
        Returns:
        Since:
        4.0 Alpha01
      • getNumberOfNewerOnUserActivities

        int getNumberOfNewerOnUserActivities​(Identity ownerIdentity,
                                             Long sinceTime)
        Gets the number of newer activities based on an existing postedTime.
        Parameters:
        ownerIdentity -
        sinceTime -
        Returns:
        Since:
        4.0 Alpha01
      • getNumberOfNewerOnActivitiesOfConnections

        int getNumberOfNewerOnActivitiesOfConnections​(Identity ownerIdentity,
                                                      Long sinceTime)
        Gets the number of newer activities based on postedTime of connections.
        Parameters:
        ownerIdentity -
        sinceTime -
        Returns:
        Since:
        4.0 Alpha01
      • getNumberOfNewerOnUserSpacesActivities

        int getNumberOfNewerOnUserSpacesActivities​(Identity ownerIdentity,
                                                   Long sinceTime)
        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

        int getNumberOfSpaceActivities​(Identity spaceIdentity)
        Gets the number of newer activities of spaces where the identity can access.
        Parameters:
        spaceIdentity -
        Returns:
        Since:
        4.0 Alpha01
      • getNumberOfSpaceActivitiesForUpgrade

        int getNumberOfSpaceActivitiesForUpgrade​(Identity spaceIdentity)
        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

        List<ExoSocialActivity> getSpaceActivities​(Identity spaceIdentity,
                                                   int index,
                                                   int limit)
        Gets list of activities of spaces where the identity can access.
        Parameters:
        spaceIdentity -
        index -
        limit -
        Returns:
        Since:
        4.0 Alpha01
      • getSpaceActivityIds

        List<String> getSpaceActivityIds​(Identity spaceIdentity,
                                         int index,
                                         int limit)
        Gets list of activity ids of spaces where the identity can access.
        Parameters:
        spaceIdentity -
        index -
        limit -
        Returns:
        Since:
        4.3.0
      • getSpaceActivitiesForUpgrade

        List<ExoSocialActivity> getSpaceActivitiesForUpgrade​(Identity spaceIdentity,
                                                             int index,
                                                             int limit)
        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

        List<ExoSocialActivity> getActivitiesByPoster​(Identity posterIdentity,
                                                      int offset,
                                                      int limit)
        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

        int getNumberOfActivitiesByPoster​(Identity posterIdentity)
        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

        int getNumberOfActivitiesByPoster​(Identity ownerIdentity,
                                          Identity viewerIdentity)
        Gets the number of activities of poster.
        Parameters:
        viewerIdentity - The given viewer identity information.
        ownerIdentity - The given owner 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

        int getNumberOfNewerOnSpaceActivities​(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.
        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

        int getNumberOfOlderOnSpaceActivities​(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.
        Parameters:
        spaceIdentity -
        baseActivity -
        Returns:
        Since:
        4.0 Alpha01
      • getNumberOfNewerOnSpaceActivities

        int getNumberOfNewerOnSpaceActivities​(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.
        Parameters:
        spaceIdentity -
        sinceTime -
        Returns:
        Since:
        4.0 Alpha01
      • getNewerFeedActivities

        List<ExoSocialActivity> getNewerFeedActivities​(Identity owner,
                                                       Long sinceTime,
                                                       int limit)
        Gets feed activities base on since time.
        Parameters:
        owner -
        sinceTime -
        limit -
        Returns:
        Since:
        4.0
      • getNewerUserActivities

        List<ExoSocialActivity> getNewerUserActivities​(Identity owner,
                                                       Long sinceTime,
                                                       int limit)
        Gets activities of an user base on since time.
        Parameters:
        owner -
        sinceTime -
        limit -
        Returns:
        Since:
        4.0
      • getNewerUserSpacesActivities

        List<ExoSocialActivity> getNewerUserSpacesActivities​(Identity owner,
                                                             Long sinceTime,
                                                             int limit)
        Gets activities of an user on spaces base on since time.
        Parameters:
        owner -
        sinceTime -
        limit -
        Returns:
        Since:
        4.0
      • getNewerActivitiesOfConnections

        List<ExoSocialActivity> getNewerActivitiesOfConnections​(Identity owner,
                                                                Long sinceTime,
                                                                int limit)
        Gets connections' activities of an user base on since time.
        Parameters:
        owner -
        sinceTime -
        limit -
        Returns:
        Since:
        4.0
      • getNewerSpaceActivities

        List<ExoSocialActivity> getNewerSpaceActivities​(Identity owner,
                                                        Long sinceTime,
                                                        int limit)
        Gets space activities base on since time.
        Parameters:
        owner -
        sinceTime -
        limit -
        Returns:
        Since:
        4.0
      • getOlderFeedActivities

        List<ExoSocialActivity> getOlderFeedActivities​(Identity owner,
                                                       Long sinceTime,
                                                       int limit)
        Gets feed activities base on since time.
        Parameters:
        owner -
        sinceTime -
        limit -
        Returns:
        Since:
        4.0
      • getOlderUserActivities

        List<ExoSocialActivity> getOlderUserActivities​(Identity owner,
                                                       Long sinceTime,
                                                       int limit)
        Gets activities of an user base on since time.
        Parameters:
        owner -
        sinceTime -
        limit -
        Returns:
        Since:
        4.0
      • getOlderUserSpacesActivities

        List<ExoSocialActivity> getOlderUserSpacesActivities​(Identity owner,
                                                             Long sinceTime,
                                                             int limit)
        Gets activities of an user on spaces base on since time.
        Parameters:
        owner -
        sinceTime -
        limit -
        Returns:
        Since:
        4.0
      • getOlderActivitiesOfConnections

        List<ExoSocialActivity> getOlderActivitiesOfConnections​(Identity owner,
                                                                Long sinceTime,
                                                                int limit)
        Gets connections' activities of an user base on since time.
        Parameters:
        owner -
        sinceTime -
        limit -
        Returns:
        Since:
        4.0
      • getOlderSpaceActivities

        List<ExoSocialActivity> getOlderSpaceActivities​(Identity owner,
                                                        Long sinceTime,
                                                        int limit)
        Gets space activities base on since time.
        Parameters:
        owner -
        sinceTime -
        limit -
        Returns:
        Since:
        4.0
      • getNumberOfOlderOnActivityFeed

        int getNumberOfOlderOnActivityFeed​(Identity ownerIdentity,
                                           Long sinceTime)
        Gets the list of older activities feed based on an existing postedTime.
        Parameters:
        ownerIdentity -
        sinceTime -
        Returns:
        Since:
        4.0
      • getNumberOfOlderOnUserActivities

        int getNumberOfOlderOnUserActivities​(Identity ownerIdentity,
                                             Long sinceTime)
        Gets the number of older activities based on an existing postedTime.
        Parameters:
        ownerIdentity -
        sinceTime -
        Returns:
        Since:
        4.0
      • getNumberOfOlderOnActivitiesOfConnections

        int getNumberOfOlderOnActivitiesOfConnections​(Identity ownerIdentity,
                                                      Long sinceTime)
        Gets the number of older activities based on postedTime of connections.
        Parameters:
        ownerIdentity -
        sinceTime -
        Returns:
        Since:
        4.0
      • getNumberOfOlderOnUserSpacesActivities

        int getNumberOfOlderOnUserSpacesActivities​(Identity ownerIdentity,
                                                   Long sinceTime)
        Gets the number of older activities of spaces
        Parameters:
        ownerIdentity -
        sinceTime -
        Returns:
        Since:
        4.0
      • getNumberOfOlderOnSpaceActivities

        int getNumberOfOlderOnSpaceActivities​(Identity ownerIdentity,
                                              Long sinceTime)
        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

        int getNumberOfNewerComments​(ExoSocialActivity existingActivity,
                                     Long sinceTime)
        Gets the number of newer comments
        Parameters:
        existingActivity -
        sinceTime -
        Returns:
        Since:
        4.0
      • getNumberOfOlderComments

        int getNumberOfOlderComments​(ExoSocialActivity existingActivity,
                                     Long sinceTime)
        Gets the number of older comments
        Parameters:
        existingActivity -
        sinceTime -
        Returns:
        Since:
        4.0
      • getAllActivities

        List<ExoSocialActivity> getAllActivities​(int index,
                                                 int limit)
        Get all activities
        Parameters:
        index -
        limit -
        Returns:
      • getActivities

        List<ExoSocialActivity> getActivities​(List<String> activityIdList)
        Load activities switch list of IDs
        Parameters:
        activityIdList -
        Returns:
      • getStreamFeedOwnerIds

        default Set<Long> 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)
        Parameters:
        identity -
        Returns:
        Set of Identity technical identifier
      • hideActivity

        default ExoSocialActivity hideActivity​(String activityId)
        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

        default boolean isActivityExists​(String activityId)
        Parameters:
        activityId - ExoSocialActivity technical identifier
        Returns:
        true if activity exists else false