Class EmailNotifier
- java.lang.Object
-
- org.duracloud.common.notification.EmailNotifier
-
-
Constructor Summary
Constructors Constructor Description EmailNotifier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NotificationTypegetNotificationType()Indicates the type of notifications sent by this notifiervoidinitialize(NotificationConfig notificationConfig)Initializes the Notifier to be able to set up connects to begin performing notification operations.voidnotify(String subject, String message, String... emailAddrs)Sends a notification to a destinationvoidnotifyAdmins(String subject, String message)Sends a notification to configured adminsprotected voidsetAdminEmails(List<String> adminEmails)Intended for testing onlyprotected voidsetEmailer(Emailer emailer)Intended for testing only
-
-
-
Method Detail
-
initialize
public void initialize(NotificationConfig notificationConfig)
Description copied from interface:NotifierInitializes the Notifier to be able to set up connects to begin performing notification operations.- Specified by:
initializein interfaceNotifier
-
setEmailer
protected void setEmailer(Emailer emailer)
Intended for testing only
-
getNotificationType
public NotificationType getNotificationType()
Description copied from interface:NotifierIndicates the type of notifications sent by this notifier- Specified by:
getNotificationTypein interfaceNotifier- Returns:
- the channel type of this notifier
-
notify
public void notify(String subject, String message, String... emailAddrs)
Description copied from interface:NotifierSends a notification to a destination
-
notifyAdmins
public void notifyAdmins(String subject, String message)
Description copied from interface:NotifierSends a notification to configured admins- Specified by:
notifyAdminsin interfaceNotifier- Parameters:
subject- the subject of the notificationmessage- the actual notification message
-
-