Interface NotificationService
public interface NotificationService
Provides methods concerning
UserNotification
s.-
Method Summary
Modifier and Type Method Description java.util.List<UserNotification>
fetchUserNotifications(java.util.function.Predicate<UserNotification> predicate)
Returns a list of user notifications.void
publishUserNotification(UserNotification notification)
Publishes a user notification.
-
Method Details
-
fetchUserNotifications
java.util.List<UserNotification> fetchUserNotifications(java.util.function.Predicate<UserNotification> predicate) throws KernelRuntimeExceptionReturns 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.
-