public class HBaseNotificationImpl extends java.lang.Object implements INotification
Constructor and Description |
---|
HBaseNotificationImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
deleteNotification(java.lang.String ticket,
java.lang.String notificationId)
Deletes a notification by calling the dequeue method on
the queueitem.
|
java.util.List<Notification> |
getNotifications(java.lang.String ticket,
java.lang.String eventName,
int maxToReturn)
Gets notifications for user
|
boolean |
sendNotification(SendNotificationRequest request)
Creates and sends a new notification.
|
public boolean sendNotification(SendNotificationRequest request)
INotification
sendNotification
in interface INotification
request
- a SendNotificationRequest
public java.util.List<Notification> getNotifications(java.lang.String ticket, java.lang.String eventName, int maxToReturn)
INotification
getNotifications
in interface INotification
maxToReturn
- - if the eventName is null or empty, the implementation should return all events.
If the maxToReturn is -1, the implementation should return all notifications. If the user has no notifications,
this method will return an empty Listpublic boolean deleteNotification(java.lang.String ticket, java.lang.String notificationId)
INotification
deleteNotification
in interface INotification
ticket
- an authentication ticketnotificationId
- a valid workitem IDs to be completed