Class NotificationManagerImpl

  • All Implemented Interfaces:
    io.vertigo.core.node.component.Component, io.vertigo.core.node.component.CoreComponent, NotificationManager

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

      • NotificationManagerImpl

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

      • send

        public void send​(Notification notification,
                         Set<UID<Account>> accountURIs)
        Sends a notification to a set of users
        Specified by:
        send in interface NotificationManager
        Parameters:
        notification - Notification
        accountURIs - Destination users
      • remove

        public void remove​(UID<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​(UID<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