Class MessageServiceImpl
java.lang.Object
org.flowable.common.engine.impl.service.CommonServiceImpl<C>
org.flowable.common.engine.impl.service.CommonEngineServiceImpl<EngageEngineConfiguration>
com.flowable.engage.engine.impl.message.MessageServiceImpl
- All Implemented Interfaces:
MessageService
public class MessageServiceImpl
extends CommonEngineServiceImpl<EngageEngineConfiguration>
implements MessageService
- Author:
- Filip Hrisafov
-
Field Summary
Fields inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImpl
commandExecutorFields inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
configuration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteMessage(String messageId, String userId) findByIdWithMessageAudits(String messageId) voidmarkMessageAsRead(String messageId, String userId) reactToMessage(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) 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.Methods inherited from class org.flowable.common.engine.impl.service.CommonEngineServiceImpl
getCommandExecutor, setCommandExecutorMethods inherited from class org.flowable.common.engine.impl.service.CommonServiceImpl
getConfiguration
-
Constructor Details
-
MessageServiceImpl
-
-
Method Details
-
createMessageBuilder
- Specified by:
createMessageBuilderin interfaceMessageService
-
createMessageQuery
- Specified by:
createMessageQueryin interfaceMessageService
-
findById
- Specified by:
findByIdin interfaceMessageService
-
findByIdWithMessageAudits
- Specified by:
findByIdWithMessageAuditsin interfaceMessageService
-
markMessageAsRead
- Specified by:
markMessageAsReadin interfaceMessageService
-
updateMessageContent
- Specified by:
updateMessageContentin interfaceMessageService
-
updateMessageMedia
public Message updateMessageMedia(String messageId, ContentItem contentItem, InputStream contentStream) Description copied from interface:MessageServiceChange the media content of the media message with the given content item and input stream.- Specified by:
updateMessageMediain interfaceMessageService- 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
Description copied from interface:MessageServiceChange the media content id of the media message with the givenmediaContentId.- Specified by:
updateMessageMediain interfaceMessageService- Parameters:
messageId- the id of the media message being updatedmediaContentId- the new id of the media content- Returns:
- the updated message
-
updateMessageActionInstanceId
- Specified by:
updateMessageActionInstanceIdin interfaceMessageService
-
deleteMessage
- Specified by:
deleteMessagein interfaceMessageService
-
referenceMessage
Description copied from interface:MessageServiceReference the message with the givenmessageIdwith thereferenceIdandreferenceType. It is not possible to reference an already referenced message.- Specified by:
referenceMessagein interfaceMessageService- Parameters:
messageId- the id of the message that needs to be referencedreferenceId- the id of the referencereferenceType- the type of the reference
-
createReactionQuery
- Specified by:
createReactionQueryin interfaceMessageService
-
reactToMessage
- Specified by:
reactToMessagein interfaceMessageService
-
removeReactionToMessage
- Specified by:
removeReactionToMessagein interfaceMessageService
-