|
||||||||||
| 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<NotificationBo>
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,
DataObjectService dataObjectService,
org.springframework.transaction.PlatformTransactionManager txManager,
ExecutorService executor)
Constructs a NotificationMessageDeliveryDispatchServiceImpl instance. |
|
| Method Summary | |
|---|---|
protected Collection<Object> |
processWorkItems(Collection<NotificationBo> 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<NotificationBo> |
takeAvailableWorkItems()
Obtains and marks as taken all unresolved (and untaken) notifications |
protected void |
unlockWorkItem(NotificationBo 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,
DataObjectService dataObjectService,
org.springframework.transaction.PlatformTransactionManager txManager,
ExecutorService executor)
notificationRecipientService - dataObjectService - txManager - executor - | Method Detail |
|---|
protected Collection<NotificationBo> takeAvailableWorkItems()
takeAvailableWorkItems in class ConcurrentJob<NotificationBo>protected Collection<Object> processWorkItems(Collection<NotificationBo> notifications)
processWorkItems in class ConcurrentJob<NotificationBo>notifications - the Notification for which to generate message deliveries
protected void unlockWorkItem(NotificationBo notification)
ConcurrentJob
unlockWorkItem in class ConcurrentJob<NotificationBo>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 | |||||||||