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 Details

    • NotificationRecipient

      public NotificationRecipient(NotificationAssignee assignee, NotificationChannelType channel, Locale preferredLocale, List<String> targetEndpoints)
      Creates a new NotificationRecipient instance.
      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 Details

    • 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.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object