Interface NotificationService


public interface NotificationService
Provides methods concerning UserNotifications.
  • Method Details

    • fetchUserNotifications

      List<UserNotification> fetchUserNotifications(Predicate<UserNotification> predicate) throws KernelRuntimeException
      Returns a list of user notifications.
      Parameters:
      predicate - A filter predicate that accepts the user notifications to be returned. May be null to return all existing user notifications.
      Returns:
      A list of user notifications, in the order in which they were published.
      Throws:
      KernelRuntimeException - In case there is an exception executing this method.
    • publishUserNotification

      void publishUserNotification(UserNotification notification) throws KernelRuntimeException
      Publishes a user notification.
      Parameters:
      notification - The notification to be published.
      Throws:
      KernelRuntimeException - In case there is an exception executing this method.