Class CertificateExpirationNotificationProcessor
java.lang.Object
de.xima.fc.notification.ms.impl.processors.CertificateExpirationNotificationProcessor
- All Implemented Interfaces:
NotificationPreProcessor<CertificateExpirationEventPayload>
@ApplicationScoped
public class CertificateExpirationNotificationProcessor
extends Object
implements NotificationPreProcessor<CertificateExpirationEventPayload>
Pre-processor for certificate expiration notifications. This class processes notification events related to
certificate expirations, filters recipients based on their access rights, and prepares email content for notification
sending.
- Since:
- 8.5.0
-
Constructor Summary
ConstructorsConstructorDescriptionCertificateExpirationNotificationProcessor(MsNotificationsLocalizer localizer, INotificationHistoryService notificationHistoryService, AccessChecker accessChecker, de.xima.fc.mail.template.MailTemplateService mailTemplateService) -
Method Summary
Modifier and TypeMethodDescriptionprocess(NotificationEvent<CertificateExpirationEventPayload> 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.
-
Constructor Details
-
CertificateExpirationNotificationProcessor
@Inject public CertificateExpirationNotificationProcessor(MsNotificationsLocalizer localizer, INotificationHistoryService notificationHistoryService, AccessChecker accessChecker, de.xima.fc.mail.template.MailTemplateService mailTemplateService)
-
-
Method Details
-
process
public List<NotificationSendRequest> process(NotificationEvent<CertificateExpirationEventPayload> notificationEvent, List<NotificationRecipient> recipients) Description copied from interface:NotificationPreProcessorProcesses the given notification event and list of recipients, returning a list of prepared notification send requests.- Specified by:
processin interfaceNotificationPreProcessor<CertificateExpirationEventPayload>- Parameters:
notificationEvent- the notification event to processrecipients- the list of potential recipients for the notification- Returns:
- a list of prepared notification send requests
-
supports
Description copied from interface:NotificationPreProcessorChecks if this pre-processor supports the given notification type.- Specified by:
supportsin interfaceNotificationPreProcessor<CertificateExpirationEventPayload>- Parameters:
notificationType- the notification type to check- Returns:
- true if the pre-processor supports the notification type, false otherwise
-