Class NotificationProvider
java.lang.Object
com.caplin.datasource.notification.NotificationProvider
If you want to manage notifications within your application you MUST create an instance of this class. This class manages notification subscription requests and provides your NotificationApplicationListener with callbacks when users log in and log out of the system.
User logins are delegated to your application as NotificationApplicationListener.notificationChannelOpened(NotificationChannel)
calls. For details of how to send Notification
s, see NotificationChannel
.
-
Constructor Summary
ConstructorDescriptionNotificationProvider
(com.caplin.datasource.DataSource dataSource, NotificationConfiguration configuration, NotificationApplicationListener listener) Create a NotificationProvider registering your application. -
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteNotification
(String user, String notificationId) Get the Notification API version.void
publishNotification
(String user, Notification notification)
-
Constructor Details
-
NotificationProvider
public NotificationProvider(com.caplin.datasource.DataSource dataSource, NotificationConfiguration configuration, NotificationApplicationListener listener) Create a NotificationProvider registering your application.- Parameters:
dataSource
- An unstarted DataSourceconfiguration
- NotificationConfiguration for your applicationlistener
- Callback to your application on notification channel and notification item requests are received on this
-
-
Method Details
-
getVersion
Get the Notification API version.
- Returns:
- version Version of the Notification API in use
-
publishNotification
-
deleteNotification
-