org.kuali.rice.kcb.service.impl
Class MessageDeliveryServiceImpl

java.lang.Object
  extended by org.kuali.rice.kcb.service.impl.BusinessObjectServiceImpl
      extended by org.kuali.rice.kcb.service.impl.MessageDeliveryServiceImpl
All Implemented Interfaces:
MessageDeliveryService

public class MessageDeliveryServiceImpl
extends BusinessObjectServiceImpl
implements MessageDeliveryService

MessageDeliveryService implementation

Author:
Kuali Rice Team (rice.collab@kuali.org)

Field Summary
 
Fields inherited from class org.kuali.rice.kcb.service.impl.BusinessObjectServiceImpl
dao
 
Constructor Summary
MessageDeliveryServiceImpl()
           
 
Method Summary
 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
 
Methods inherited from class org.kuali.rice.kcb.service.impl.BusinessObjectServiceImpl
setGenericDao
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageDeliveryServiceImpl

public MessageDeliveryServiceImpl()
Method Detail

setMaxProcessAttempts

public void setMaxProcessAttempts(int maxProcessAttempts)
Sets the max processing attempts

Parameters:
maxProcessAttempts - the max delivery attempts

saveMessageDelivery

public void saveMessageDelivery(MessageDelivery delivery)
Description copied from interface: MessageDeliveryService
Saves a MessageDelivery

Specified by:
saveMessageDelivery in interface MessageDeliveryService
Parameters:
delivery - the MessageDelivery to save
See Also:
MessageDeliveryService.saveMessageDelivery(org.kuali.rice.kcb.bo.MessageDelivery)

deleteMessageDelivery

public void deleteMessageDelivery(MessageDelivery messageDelivery)
Description copied from interface: MessageDeliveryService
Deletes a MessageDelivery

Specified by:
deleteMessageDelivery in interface MessageDeliveryService
Parameters:
messageDelivery - the MessageDelivery to delete
See Also:
org.kuali.rice.kcb.service.MessageDeliveryService#deleteMessageDelivery(java.lang.Long)

getAllMessageDeliveries

public Collection<MessageDelivery> getAllMessageDeliveries()
Description copied from interface: MessageDeliveryService
This method will return all MessageDelivery objects in the system

Specified by:
getAllMessageDeliveries in interface MessageDeliveryService
Returns:
Collection list of MessageDelivery objects in the system
See Also:
org.kuali.rice.kcb.service.MessageDeliveryService#getMessageDeliveries()

getMessageDelivery

public MessageDelivery getMessageDelivery(Long id)
Description copied from interface: MessageDeliveryService
This method will retrieve a MessageDelivery object from the system, given the id of the actual record.

Specified by:
getMessageDelivery in interface MessageDeliveryService
Returns:
MessageDelivery
See Also:
MessageDeliveryService.getMessageDelivery(java.lang.Long)

getMessageDeliveryByDelivererSystemId

public MessageDelivery getMessageDeliveryByDelivererSystemId(Long id)
Description copied from interface: MessageDeliveryService
This method will retrieve a MessageDelivery object from the system, given the external deliverer system id registered with the MessageDelivery.

Specified by:
getMessageDeliveryByDelivererSystemId in interface MessageDeliveryService
Parameters:
id - the external deliverer system id
Returns:
MessageDelivery
See Also:
MessageDeliveryService.getMessageDeliveryByDelivererSystemId(java.lang.Long)

getMessageDeliveries

public Collection<MessageDelivery> getMessageDeliveries(Message message)
Description copied from interface: MessageDeliveryService
This method will return all MessageDelievery objects generated for the given Message

Specified by:
getMessageDeliveries in interface MessageDeliveryService
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:
MessageDeliveryService.getMessageDeliveries(org.kuali.rice.kcb.bo.Message)

lockAndTakeMessageDeliveries

public Collection<MessageDelivery> lockAndTakeMessageDeliveries(MessageDeliveryStatus[] statuses)
Description copied from interface: MessageDeliveryService
Locks and takes all message deliveries in the system with any of the specified statuses

Specified by:
lockAndTakeMessageDeliveries in interface MessageDeliveryService
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: MessageDeliveryService
Locks and takes all message deliveries of a given message in the system with any of the specified statuses

Specified by:
lockAndTakeMessageDeliveries in interface MessageDeliveryService
Parameters:
messageId - the id of the message whose deliveries to take
statuses - the statuses of message deliveries to take
Returns:
a collection of message deliveries


Copyright © 2005-2011 The Kuali Foundation. All Rights Reserved.