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 Detail

      • 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 process
        recipients - the list of potential recipients for the notification
        Returns:
        a list of prepared notification send requests
      • supports

        boolean supports​(NotificationType notificationType)
        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