public abstract class BaseNotificationSender extends java.lang.Object implements NotificationSender
Modifier and Type | Field and Description |
---|---|
protected NotificationRecipientBuilderRegistry |
notificationRecipientBuilderRegistry |
Constructor and Description |
---|
BaseNotificationSender() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
doSendNotification(java.util.Map<NotificationReceptionType,java.util.Set<NotificationRecipient>> notificationRecipientsMap,
java.lang.String defaultSubject,
java.lang.String notificationMessage,
ExecutionContext executionContext) |
protected java.util.Map<NotificationReceptionType,java.util.Set<NotificationRecipient>> |
getNotificationRecipientsMap(java.util.List<KaleoNotificationRecipient> kaleoNotificationRecipients,
ExecutionContext executionContext) |
protected java.util.Set<NotificationRecipient> |
retrieveNotificationRecipients(java.util.Map<NotificationReceptionType,java.util.Set<NotificationRecipient>> notificationRecipientsMap,
NotificationReceptionType notificationReceptionType) |
void |
sendNotification(java.util.List<KaleoNotificationRecipient> kaleoNotificationRecipients,
java.lang.String defaultSubject,
java.lang.String notificationMessage,
ExecutionContext executionContext) |
protected NotificationRecipientBuilderRegistry notificationRecipientBuilderRegistry
public void sendNotification(java.util.List<KaleoNotificationRecipient> kaleoNotificationRecipients, java.lang.String defaultSubject, java.lang.String notificationMessage, ExecutionContext executionContext) throws NotificationMessageSenderException
sendNotification
in interface NotificationSender
NotificationMessageSenderException
protected abstract void doSendNotification(java.util.Map<NotificationReceptionType,java.util.Set<NotificationRecipient>> notificationRecipientsMap, java.lang.String defaultSubject, java.lang.String notificationMessage, ExecutionContext executionContext) throws java.lang.Exception
java.lang.Exception
protected java.util.Map<NotificationReceptionType,java.util.Set<NotificationRecipient>> getNotificationRecipientsMap(java.util.List<KaleoNotificationRecipient> kaleoNotificationRecipients, ExecutionContext executionContext) throws java.lang.Exception
java.lang.Exception
protected java.util.Set<NotificationRecipient> retrieveNotificationRecipients(java.util.Map<NotificationReceptionType,java.util.Set<NotificationRecipient>> notificationRecipientsMap, NotificationReceptionType notificationReceptionType)