Interface NotificationPlugin

  • All Superinterfaces:
    io.vertigo.core.node.component.CoreComponent, io.vertigo.core.node.component.Plugin
    All Known Implementing Classes:
    MemoryNotificationPlugin, RedisNotificationPlugin

    public interface NotificationPlugin
    extends io.vertigo.core.node.component.Plugin
    Author:
    pchretien
    • Method Detail

      • send

        void send​(NotificationEvent notificationEvent)
        Parameters:
        notificationEvent - Notification to send
      • getCurrentNotifications

        List<Notification> getCurrentNotifications​(UID<Account> account)
        Parameters:
        account - Accout uri
        Returns:
        All notifications for this account
      • remove

        void remove​(UID<Account> accountURI,
                    UUID notificationUUID)
        Parameters:
        accountURI - Account uri
        notificationUUID - Notification uuid
      • removeAll

        void removeAll​(String type,
                       String targetUrl)
        Parameters:
        type - Notification's type
        targetUrl - Target URL, use to filter all notifications to remove
      • updateUserContent

        void updateUserContent​(UID<Account> accountURI,
                               UUID notificationUUID,
                               String userContent)
        Parameters:
        accountURI - Account uri
        notificationUUID - Notification uuid
        userContent - User Content