Class NotificationSendRequest
java.lang.Object
de.xima.fc.notification.ms.impl.processors.NotificationSendRequest
A request to send a notification to a set of recipients via a specific channel. It includes all necessary information
such as recipients, subject, body, and MIME type.
-
Method Summary
Modifier and TypeMethodDescriptionbooleangetBody()The body content of the notification message.The MIME type of the body content (e.g., text/plain, text/html).The type of notification channel through which the message should be sent (e.g., EMAIL).Optional: notification history that is to be persisted, once the notification was sent via the providedchannel.The type of notification.The recipient information for the notification.The set of recipient endpoints (e.g., email addresses) to which the notification should be sent.The subject of the notification message.inthashCode()booleanIndicates whether recipient privacy is required.static NotificationSendRequestof(NotificationRecipient recipient, NotificationType notificationType, Set<NotificationHistoryRecord> notificationHistory, Set<String> recipientEndpoints, boolean recipientPrivacyRequired, String subject, String body, String bodyContentType, NotificationChannelType channelType) Creates a newNotificationSendRequestinstance.toString()
-
Method Details
-
getRecipient
The recipient information for the notification. -
getNotificationType
The type of notification. -
getNotificationHistory
Optional: notification history that is to be persisted, once the notification was sent via the providedchannel. -
getRecipientEndpoints
-
isRecipientPrivacyRequired
public boolean isRecipientPrivacyRequired()Indicates whether recipient privacy is required. If true, each recipient will receive an individual message without seeing other recipients. -
getSubject
The subject of the notification message. -
getBody
The body content of the notification message. -
getBodyContentType
The MIME type of the body content (e.g., text/plain, text/html). -
getChannelType
The type of notification channel through which the message should be sent (e.g., EMAIL). -
equals
-
hashCode
-
toString
-
of
public static NotificationSendRequest of(NotificationRecipient recipient, NotificationType notificationType, Set<NotificationHistoryRecord> notificationHistory, Set<String> recipientEndpoints, boolean recipientPrivacyRequired, String subject, String body, String bodyContentType, NotificationChannelType channelType) Creates a newNotificationSendRequestinstance.- Parameters:
recipient- The recipient information for the notification.notificationType- The type of notification.notificationHistory- Optional: notification history that is to be persisted, once the notification was sent via the providedchannel.recipientEndpoints- The set of recipient endpoints (e.g., email addresses) to which the notification should be sent.recipientPrivacyRequired- Indicates whether recipient privacy is required. If true, each recipient will receive an individual message without seeing other recipients.subject- The subject of the notification message.body- The body content of the notification message.bodyContentType- The MIME type of the body content (e.g., text/plain, text/html).channelType- The type of notification channel through which the message should be sent (e.g., EMAIL).
-