use of com.yahoo.athenz.common.server.notification.NotificationEmail in project athenz by yahoo.
the class EmailNotificationService method notify.
@Override
public boolean notify(Notification notification) {
if (notification == null) {
return false;
}
NotificationEmail notificationAsEmail = notification.getNotificationAsEmail();
if (notificationAsEmail == null) {
return false;
}
final String subject = notificationAsEmail.getSubject();
final String body = notificationAsEmail.getBody();
Set<String> recipients = notificationAsEmail.getFullyQualifiedRecipientsEmail();
return sendEmail(recipients, subject, body);
}
Aggregations