Class NotificationManagerImpl

java.lang.Object
io.vertigo.social.impl.notification.NotificationManagerImpl
All Implemented Interfaces:
io.vertigo.core.node.component.Component, io.vertigo.core.node.component.CoreComponent, io.vertigo.core.node.component.Manager, NotificationManager

public final class NotificationManagerImpl extends Object implements NotificationManager
Author:
pchretien, npiedeloup, btounkara
  • Constructor Details

    • NotificationManagerImpl

      @Inject public NotificationManagerImpl(NotificationPlugin notificationsPlugin)
      Parameters:
      notificationsPlugin - Notifications plugin
  • Method Details

    • send

      public void send(Notification notification, Set<io.vertigo.datamodel.data.model.UID<io.vertigo.account.account.Account>> accountURIs)
      Sends a notification to a set of users
      Specified by:
      send in interface NotificationManager
      Parameters:
      notification - Notification
      accountURIs - Destination users
    • getCurrentNotifications

      public List<Notification> getCurrentNotifications(io.vertigo.datamodel.data.model.UID<io.vertigo.account.account.Account> userProfileURI)
      Retrieves all notifications for one account
      Specified by:
      getCurrentNotifications in interface NotificationManager
      Parameters:
      userProfileURI - Account
      Returns:
      List notifications
    • remove

      public void remove(io.vertigo.datamodel.data.model.UID<io.vertigo.account.account.Account> accountURI, UUID notificationUUID)
      Removes one notification.
      Specified by:
      remove in interface NotificationManager
      Parameters:
      accountURI - User account
      notificationUUID - Notification uid
    • removeAll

      public void removeAll(String type, String targetUrl)
      Removes all notifications by type and targetUrl. Could be use when a business module need to revoke its notifications
      Specified by:
      removeAll in interface NotificationManager
      Parameters:
      type - Notification type
      targetUrl - Notification's target Url
    • updateUserContent

      public void updateUserContent(io.vertigo.datamodel.data.model.UID<io.vertigo.account.account.Account> accountURI, UUID notificationUUID, String userContent)
      Description copied from interface: NotificationManager
      Updates the flag of the notification
      Specified by:
      updateUserContent in interface NotificationManager
      Parameters:
      accountURI - User account
      notificationUUID - Notification uid
      userContent - userContent