public class AlertDispatcher
extends java.lang.Object
implements com.caplin.datasource.extensions.alerts.event.listeners.ClientNotificationListener
Send notifications for orders status changes.
Allowed statuses are configured by list of alert_on_status in adapters configuration.
Constructor and Description |
---|
AlertDispatcher(UserManager userManager,
AlertPersistenceManager persistenceManager,
com.caplin.datasource.extensions.alerts.NotificationPublisher alertPublisher,
java.util.List<java.lang.String> orderStatusesToAlert) |
Modifier and Type | Method and Description |
---|---|
void |
onNotificationRead(java.lang.String username,
java.util.List<com.caplin.datasource.extensions.alerts.update.Notification> notifications) |
void |
onOrderUpdate(OrderAlert orderAlert) |
void |
onOrderUpdateForSSOUser(OrderAlert orderAlert,
java.lang.String ssoUsername) |
void |
onUserSubscribed(java.lang.String username) |
void |
onUserUnsubscribed(java.lang.String username) |
public AlertDispatcher(UserManager userManager, AlertPersistenceManager persistenceManager, com.caplin.datasource.extensions.alerts.NotificationPublisher alertPublisher, java.util.List<java.lang.String> orderStatusesToAlert)
public void onOrderUpdate(OrderAlert orderAlert)
public void onOrderUpdateForSSOUser(OrderAlert orderAlert, java.lang.String ssoUsername)
public void onNotificationRead(java.lang.String username, java.util.List<com.caplin.datasource.extensions.alerts.update.Notification> notifications)
onNotificationRead
in interface com.caplin.datasource.extensions.alerts.event.listeners.ClientNotificationListener
public void onUserSubscribed(java.lang.String username)
onUserSubscribed
in interface com.caplin.datasource.extensions.alerts.event.listeners.ClientNotificationListener
public void onUserUnsubscribed(java.lang.String username)
onUserUnsubscribed
in interface com.caplin.datasource.extensions.alerts.event.listeners.ClientNotificationListener
Copyright © 2016 Caplin Systems.