Constructor and Description |
---|
EmailNotifier() |
Modifier and Type | Method and Description |
---|---|
NotificationType |
getNotificationType()
Indicates the type of notifications sent by this notifier
|
void |
initialize(NotificationConfig notificationConfig)
Initializes the Notifier to be able to set up connects to begin
performing notification operations.
|
void |
notify(String subject,
String message,
String... emailAddrs)
Sends a notification to a destination
|
void |
notifyAdmins(String subject,
String message)
Sends a notification to configured admins
|
protected void |
setAdminEmails(List<String> adminEmails)
Intended for testing only
|
protected void |
setEmailer(Emailer emailer)
Intended for testing only
|
public void initialize(NotificationConfig notificationConfig)
Notifier
initialize
in interface Notifier
protected void setEmailer(Emailer emailer)
public NotificationType getNotificationType()
Notifier
getNotificationType
in interface Notifier
public void notify(String subject, String message, String... emailAddrs)
Notifier
public void notifyAdmins(String subject, String message)
Notifier
notifyAdmins
in interface Notifier
subject
- the subject of the notificationmessage
- the actual notification messageCopyright © 2009–2014 DuraSpace. All rights reserved.