Interface NotificationManager

  • All Superinterfaces:
    io.vertigo.core.node.component.Component, io.vertigo.core.node.component.CoreComponent
    All Known Implementing Classes:
    NotificationManagerImpl

    public interface NotificationManager
    extends io.vertigo.core.node.component.Component
    Author:
    pchretien, npiedeloup, btounkara
    • Method Detail

      • send

        void send​(Notification notification,
                  Set<UID<Account>> accountURIs)
        Sends a notification to a set of users
        Parameters:
        notification - Notification
        accountURIs - Destination users
      • getCurrentNotifications

        List<Notification> getCurrentNotifications​(UID<Account> accountURI)
        Retrieves all notifications for one account
        Parameters:
        accountURI - Account
        Returns:
        List notifications
      • remove

        void remove​(UID<Account> accountURI,
                    UUID notificationUUID)
        Removes one notification.
        Parameters:
        accountURI - User account
        notificationUUID - Notification uid
      • removeAll

        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
        Parameters:
        type - Notification type
        targetUrl - Notification's target Url
      • updateUserContent

        void updateUserContent​(UID<Account> accountURI,
                               UUID notificationUUID,
                               String userContent)
        Updates the flag of the notification
        Parameters:
        accountURI - User account
        notificationUUID - Notification uid
        userContent - userContent