public class MessagingServiceImpl extends Object implements MessagingService
| Modifier and Type | Class and Description |
|---|---|
static class |
MessagingServiceImpl.QueueProcessingJobSynchronization |
| Constructor and Description |
|---|
MessagingServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
Long |
deliver(MessageDTO message)
Delivers a message
|
void |
remove(long messageId,
String user,
String cause)
Removes a specific message and all deliveries
|
Long |
removeByOriginId(String originId,
String user,
String cause)
Removes a specific message and all deliveries.
|
void |
setJobGroup(String jobGroup)
Sets the group of the target job to run to process messages
|
void |
setJobName(String jobName)
Sets the name of the target job to run to process messages
|
void |
setMessageDeliveryService(MessageDeliveryService messageDeliveryService)
Sets the MessageDeliveryService
|
void |
setMessageService(MessageService messageService)
Sets the MessageService
|
void |
setRecipientPreferenceService(RecipientPreferenceService prefs)
Sets the RecipientPreferencesService
|
void |
setSynchronous(boolean sync)
Sets whether to perform the processing synchronously
|
public MessagingServiceImpl()
public void setJobName(String jobName)
jobName - the name of the target job to run to process messagespublic void setJobGroup(String jobGroup)
jobGroup - Sets the group of the target job to run to process messagespublic void setMessageService(MessageService messageService)
messageService - the MessageServicepublic void setMessageDeliveryService(MessageDeliveryService messageDeliveryService)
messageDeliveryService - the MessageDeliveryServicepublic void setSynchronous(boolean sync)
sync - whether to perform the processing synchronouslypublic void setRecipientPreferenceService(RecipientPreferenceService prefs)
prefs - the RecipientPreferenceServicepublic Long deliver(MessageDTO message) throws MessageDeliveryException
MessagingServicedeliver in interface MessagingServicemessage - message to deliverMessageDeliveryException - if unable to deliver message.org.kuali.rice.kcb.service.MessagingService#deliver(org.kuali.rice.kcb.dto.MessageDTO)public void remove(long messageId, String user, String cause) throws MessageDismissalException
MessagingServiceremove in interface MessagingServicemessageId - id of the message to removeuser - the user under which the action was takencause - the cause or action taken to remove the messageMessageDismissalException - if no message for the given messageId is found.org.kuali.rice.kcb.service.MessagingService#remove(long, java.lang.String, java.lang.String)public Long removeByOriginId(String originId, String user, String cause) throws MessageDismissalException
MessagingServiceremoveByOriginId in interface MessagingServiceoriginId - origin id of the message to removeuser - the user under which the action was takencause - the cause or action taken to remove the messageMessageDismissalException - if no message for the given messageId is found.org.kuali.rice.kcb.service.MessagingService#removeByOriginId(java.lang.String, java.lang.String, java.lang.String)Copyright © 2005-2015 The Kuali Foundation. All Rights Reserved.