Package org.kuali.rice.kcb.service.impl
Class MessageDeliveryServiceImpl
java.lang.Object
org.kuali.rice.kcb.service.impl.MessageDeliveryServiceImpl
- All Implemented Interfaces:
MessageDeliveryService
MessageDeliveryService implementation
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteMessageDelivery(MessageDelivery messageDelivery) Deletes a MessageDeliveryThis method will return all MessageDelivery objects in the systemgetMessageDeliveries(Message message) This method will return all MessageDelievery objects generated for the given MessageThis method will retrieve a MessageDelivery object from the system, given the id of the actual record.This method will retrieve a MessageDelivery object from the system, given the external deliverer system id registered with the MessageDelivery.lockAndTakeMessageDeliveries(Long messageId, MessageDeliveryStatus[] statuses) Locks and takes all message deliveries of a given message in the system with any of the specified statuseslockAndTakeMessageDeliveries(MessageDeliveryStatus[] statuses) Locks and takes all message deliveries in the system with any of the specified statusessaveMessageDelivery(MessageDelivery delivery) Saves a MessageDeliveryvoidsetDataObjectService(DataObjectService dataObjectService) Sets the data object service.voidsetMaxProcessAttempts(int maxProcessAttempts) Sets the max processing attempts
-
Constructor Details
-
MessageDeliveryServiceImpl
public MessageDeliveryServiceImpl()
-
-
Method Details
-
setMaxProcessAttempts
public void setMaxProcessAttempts(int maxProcessAttempts) Sets the max processing attempts- Parameters:
maxProcessAttempts- the max delivery attempts
-
saveMessageDelivery
Description copied from interface:MessageDeliveryServiceSaves a MessageDelivery- Specified by:
saveMessageDeliveryin interfaceMessageDeliveryService- Parameters:
delivery- the MessageDelivery to save- See Also:
-
deleteMessageDelivery
Description copied from interface:MessageDeliveryServiceDeletes a MessageDelivery- Specified by:
deleteMessageDeliveryin interfaceMessageDeliveryService- Parameters:
messageDelivery- the MessageDelivery to delete- See Also:
-
getAllMessageDeliveries
Description copied from interface:MessageDeliveryServiceThis method will return all MessageDelivery objects in the system- Specified by:
getAllMessageDeliveriesin interfaceMessageDeliveryService- Returns:
- Collection<MessageDelivery> list of MessageDelivery objects in the system
- See Also:
-
getMessageDelivery
Description copied from interface:MessageDeliveryServiceThis method will retrieve a MessageDelivery object from the system, given the id of the actual record.- Specified by:
getMessageDeliveryin interfaceMessageDeliveryService- Parameters:
id-- Returns:
- MessageDelivery
- See Also:
-
getMessageDeliveryByDelivererSystemId
Description copied from interface:MessageDeliveryServiceThis method will retrieve a MessageDelivery object from the system, given the external deliverer system id registered with the MessageDelivery.- Specified by:
getMessageDeliveryByDelivererSystemIdin interfaceMessageDeliveryService- Parameters:
id- the external deliverer system id- Returns:
- MessageDelivery
- See Also:
-
getMessageDeliveries
Description copied from interface:MessageDeliveryServiceThis method will return all MessageDelievery objects generated for the given Message- Specified by:
getMessageDeliveriesin interfaceMessageDeliveryService- Parameters:
message- the message which generated the message deliveries- Returns:
- collection of NotificationMessageDelivery objects generated for the given Notification for the given user
- See Also:
-
lockAndTakeMessageDeliveries
Description copied from interface:MessageDeliveryServiceLocks and takes all message deliveries in the system with any of the specified statuses- Specified by:
lockAndTakeMessageDeliveriesin interfaceMessageDeliveryService- Parameters:
statuses- the statuses of message deliveries to take- Returns:
- a collection of message deliveries
-
lockAndTakeMessageDeliveries
public Collection<MessageDelivery> lockAndTakeMessageDeliveries(Long messageId, MessageDeliveryStatus[] statuses) Description copied from interface:MessageDeliveryServiceLocks and takes all message deliveries of a given message in the system with any of the specified statuses- Specified by:
lockAndTakeMessageDeliveriesin interfaceMessageDeliveryService- Parameters:
messageId- the id of the message whose deliveries to takestatuses- the statuses of message deliveries to take- Returns:
- a collection of message deliveries
-
setDataObjectService
Sets the data object service.- Parameters:
dataObjectService- service to persist data to the datasource
-