public class NotificationProvider
extends java.lang.Object
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 and Description |
---|
NotificationProvider(DataSource dataSource,
NotificationConfiguration configuration,
NotificationApplicationListener listener)
Create a NotificationProvider registering your application.
|
Modifier and Type | Method and Description |
---|---|
void |
deleteNotification(java.lang.String user,
java.lang.String notificationId) |
java.lang.String |
getVersion()
Get the Notification API version.
|
void |
publishNotification(java.lang.String user,
Notification notification) |
public NotificationProvider(DataSource dataSource, NotificationConfiguration configuration, NotificationApplicationListener listener)
dataSource
- An unstarted DataSourceconfiguration
- NotificationConfiguration for your applicationlistener
- Callback to your application on notification channel and notification
item requests are received on thispublic java.lang.String getVersion()
Get the Notification API version.
public void publishNotification(java.lang.String user, Notification notification)
public void deleteNotification(java.lang.String user, java.lang.String notificationId)
Please send bug reports and comments to Caplin support