Class EmailNotifier
java.lang.Object
org.duracloud.common.notification.EmailNotifier
- All Implemented Interfaces:
Notifier
Notifier which pushes notifications out via email.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIndicates 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.voidSends 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
-
Constructor Details
-
EmailNotifier
public EmailNotifier()
-
-
Method Details
-
initialize
Description copied from interface:NotifierInitializes the Notifier to be able to set up connects to begin performing notification operations.- Specified by:
initializein interfaceNotifier
-
setEmailer
Intended for testing only -
setAdminEmails
Intended for testing only -
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
Description copied from interface:NotifierSends a notification to a destination -
notifyAdmins
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
-