|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NotificationService
The NotificationService class is responsible for processing notification messages that come into the system. It also is able to retrieve notifications that have already been entered/processed by the system.
Method Summary | |
---|---|
void |
dismissNotificationMessageDelivery(Long id,
String user,
String cause)
This method will "dismiss"/remove a NotificationMessageDelivery with the specified cause. |
Notification |
getNotification(Long id)
This method will retrieve a Notification object from the system, given the id of the actual notification record. |
Collection<Notification> |
getNotificationsForRecipientByType(String contentTypeName,
String recipientId)
This method will retrieve a collection of notifications given a contentTypeName and recipientId. |
NotificationResponse |
sendNotification(Notification notification)
This method allows consumers to send notification messages. |
NotificationResponse |
sendNotification(String notificationMessageAsXml)
This method allows consumers to send notification messages. |
Collection<Notification> |
takeNotificationsForResolution()
This method is responsible for atomically finding all untaken, unresolved notifications that are ready to be sent, marking them as taken and returning them to the caller for processing. |
void |
unlockNotification(Notification notification)
Unlocks specified notification |
Method Detail |
---|
NotificationResponse sendNotification(String notificationMessageAsXml) throws IOException, InvalidXMLException
notificationMessageAsXml
-
IOException
InvalidXMLException
NotificationResponse sendNotification(Notification notification)
notification
-
Notification getNotification(Long id)
id
-
Collection<Notification> getNotificationsForRecipientByType(String contentTypeName, String recipientId)
contentTypeName
- the name of the content typerecipientId
- the recipient id
void dismissNotificationMessageDelivery(Long id, String user, String cause)
id
- the id of the NotificationMessageDelivery that was acted uponuser
- the user or entity that performed the dismissalcause
- the cause of the dismissal (e.g. an end user action or auto-removal by the system)Collection<Notification> takeNotificationsForResolution()
void unlockNotification(Notification notification)
notification
- the notification object to unlock
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |