Interface MessageService

All Known Implementing Classes:
MessageServiceImpl

public interface MessageService
Author:
Filip Hrisafov
  • Method Details

    • createMessageBuilder

      MessageBuilder createMessageBuilder()
    • createMessageQuery

      MessageQuery createMessageQuery()
    • findById

      Message findById​(java.lang.String messageId)
    • findByIdWithMessageAudits

      Message findByIdWithMessageAudits​(java.lang.String messageId)
    • markMessageAsRead

      void markMessageAsRead​(java.lang.String messageId, java.lang.String userId)
    • updateMessageActionInstanceId

      void updateMessageActionInstanceId​(java.lang.String actionInstanceId, java.lang.String messageId, java.lang.String userId)
    • deleteMessage

      void deleteMessage​(java.lang.String messageId, java.lang.String userId)
    • referenceMessage

      void referenceMessage​(java.lang.String messageId, java.lang.String referenceId, java.lang.String referenceType)
      Reference the message with the given messageId with the referenceId and referenceType. It is not possible to reference an already referenced message.
      Parameters:
      messageId - the id of the message that needs to be referenced
      referenceId - the id of the reference
      referenceType - the type of the reference
    • updateMessageContent

      Message updateMessageContent​(java.lang.String messageId, java.lang.String mainContent)
    • updateMessageMedia

      Message updateMessageMedia​(java.lang.String messageId, org.flowable.content.api.ContentItem contentItem, java.io.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 updated
      contentItem - the new content item for the media
      contentStream - the new input stream for the media
      Returns:
      the updated message
    • updateMessageMedia

      Message updateMessageMedia​(java.lang.String messageId, java.lang.String mediaContentId)
      Change the media content id of the media message with the given mediaContentId.
      Parameters:
      messageId - the id of the media message being updated
      mediaContentId - the new id of the media content
      Returns:
      the updated message
    • createReactionQuery

      ReactionQuery createReactionQuery()
    • reactToMessage

      java.lang.String reactToMessage​(java.lang.String messageId, java.lang.String userId, java.lang.String reaction)
    • removeReactionToMessage

      void removeReactionToMessage​(java.lang.String reactionId)