Interface SpaceWebNotificationService


public interface SpaceWebNotificationService
  • Field Details

  • Method Details

    • addPlugin

      void addPlugin(SpaceWebNotificationPlugin spaceWebNotification)
      Register the space web notification plugin
      Parameters:
      spaceWebNotification -
    • dispatch

      void dispatch(org.exoplatform.commons.api.notification.model.NotificationInfo notification, String username) throws Exception
      Dispatch notification info
      Parameters:
      notification -
      username -
      Throws:
      Exception
    • markAsUnread

      void markAsUnread(SpaceWebNotificationItem notificationItem) throws Exception
      Mark a space notification item as unread
      Parameters:
      notificationItem -
      Throws:
      Exception
    • markAsRead

      void markAsRead(SpaceWebNotificationItem notificationItem) throws Exception
      Mark a space notification item as read
      Parameters:
      notificationItem -
      Throws:
      Exception
    • markAllAsRead

      void markAllAsRead(long userIdentityId, long spaceId) throws Exception
      Mark a list of unread items per application as read to a given MetadataItem creatorId by a given Space identifier
      Parameters:
      userIdentityId - MetadataItem creatorId
      spaceId - Space spaceId
      Throws:
      Exception
    • countUnreadItemsByApplication

      Map<String,Long> countUnreadItemsByApplication(long creatorId, long spaceId)
      Get a list of unread items per application to a given MetadataItem creatorId by a given Space identifier
      Parameters:
      creatorId - MetadataItem creatorId
      spaceId - Space spaceId
      Returns:
      Map of application and unread items