public interface NotificationService
Modifier and Type | Method and Description |
---|---|
void |
dismissNotificationMessageDelivery(Long id,
String user,
String cause)
This method will "dismiss"/remove a NotificationMessageDelivery with the specified cause.
|
NotificationBo |
getNotification(Long id)
This method will retrieve a Notification object from the system, given the id of the
actual notification record.
|
Collection<NotificationBo> |
getNotificationsForRecipientByType(String contentTypeName,
String recipientId)
This method will retrieve a collection of notifications given a contentTypeName and recipientId.
|
NotificationResponseBo |
sendNotification(NotificationBo notification)
This method allows consumers to send notification messages.
|
NotificationResponseBo |
sendNotification(String notificationMessageAsXml)
This method allows consumers to send notification messages.
|
Collection<NotificationBo> |
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(NotificationBo notification)
Unlocks specified notification
|
NotificationResponseBo sendNotification(String notificationMessageAsXml) throws IOException, XmlException
notificationMessageAsXml
- IOException
XmlException
NotificationResponseBo sendNotification(NotificationBo notification)
notification
- NotificationBo getNotification(Long id)
id
- Collection<NotificationBo> getNotificationsForRecipientByType(String contentTypeName, String recipientId)
contentTypeName
- the name of the content typerecipientId
- the recipient idvoid 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<NotificationBo> takeNotificationsForResolution()
void unlockNotification(NotificationBo notification)
notification
- the notification object to unlockCopyright © 2005–2015 The Kuali Foundation. All rights reserved.