Package org.kuali.rice.kcb.service.impl
Class MessagingServiceImpl
java.lang.Object
org.kuali.rice.kcb.service.impl.MessagingServiceImpl
- All Implemented Interfaces:
org.kuali.rice.kcb.api.service.MessagingService
public class MessagingServiceImpl
extends Object
implements org.kuali.rice.kcb.api.service.MessagingService
MessagingService implementation
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeliver(org.kuali.rice.kcb.api.message.MessageDTO message) voidremoveByOriginId(String originId, String user, String cause) voidsetJobGroup(String jobGroup) Sets the group of the target job to run to process messagesvoidsetJobName(String jobName) Sets the name of the target job to run to process messagesvoidsetMessageDeliveryService(MessageDeliveryService messageDeliveryService) Sets the MessageDeliveryServicevoidsetMessageService(MessageService messageService) Sets the MessageServicevoidSets the RecipientPreferencesServicevoidsetSynchronous(boolean sync) Sets whether to perform the processing synchronously
-
Constructor Details
-
MessagingServiceImpl
public MessagingServiceImpl()
-
-
Method Details
-
setJobName
Sets the name of the target job to run to process messages- Parameters:
jobName- the name of the target job to run to process messages
-
setJobGroup
Sets the group of the target job to run to process messages- Parameters:
jobGroup- Sets the group of the target job to run to process messages
-
setMessageService
Sets the MessageService- Parameters:
messageService- the MessageService
-
setMessageDeliveryService
Sets the MessageDeliveryService- Parameters:
messageDeliveryService- the MessageDeliveryService
-
setSynchronous
public void setSynchronous(boolean sync) Sets whether to perform the processing synchronously- Parameters:
sync- whether to perform the processing synchronously
-
setRecipientPreferenceService
Sets the RecipientPreferencesService- Parameters:
prefs- the RecipientPreferenceService
-
deliver
public Long deliver(org.kuali.rice.kcb.api.message.MessageDTO message) throws org.kuali.rice.kcb.api.exception.MessageDeliveryException - Specified by:
deliverin interfaceorg.kuali.rice.kcb.api.service.MessagingService- Throws:
org.kuali.rice.kcb.api.exception.MessageDeliveryException
-
remove
public void remove(long messageId, String user, String cause) throws org.kuali.rice.kcb.api.exception.MessageDismissalException - Specified by:
removein interfaceorg.kuali.rice.kcb.api.service.MessagingService- Throws:
org.kuali.rice.kcb.api.exception.MessageDismissalException
-
removeByOriginId
public Long removeByOriginId(String originId, String user, String cause) throws org.kuali.rice.kcb.api.exception.MessageDismissalException - Specified by:
removeByOriginIdin interfaceorg.kuali.rice.kcb.api.service.MessagingService- Throws:
org.kuali.rice.kcb.api.exception.MessageDismissalException
-