Package com.flowable.engage.message.api
Interface MessageService
- All Known Implementing Classes:
MessageServiceImpl
public interface MessageService
- Author:
- Filip Hrisafov
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteMessage
(String messageId, String userId) findByIdWithMessageAudits
(String messageId) void
markMessageAsRead
(String messageId, String userId) reactToMessage
(String messageId, String userId, String reaction) void
referenceMessage
(String messageId, String referenceId, String referenceType) Reference the message with the givenmessageId
with thereferenceId
andreferenceType
.void
removeReactionToMessage
(String reactionId) void
updateMessageActionInstanceId
(String actionInstanceId, String messageId, String userId) updateMessageContent
(String messageId, String mainContent) updateMessageMedia
(String messageId, String mediaContentId) Change the media content id of the media message with the givenmediaContentId
.updateMessageMedia
(String messageId, ContentItem contentItem, InputStream contentStream) Change the media content of the media message with the given content item and input stream.
-
Method Details
-
createMessageBuilder
MessageBuilder createMessageBuilder() -
createMessageQuery
MessageQuery createMessageQuery() -
findById
-
findByIdWithMessageAudits
-
markMessageAsRead
-
updateMessageActionInstanceId
-
deleteMessage
-
referenceMessage
Reference the message with the givenmessageId
with thereferenceId
andreferenceType
. It is not possible to reference an already referenced message.- Parameters:
messageId
- the id of the message that needs to be referencedreferenceId
- the id of the referencereferenceType
- the type of the reference
-
updateMessageContent
-
updateMessageMedia
Change the media content of the media message with the given content item and input stream.- Parameters:
messageId
- the id of the media message being updatedcontentItem
- the new content item for the mediacontentStream
- the new input stream for the media- Returns:
- the updated message
-
updateMessageMedia
Change the media content id of the media message with the givenmediaContentId
.- Parameters:
messageId
- the id of the media message being updatedmediaContentId
- the new id of the media content- Returns:
- the updated message
-
createReactionQuery
ReactionQuery createReactionQuery() -
reactToMessage
-
removeReactionToMessage
-