| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.ken.service.impl.ConcurrentJob<Notification>
org.kuali.rice.ken.service.impl.NotificationMessageDeliveryResolverServiceImpl
public class NotificationMessageDeliveryResolverServiceImpl
This is the default out-of-the-box implementation that leverages the status flag on a notification (RESOLVED versus UNRESOLVED) to determine whether the notification's message deliveries need to be resolved or not. This also looks at the start and auto remove dates and times.
| Field Summary | 
|---|
| Fields inherited from class org.kuali.rice.ken.service.impl.ConcurrentJob | 
|---|
| executor, txManager | 
| Constructor Summary | |
|---|---|
| NotificationMessageDeliveryResolverServiceImpl(NotificationService notificationService,
                                                                                             NotificationRecipientService notificationRecipientService,
                                                                                             GenericDao businessObjectDao,
                                                                                             org.springframework.transaction.PlatformTransactionManager txManager,
                                                                                             ExecutorService executor,
                                                                                             UserPreferenceService userPreferenceService)Constructs a NotificationMessageDeliveryDispatchServiceImpl instance. | |
| Method Summary | |
|---|---|
| protected  Collection<Object> | processWorkItems(Collection<Notification> notifications)Generates all message deliveries for a given notification and save thems to the database. | 
|  ProcessingResult | resolveNotificationMessageDeliveries()This method is responsible for resolving the list of NotificationMessageDelivery records for a given notification. | 
| protected  Collection<Notification> | takeAvailableWorkItems()Obtains and marks as taken all unresolved (and untaken) notifications | 
| protected  void | unlockWorkItem(Notification notification)Template method that subclasses should override to unlock a given work item when procesing has failed. | 
| Methods inherited from class org.kuali.rice.ken.service.impl.ConcurrentJob | 
|---|
| createNewTransaction, groupWorkItems, run, unlockWorkItemAtomically | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public NotificationMessageDeliveryResolverServiceImpl(NotificationService notificationService,
                                                      NotificationRecipientService notificationRecipientService,
                                                      GenericDao businessObjectDao,
                                                      org.springframework.transaction.PlatformTransactionManager txManager,
                                                      ExecutorService executor,
                                                      UserPreferenceService userPreferenceService)
notificationRecipientService - businessObjectDao - txManager - executor - userPreferenceService - | Method Detail | 
|---|
protected Collection<Notification> takeAvailableWorkItems()
takeAvailableWorkItems in class ConcurrentJob<Notification>protected Collection<Object> processWorkItems(Collection<Notification> notifications)
processWorkItems in class ConcurrentJob<Notification>notification - the Notification for which to generate message deliveries
protected void unlockWorkItem(Notification notification)
ConcurrentJob
unlockWorkItem in class ConcurrentJob<Notification>notification - the work item to unlockConcurrentJob.unlockWorkItem(java.lang.Object)public ProcessingResult resolveNotificationMessageDeliveries()
resolveNotificationMessageDeliveries in interface NotificationMessageDeliveryResolverServiceNotificationMessageDeliveryResolverService.resolveNotificationMessageDeliveries()| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||