Schnittstelle NotificationService
public interface NotificationService
Provides methods concerning
UserNotification
s.-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfetchUserNotifications
(Predicate<UserNotification> predicate) Returns a list of user notifications.void
publishUserNotification
(UserNotification notification) Publishes a user notification.
-
Methodendetails
-
fetchUserNotifications
List<UserNotification> fetchUserNotifications(Predicate<UserNotification> predicate) throws KernelRuntimeException Returns a list of user notifications.- Parameter:
predicate
- A filter predicate that accepts the user notifications to be returned. May benull
to return all existing user notifications.- Gibt zurück:
- A list of user notifications, in the order in which they were published.
- Löst aus:
KernelRuntimeException
- In case there is an exception executing this method.
-
publishUserNotification
Publishes a user notification.- Parameter:
notification
- The notification to be published.- Löst aus:
KernelRuntimeException
- In case there is an exception executing this method.
-