Interface NotificationService
public interface NotificationService
Provides methods concerning
UserNotification
s.-
Method Summary
Modifier and TypeMethodDescriptionfetchUserNotifications
(Predicate<UserNotification> predicate) Returns a list of user notifications.void
publishUserNotification
(UserNotification notification) Publishes a user notification.
-
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 benull
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
Publishes a user notification.- Parameters:
notification
- The notification to be published.- Throws:
KernelRuntimeException
- In case there is an exception executing this method.
-