public class NotificationServiceImpl extends Object implements NotificationService
Constructor and Description |
---|
NotificationServiceImpl(DataObjectService dataObjectService,
NotificationMessageContentService messageContentService,
NotificationAuthorizationService notificationAuthorizationService,
NotificationRecipientService notificationRecipientService,
NotificationMessageDeliveryService notificationMessageDeliveryService,
NotificationDao notDao)
Constructs a NotificationServiceImpl class instance.
|
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.
|
void |
dismissNotificationMessageDelivery(NotificationMessageDelivery nmd,
String user,
String cause) |
NotificationBo |
getNotification(Long id)
This is the default implementation that uses the businessObjectDao.
|
Collection |
getNotificationsForRecipientByType(String contentTypeName,
String recipientId)
This is the default implementation that uses the businessObjectDao and its findMatching method.
|
NotificationResponseBo |
sendNotification(NotificationBo notification)
This method allows consumers to send notification messages.
|
NotificationResponseBo |
sendNotification(String notificationMessageAsXml)
This method is responsible for parsing out the notification message which is sent in as a String
of XML.
|
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
|
public NotificationServiceImpl(DataObjectService dataObjectService, NotificationMessageContentService messageContentService, NotificationAuthorizationService notificationAuthorizationService, NotificationRecipientService notificationRecipientService, NotificationMessageDeliveryService notificationMessageDeliveryService, NotificationDao notDao)
dataObjectService
- persistence layer to datasource.messageContentService
- notificationAuthorizationService
- notificationRecipientService
- notificationMessageDeliveryService
- public NotificationBo getNotification(Long id)
getNotification
in interface NotificationService
NotificationService.getNotification(java.lang.Long)
public NotificationResponseBo sendNotification(String notificationMessageAsXml) throws IOException, XmlException
sendNotification
in interface NotificationService
IOException
XmlException
NotificationService.sendNotification(java.lang.String)
public NotificationResponseBo sendNotification(NotificationBo notification)
NotificationService
sendNotification
in interface NotificationService
NotificationService.sendNotification(org.kuali.rice.ken.bo.NotificationBo)
public Collection getNotificationsForRecipientByType(String contentTypeName, String recipientId)
getNotificationsForRecipientByType
in interface NotificationService
contentTypeName
- the name of the content typerecipientId
- the recipient idNotificationService.getNotificationsForRecipientByType(java.lang.String, java.lang.String)
public void dismissNotificationMessageDelivery(Long id, String user, String cause)
NotificationService
dismissNotificationMessageDelivery
in interface NotificationService
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)org.kuali.rice.ken.service.NotificationService#dismissNotificationMessageDelivery(java.lang.Long, java.lang.String)
public void dismissNotificationMessageDelivery(NotificationMessageDelivery nmd, String user, String cause)
org.kuali.rice.ken.service.NotificationService#dismissNotificationMessageDelivery(org.kuali.rice.ken.bo.NotificationMessageDelivery, java.lang.String, java.lang.String)
public Collection<NotificationBo> takeNotificationsForResolution()
takeNotificationsForResolution
in interface NotificationService
public void unlockNotification(NotificationBo notification)
unlockNotification
in interface NotificationService
notification
- the notification object to unlockCopyright © 2005–2016 The Kuali Foundation. All rights reserved.