public interface MessagingService
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.
|
Long deliver(MessageDTO message) throws MessageDeliveryException, RiceIllegalArgumentException
message
- message to deliverMessageDeliveryException
- if unable to deliver message.RiceIllegalArgumentException
- if the message is null.void remove(long messageId, String user, String cause) throws MessageDismissalException, RiceIllegalArgumentException
messageId
- 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.RiceIllegalArgumentException
- if user, cause is null.Long removeByOriginId(String originId, String user, String cause) throws MessageDismissalException, RiceIllegalArgumentException
originId
- 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.RiceIllegalArgumentException
- if originId is nullCopyright © 2005–2016 The Kuali Foundation. All rights reserved.