public class MessageDeliveryServiceImpl extends BusinessObjectServiceImpl implements MessageDeliveryService
dao
Constructor and Description |
---|
MessageDeliveryServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
deleteMessageDelivery(MessageDelivery messageDelivery)
Deletes a MessageDelivery
|
Collection<MessageDelivery> |
getAllMessageDeliveries()
This method will return all MessageDelivery objects in the system
|
Collection<MessageDelivery> |
getMessageDeliveries(Message message)
This method will return all MessageDelievery objects generated for the given Message
|
MessageDelivery |
getMessageDelivery(Long id)
This method will retrieve a MessageDelivery object from the system, given the id of the
actual record.
|
MessageDelivery |
getMessageDeliveryByDelivererSystemId(Long id)
This method will retrieve a MessageDelivery object from the system, given the external deliverer system id
registered with the MessageDelivery.
|
Collection<MessageDelivery> |
lockAndTakeMessageDeliveries(Long messageId,
MessageDeliveryStatus[] statuses)
Locks and takes all message deliveries of a given message in the system with any of the specified statuses
|
Collection<MessageDelivery> |
lockAndTakeMessageDeliveries(MessageDeliveryStatus[] statuses)
Locks and takes all message deliveries in the system with any of the specified statuses
|
void |
saveMessageDelivery(MessageDelivery delivery)
Saves a MessageDelivery
|
void |
setMaxProcessAttempts(int maxProcessAttempts)
Sets the max processing attempts
|
setGenericDao
public MessageDeliveryServiceImpl()
public void setMaxProcessAttempts(int maxProcessAttempts)
maxProcessAttempts
- the max delivery attemptspublic void saveMessageDelivery(MessageDelivery delivery)
MessageDeliveryService
saveMessageDelivery
in interface MessageDeliveryService
delivery
- the MessageDelivery to saveMessageDeliveryService.saveMessageDelivery(org.kuali.rice.kcb.bo.MessageDelivery)
public void deleteMessageDelivery(MessageDelivery messageDelivery)
MessageDeliveryService
deleteMessageDelivery
in interface MessageDeliveryService
messageDelivery
- the MessageDelivery to deleteorg.kuali.rice.kcb.service.MessageDeliveryService#deleteMessageDelivery(java.lang.Long)
public Collection<MessageDelivery> getAllMessageDeliveries()
MessageDeliveryService
getAllMessageDeliveries
in interface MessageDeliveryService
org.kuali.rice.kcb.service.MessageDeliveryService#getMessageDeliveries()
public MessageDelivery getMessageDelivery(Long id)
MessageDeliveryService
getMessageDelivery
in interface MessageDeliveryService
MessageDeliveryService.getMessageDelivery(java.lang.Long)
public MessageDelivery getMessageDeliveryByDelivererSystemId(Long id)
MessageDeliveryService
getMessageDeliveryByDelivererSystemId
in interface MessageDeliveryService
id
- the external deliverer system idMessageDeliveryService.getMessageDeliveryByDelivererSystemId(java.lang.Long)
public Collection<MessageDelivery> getMessageDeliveries(Message message)
MessageDeliveryService
getMessageDeliveries
in interface MessageDeliveryService
message
- the message which generated the message deliveriesMessageDeliveryService.getMessageDeliveries(org.kuali.rice.kcb.bo.Message)
public Collection<MessageDelivery> lockAndTakeMessageDeliveries(MessageDeliveryStatus[] statuses)
MessageDeliveryService
lockAndTakeMessageDeliveries
in interface MessageDeliveryService
statuses
- the statuses of message deliveries to takepublic Collection<MessageDelivery> lockAndTakeMessageDeliveries(Long messageId, MessageDeliveryStatus[] statuses)
MessageDeliveryService
lockAndTakeMessageDeliveries
in interface MessageDeliveryService
messageId
- the id of the message whose deliveries to takestatuses
- the statuses of message deliveries to takeCopyright © 2005–2016 The Kuali Foundation. All rights reserved.