Package org.kuali.rice.ken.service.impl
Class NotificationMessageDeliveryServiceImpl
java.lang.Object
org.kuali.rice.ken.service.impl.NotificationMessageDeliveryServiceImpl
- All Implemented Interfaces:
NotificationMessageDeliveryService
public class NotificationMessageDeliveryServiceImpl
extends Object
implements NotificationMessageDeliveryService
NotificationService implementation - this is the default out-of-the-box implementation of the service that uses the
businessObjectDao to get at the data via our OOTB DBMS.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Constructor Summary
ConstructorsConstructorDescriptionNotificationMessageDeliveryServiceImpl(org.kuali.rice.krad.data.DataObjectService dataObjectService, NotificationMessegeDeliveryDao ntdDao) Constructs a NotificationServiceImpl class instance. -
Method Summary
Modifier and TypeMethodDescriptionThis method will return all NotificationMessageDelivery objects in the system actual record.getNotificationMessageDeliveries(NotificationBo notification, String userRecipientId) This method will return all NotificationMessageDelievery objects generated for the given Notification for the given userThis is the default implementation that uses the businessObjectDao.This method will retrieve a NotificationMessageDelivery object from the system, given the external deliverer system id registered with the NotificationMessageDelivery.This method is responsible for atomically finding all untaken message deliveries that are ready to be autoremoved, marking them as taken and returning them to the caller for processing.This method is responsible for atomically finding all untaken, undelivered messagedeliveries, marking them as taken and returning them to the caller for processing.voidunlockMessageDelivery(NotificationMessageDelivery messageDelivery) Unlocks the specified messageDelivery object
-
Constructor Details
-
NotificationMessageDeliveryServiceImpl
public NotificationMessageDeliveryServiceImpl(org.kuali.rice.krad.data.DataObjectService dataObjectService, NotificationMessegeDeliveryDao ntdDao) Constructs a NotificationServiceImpl class instance.- Parameters:
dataObjectService-ntdDao-
-
-
Method Details
-
getNotificationMessageDelivery
This is the default implementation that uses the businessObjectDao.- Specified by:
getNotificationMessageDeliveryin interfaceNotificationMessageDeliveryService- Parameters:
id-- Returns:
- NotificationMessageDelivery
-
getNotificationMessageDeliveryByDelivererId
Description copied from interface:NotificationMessageDeliveryServiceThis method will retrieve a NotificationMessageDelivery object from the system, given the external deliverer system id registered with the NotificationMessageDelivery.- Specified by:
getNotificationMessageDeliveryByDelivererIdin interfaceNotificationMessageDeliveryService- Parameters:
id- the external deliverer system id- Returns:
- NotificationMessageDelivery
- See Also:
-
getNotificationMessageDeliveries
Description copied from interface:NotificationMessageDeliveryServiceThis method will return all NotificationMessageDelivery objects in the system actual record.- Specified by:
getNotificationMessageDeliveriesin interfaceNotificationMessageDeliveryService- Returns:
- List<NotificationMessageDelivery> list of NotificationMessageDelivery objects in the system
- See Also:
-
getNotificationMessageDeliveries
public Collection<NotificationMessageDelivery> getNotificationMessageDeliveries(NotificationBo notification, String userRecipientId) Description copied from interface:NotificationMessageDeliveryServiceThis method will return all NotificationMessageDelievery objects generated for the given Notification for the given user- Specified by:
getNotificationMessageDeliveriesin interfaceNotificationMessageDeliveryService- Parameters:
notification- the notification which generated the message deliveriesuserRecipientId- the id of the user whose message deliveries to obtain- Returns:
- collection of NotificationMessageDelivery objects generated for the given Notification for the given user
- See Also:
-
takeMessageDeliveriesForDispatch
This method is responsible for atomically finding all untaken, undelivered messagedeliveries, marking them as taken and returning them to the caller for processing. NOTE: it is important that this method execute in a SEPARATE dedicated transaction; either the caller should NOT be wrapped by Spring declarative transaction and this service should be wrapped (which is the case), or the caller should arrange to invoke this from within a newly created transaction).- Specified by:
takeMessageDeliveriesForDispatchin interfaceNotificationMessageDeliveryService- Returns:
- a list of available message deliveries that have been marked as taken by the caller
-
takeMessageDeliveriesForAutoRemoval
This method is responsible for atomically finding all untaken message deliveries that are ready to be autoremoved, marking them as taken and returning them to the caller for processing. NOTE: it is important that this method execute in a SEPARATE dedicated transaction; either the caller should NOT be wrapped by Spring declarative transaction and this service should be wrapped (which is the case), or the caller should arrange to invoke this from within a newly created transaction).- Specified by:
takeMessageDeliveriesForAutoRemovalin interfaceNotificationMessageDeliveryService- Returns:
- a list of notifications to be autoremoved that have been marked as taken by the caller
-
unlockMessageDelivery
Unlocks the specified messageDelivery object- Specified by:
unlockMessageDeliveryin interfaceNotificationMessageDeliveryService- Parameters:
messageDelivery- the message delivery to unlock
-