Interface IActivityStreamManager

    • Method Detail

      • deleteActivity

        void deleteActivity​(String activityId)
                     throws PortalException
        Deletes an activity given its identifier.
        Parameters:
        activityId - the activity identifier.
        Throws:
        PortalException
        Since:
        8.2.0
      • deleteObjectType

        void deleteObjectType​(ActivityObjectType objectType)
                       throws PortalException
        Deletes an object type from the global registry. All activities that refers the specified object type are also deleted.
        Parameters:
        objectType - the object type.
        Throws:
        PortalException
        Since:
        8.2.0
      • deleteAction

        void deleteAction​(ActivityAction action)
                   throws PortalException
        Deletes an action. All activities that refers the specified action are also deleted.
        Parameters:
        action - the action to be deleted.
        Throws:
        PortalException - if the action could not be deleted.
        Since:
        8.2.0
      • createPriorityAndUserSearchQueryFilter

        ISearchQueryFilter createPriorityAndUserSearchQueryFilter​(double minimumPriority,
                                                                  String userId)
                                                           throws PortalException
        Returns a big data search query filter that filters the activities according to the ones the specified user is allowed to access and has a priority of at least the value specified.
        Parameters:
        minimumPriority - the minimum priority value.
        userId - the user identifier,
        Returns:
        the query filter.
        Throws:
        PortalException
        Since:
        8.2.0
      • markActivityAsRead

        void markActivityAsRead​(String activityId)
                         throws PortalException
        Marks an activity as read by the current user. If the activity is already marked as read by the current user, this method has no effect.
        Parameters:
        activityId - the activity identifier.
        Throws:
        PortalException - if the operation could not be completed.
        Since:
        8.2.0
      • markActivityAsUnread

        void markActivityAsUnread​(String activityId)
                           throws PortalException
        Marks an activity as unread by the current user. If the activity is already marked as unread by the current user, this method has no effect.
        Parameters:
        activityId - the activity identifier.
        Throws:
        PortalException - if the operation could not be completed.
        Since:
        8.2.0
      • isActivityRead

        boolean isActivityRead​(String activityId)
                        throws PortalException
        Verifies if an activity was already read by the current user.
        Parameters:
        activityId - the identifier of the activity to be verified.
        Returns:
        true if the current user read the activity.
        Throws:
        PortalException
        Since:
        8.2.0
      • getReadActivityIds

        Collection<String> getReadActivityIds​(long minimumTimeMillis)
        Returns the identifiers of activities read by the current user since the specified time millis.
        Parameters:
        minimumTimeMillis - the time millis specifying the minimum time value of activity read.
        Returns:
        the activity identifiers.
        Since:
        8.2.0