Interface IActivityStreamManager

    • Field Detail

      • ACTION_ID_CREATE

        static final java.lang.String ACTION_ID_CREATE
        Identifier of the standard action of create. Indicates that the actor has created the object.

        For indicating an object was added to another object, use ACTION_ID_ADD.

        The opposite of this action is ACTION_ID_DELETE.

        Since:
        8.2.0
        See Also:
        Constant Field Values
      • ACTION_ID_UPDATE

        static final java.lang.String ACTION_ID_UPDATE
        Identifier of the standard action of update. Indicates that the actor has updated the object.
        Since:
        8.2.0
        See Also:
        Constant Field Values
      • ACTION_ID_DELETE

        static final java.lang.String ACTION_ID_DELETE
        Identifier of the standard action of delete. Indicates that the actor has deleted the object.

        For removing an object from another object, use ACTION_ID_REMOVE.

        The opposite of this action is ACTION_ID_CREATE.

        Since:
        8.2.0
        See Also:
        Constant Field Values
      • ACTION_ID_SHARE

        static final java.lang.String ACTION_ID_SHARE
        Identifier of the standard action of share. Indicates that the actor has shared the object to the target.
        Since:
        8.2.0
        See Also:
        Constant Field Values
    • Method Detail

      • deleteActivity

        void deleteActivity​(java.lang.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,
                                                                  java.lang.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​(java.lang.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​(java.lang.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​(java.lang.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

        java.util.Collection<java.lang.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