public class NotificationManager extends Object
Constructor and Description |
---|
NotificationManager(Notifier... notifiers) |
Modifier and Type | Method and Description |
---|---|
void |
initializeNotifiers(Collection<NotificationConfig> notificationConfigs)
Initializes notifiers using the provided configuration.
|
void |
sendAdminNotification(NotificationType type,
String subject,
String message)
Sends a notification to system administrators through all configured
notifiers of a given type.
|
void |
sendNotification(NotificationType type,
String subject,
String message,
String... destinations)
Sends a notification through all configured notifiers of a given type.
|
public NotificationManager(Notifier... notifiers)
public void initializeNotifiers(Collection<NotificationConfig> notificationConfigs)
notificationConfigs
- set of configuration for notifierspublic void sendNotification(NotificationType type, String subject, String message, String... destinations)
type
- of notification to be sentsubject
- of the notificationmessage
- of the notificationdestinations
- where notification is to be sentpublic void sendAdminNotification(NotificationType type, String subject, String message)
type
- of notification to be sentsubject
- of the notificationmessage
- of the notificationCopyright © 2009–2014 DuraSpace. All rights reserved.