Class NotificationRecipient
- java.lang.Object
-
- de.xima.fc.notification.ms.impl.processors.NotificationRecipient
-
public final class NotificationRecipient extends Object
A resolved recipient for a notification, including it's preferred locale and target endpoints.
-
-
Constructor Summary
Constructors Constructor Description NotificationRecipient(NotificationAssignee assignee, NotificationChannelType channel, Locale preferredLocale, List<String> targetEndpoints)Creates a newNotificationRecipientinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)NotificationAssigneegetAssignee()The assignee representing the recipient.NotificationChannelTypegetChannel()The notification channel type (e.g., EMAIL).LocalegetPreferredLocale()The preferred locale of the recipient for localization purposes.List<String>getTargetEndpoints()The list of target endpoints (e.g., email addresses) for sending the notification.inthashCode()StringtoString()
-
-
-
Constructor Detail
-
NotificationRecipient
public NotificationRecipient(NotificationAssignee assignee, NotificationChannelType channel, Locale preferredLocale, List<String> targetEndpoints)
Creates a newNotificationRecipientinstance.- Parameters:
assignee- The assignee representing the recipient.channel- The notification channel type (e.g., EMAIL).preferredLocale- The preferred locale of the recipient for localization purposes.targetEndpoints- The list of target endpoints (e.g., email addresses) for sending the notification.
-
-
Method Detail
-
getAssignee
public NotificationAssignee getAssignee()
The assignee representing the recipient.
-
getChannel
public NotificationChannelType getChannel()
The notification channel type (e.g., EMAIL).
-
getPreferredLocale
public Locale getPreferredLocale()
The preferred locale of the recipient for localization purposes.
-
getTargetEndpoints
public List<String> getTargetEndpoints()
The list of target endpoints (e.g., email addresses) for sending the notification.
-
-