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
Constructors Constructor Description CertificateExpirationNotificationProcessor(MsNotificationsLocalizer localizer, INotificationHistoryService notificationHistoryService, AccessChecker accessChecker, de.xima.fc.mail.template.MailTemplateService mailTemplateService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<NotificationSendRequest>process(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 Detail
-
CertificateExpirationNotificationProcessor
@Inject public CertificateExpirationNotificationProcessor(MsNotificationsLocalizer localizer, INotificationHistoryService notificationHistoryService, AccessChecker accessChecker, de.xima.fc.mail.template.MailTemplateService mailTemplateService)
-
-
Method Detail
-
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
public boolean supports(NotificationType notificationType)
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
-
-