|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.ken.service.impl.NotificationServiceImpl
public class NotificationServiceImpl
NotificationService implementation - this is the default out-of-the-box implementation of the service.
| Constructor Summary | |
|---|---|
NotificationServiceImpl(GenericDao businessObjectDao,
NotificationMessageContentService messageContentService,
NotificationAuthorizationService notificationAuthorizationService,
NotificationRecipientService notificationRecipientService,
NotificationWorkflowDocumentService notificationWorkflowDocumentService,
NotificationMessageDeliveryService notificationMessageDeliveryService,
NotificationDao notDao)
Constructs a NotificationServiceImpl class instance. |
|
| Method Summary | |
|---|---|
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)
|
Notification |
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. |
NotificationResponse |
sendNotification(Notification notification)
This method allows consumers to send notification messages. |
NotificationResponse |
sendNotification(String notificationMessageAsXml)
This method is responsible for parsing out the notification message which is sent in as a String of XML. |
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NotificationServiceImpl(GenericDao businessObjectDao,
NotificationMessageContentService messageContentService,
NotificationAuthorizationService notificationAuthorizationService,
NotificationRecipientService notificationRecipientService,
NotificationWorkflowDocumentService notificationWorkflowDocumentService,
NotificationMessageDeliveryService notificationMessageDeliveryService,
NotificationDao notDao)
businessObjectDao - messageContentService - notificationAuthorizationService - notificationRecipientService - notificationWorkflowDocumentService - notificationMessageDeliveryService - | Method Detail |
|---|
public Notification getNotification(Long id)
getNotification in interface NotificationServiceNotificationService.getNotification(java.lang.Long)
public NotificationResponse sendNotification(String notificationMessageAsXml)
throws IOException,
XmlException
sendNotification in interface NotificationServiceIOException
XmlExceptionNotificationService.sendNotification(java.lang.String)public NotificationResponse sendNotification(Notification notification)
NotificationService
sendNotification in interface NotificationServiceNotificationService.sendNotification(org.kuali.rice.ken.bo.Notification)
public Collection getNotificationsForRecipientByType(String contentTypeName,
String recipientId)
getNotificationsForRecipientByType in interface NotificationServicecontentTypeName - the name of the content typerecipientId - the recipient id
NotificationService.getNotificationsForRecipientByType(java.lang.String, java.lang.String)
public void dismissNotificationMessageDelivery(Long id,
String user,
String cause)
NotificationService
dismissNotificationMessageDelivery in interface NotificationServiceid - 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<Notification> takeNotificationsForResolution()
takeNotificationsForResolution in interface NotificationServicepublic void unlockNotification(Notification notification)
unlockNotification in interface NotificationServicenotification - the notification object to unlock
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||