|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.kcb.service.impl.MessagingServiceImpl
public class MessagingServiceImpl
MessagingService implementation
Nested Class Summary | |
---|---|
static class |
MessagingServiceImpl.QueueProcessingJobSynchronization
|
Field Summary | |
---|---|
private String |
jobGroup
|
private String |
jobName
|
private static org.apache.log4j.Logger |
LOG
|
private MessageDeliveryService |
messageDeliveryService
|
private MessageService |
messageService
|
private RecipientPreferenceService |
recipientPrefs
|
private boolean |
synchronous
Whether to perform the processing synchronously |
Constructor Summary | |
---|---|
MessagingServiceImpl()
|
Method Summary | |
---|---|
Long |
deliver(MessageDTO message)
Delivers a message |
private Collection<String> |
getDelivererTypesForUserAndChannel(String userRecipientId,
String channel)
Determines what delivery endpoints the user has configured |
private void |
queueJob(MessageProcessingJob.Mode mode,
long messageId,
String user,
String cause)
|
void |
remove(long messageId,
String user,
String cause)
Removes a specific message and all deliveries |
private void |
remove(Message message,
String user,
String cause)
|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final org.apache.log4j.Logger LOG
private MessageService messageService
private MessageDeliveryService messageDeliveryService
private RecipientPreferenceService recipientPrefs
private String jobName
private String jobGroup
private boolean synchronous
Constructor Detail |
---|
public MessagingServiceImpl()
Method Detail |
---|
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
MessagingService
deliver
in interface MessagingService
message
- message to deliver
MessageDeliveryException
MessagingService.deliver(org.kuali.rice.kcb.dto.MessageDTO)
public void remove(long messageId, String user, String cause) throws MessageDismissalException
MessagingService
remove
in interface MessagingService
messageId
- id of the message to removeuser
- the user under which the action was takencause
- the cause or action taken to remove the message
MessageDismissalException
MessagingService.remove(long, java.lang.String, java.lang.String)
public Long removeByOriginId(String originId, String user, String cause) throws MessageDismissalException
MessagingService
removeByOriginId
in interface MessagingService
originId
- origin id of the message to removeuser
- the user under which the action was takencause
- the cause or action taken to remove the message
MessageDismissalException
MessagingService.removeByOriginId(java.lang.String, java.lang.String, java.lang.String)
private void remove(Message message, String user, String cause)
private Collection<String> getDelivererTypesForUserAndChannel(String userRecipientId, String channel)
userRecipientId
- the user
private void queueJob(MessageProcessingJob.Mode mode, long messageId, String user, String cause)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |