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 MessageBuildercreateMessageBuilder()MessageQuerycreateMessageQuery()ReactionQuerycreateReactionQuery()voiddeleteMessage(String messageId, String userId)MessagefindById(String messageId)MessagefindByIdWithMessageAudits(String messageId)voidmarkMessageAsRead(String messageId, String userId)StringreactToMessage(String messageId, String userId, String reaction)voidreferenceMessage(String messageId, String referenceId, String referenceType)Reference the message with the givenmessageIdwith thereferenceIdandreferenceType.voidremoveReactionToMessage(String reactionId)voidupdateMessageActionInstanceId(String actionInstanceId, String messageId, String userId)MessageupdateMessageContent(String messageId, String mainContent)MessageupdateMessageMedia(String messageId, String mediaContentId)Change the media content id of the media message with the givenmediaContentId.MessageupdateMessageMedia(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 givenmessageIdwith thereferenceIdandreferenceType. 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)
-
-