Interface NotificationPreProcessor<TPayload extends NotificationEventPayload>
- Type Parameters:
TPayload- The type of the notification event payload.
- All Known Implementing Classes:
CertificateExpirationNotificationProcessor
public interface NotificationPreProcessor<TPayload extends NotificationEventPayload>
A pre-processor for notification events that can modify or filter the list of recipients before notifications are
sent. An implementation of this interface should handle specific notification types and prepare the necessary data
for sending (e.g. rendering message body, subject, etc.).
-
Method Summary
Modifier and TypeMethodDescriptionprocess(NotificationEvent<TPayload> notificationEvent, List<NotificationRecipient> recipients) Processes the given notification event and list of recipients, returning a list of prepared notification send requests.booleansupports(NotificationType notificationType) Checks if this pre-processor supports the given notification type.
-
Method Details
-
process
List<NotificationSendRequest> process(NotificationEvent<TPayload> notificationEvent, List<NotificationRecipient> recipients) Processes the given notification event and list of recipients, returning a list of prepared notification send requests.- Parameters:
notificationEvent- the notification event to processrecipients- the list of potential recipients for the notification- Returns:
- a list of prepared notification send requests
-
supports
Checks if this pre-processor supports the given notification type.- Parameters:
notificationType- the notification type to check- Returns:
- true if the pre-processor supports the notification type, false otherwise
-