Package com.flowable.engage.message.api
Interface MessageService
-
- All Known Implementing Classes:
MessageServiceImpl
public interface MessageService
- Author:
- Filip Hrisafov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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 givenmessageId
with thereferenceId
andreferenceType
.void
removeReactionToMessage(String reactionId)
void
updateMessageActionInstanceId(String actionInstanceId, String messageId, String userId)
Message
updateMessageContent(String messageId, String mainContent)
Message
updateMessageMedia(String messageId, String mediaContentId)
Change the media content id of the media message with the givenmediaContentId
.Message
updateMessageMedia(String messageId, ContentItem contentItem, InputStream contentStream)
Change the media content of the media message with the given content item and input stream.
-
-
-
Method Detail
-
createMessageBuilder
MessageBuilder createMessageBuilder()
-
createMessageQuery
MessageQuery createMessageQuery()
-
updateMessageActionInstanceId
void updateMessageActionInstanceId(String actionInstanceId, String messageId, String userId)
-
referenceMessage
void referenceMessage(String messageId, String referenceId, String referenceType)
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
-
updateMessageMedia
Message updateMessageMedia(String messageId, ContentItem contentItem, InputStream contentStream)
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
Message updateMessageMedia(String messageId, String mediaContentId)
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()
-
removeReactionToMessage
void removeReactionToMessage(String reactionId)
-
-