Class BaseNotificationSender
java.lang.Object
com.liferay.portal.workflow.kaleo.runtime.notification.BaseNotificationSender
- All Implemented Interfaces:
NotificationSender
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voiddoSendNotification(Map<com.liferay.portal.workflow.kaleo.definition.NotificationReceptionType, Set<NotificationRecipient>> notificationRecipientsMap, String defaultSubject, String notificationMessage, ExecutionContext executionContext) protected Set<NotificationRecipient>getDeliverableNotificationRecipients(Set<NotificationRecipient> notificationRecipients, int notificationDeliveryType) protected Map<com.liferay.portal.workflow.kaleo.definition.NotificationReceptionType,Set<NotificationRecipient>> getNotificationRecipientsMap(List<com.liferay.portal.workflow.kaleo.model.KaleoNotificationRecipient> kaleoNotificationRecipients, ExecutionContext executionContext) protected Set<NotificationRecipient>retrieveNotificationRecipients(Map<com.liferay.portal.workflow.kaleo.definition.NotificationReceptionType, Set<NotificationRecipient>> notificationRecipientsMap, com.liferay.portal.workflow.kaleo.definition.NotificationReceptionType notificationReceptionType) voidsendNotification(List<com.liferay.portal.workflow.kaleo.model.KaleoNotificationRecipient> kaleoNotificationRecipients, String defaultSubject, String notificationMessage, ExecutionContext executionContext) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.liferay.portal.workflow.kaleo.runtime.notification.NotificationSender
getNotificationType
-
Field Details
-
notificationRecipientBuilderRegistry
-
-
Constructor Details
-
BaseNotificationSender
public BaseNotificationSender()
-
-
Method Details
-
sendNotification
public void sendNotification(List<com.liferay.portal.workflow.kaleo.model.KaleoNotificationRecipient> kaleoNotificationRecipients, String defaultSubject, String notificationMessage, ExecutionContext executionContext) throws NotificationMessageSenderException - Specified by:
sendNotificationin interfaceNotificationSender- Throws:
NotificationMessageSenderException
-
doSendNotification
protected abstract void doSendNotification(Map<com.liferay.portal.workflow.kaleo.definition.NotificationReceptionType, Set<NotificationRecipient>> notificationRecipientsMap, String defaultSubject, String notificationMessage, ExecutionContext executionContext) throws Exception- Throws:
Exception
-
getDeliverableNotificationRecipients
protected Set<NotificationRecipient> getDeliverableNotificationRecipients(Set<NotificationRecipient> notificationRecipients, int notificationDeliveryType) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getNotificationRecipientsMap
protected Map<com.liferay.portal.workflow.kaleo.definition.NotificationReceptionType,Set<NotificationRecipient>> getNotificationRecipientsMap(List<com.liferay.portal.workflow.kaleo.model.KaleoNotificationRecipient> kaleoNotificationRecipients, ExecutionContext executionContext) throws Exception - Throws:
Exception
-
retrieveNotificationRecipients
protected Set<NotificationRecipient> retrieveNotificationRecipients(Map<com.liferay.portal.workflow.kaleo.definition.NotificationReceptionType, Set<NotificationRecipient>> notificationRecipientsMap, com.liferay.portal.workflow.kaleo.definition.NotificationReceptionType notificationReceptionType)
-