Interface NotificationService
public interface NotificationService
Provides methods concerning
UserNotifications.-
Method Summary
Modifier and Type Method Description java.util.List<UserNotification>fetchUserNotifications(java.util.function.Predicate<UserNotification> predicate)Returns a list of user notifications.voidpublishUserNotification(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 benullto return all existing user notifications.- Returns:
- A list of user notifications.
- 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.
-