public interface MessageService
Modifier and Type | Method and Description |
---|---|
MessageBuilder |
createMessageBuilder() |
MessageQuery |
createMessageQuery() |
ReactionQuery |
createReactionQuery() |
void |
deleteMessage(String messageId,
String userId) |
Message |
findById(String messageId) |
Message |
findByIdWithMessageAudits(String messageId) |
void |
markMessageAsRead(String messageId,
String userId) |
String |
reactToMessage(String messageId,
String userId,
String reaction) |
void |
referenceMessage(String messageId,
String referenceId,
String referenceType)
Reference the message with the given
messageId with the referenceId and referenceType . |
void |
removeReactionToMessage(String reactionId) |
void |
updateMessageActionInstanceId(String actionInstanceId,
String messageId,
String userId) |
Message |
updateMessageContent(String messageId,
String mainContent) |
Message |
updateMessageMedia(String messageId,
org.flowable.content.api.ContentItem contentItem,
InputStream contentStream)
Change the media content of the media message with the given content item and input stream.
|
Message |
updateMessageMedia(String messageId,
String mediaContentId)
Change the media content id of the media message with the given
mediaContentId . |
MessageBuilder createMessageBuilder()
MessageQuery createMessageQuery()
void updateMessageActionInstanceId(String actionInstanceId, String messageId, String userId)
void referenceMessage(String messageId, String referenceId, String referenceType)
messageId
with the referenceId
and referenceType
.
It is not possible to reference an already referenced message.messageId
- the id of the message that needs to be referencedreferenceId
- the id of the referencereferenceType
- the type of the referenceMessage updateMessageMedia(String messageId, org.flowable.content.api.ContentItem contentItem, InputStream contentStream)
messageId
- the id of the media message being updatedcontentItem
- the new content item for the mediacontentStream
- the new input stream for the mediaMessage updateMessageMedia(String messageId, String mediaContentId)
mediaContentId
.messageId
- the id of the media message being updatedmediaContentId
- the new id of the media contentReactionQuery createReactionQuery()
void removeReactionToMessage(String reactionId)
Copyright © 2019. All rights reserved.