Class MediaMessageResource
java.lang.Object
com.flowable.engage.rest.service.api.conversation.AbstractEngageResource
com.flowable.engage.rest.service.api.message.MediaMessageResource
@RestController public class MediaMessageResource extends AbstractEngageResource
- Author:
- Filip Hrisafov
-
Field Summary
Fields Modifier and Type Field Description protected com.flowable.core.content.api.CoreContentService
contentService
protected MediaMessageResourceService
mediaMessageResourceService
protected MessageService
messageService
protected com.flowable.core.content.api.RenditionService
renditionService
protected com.flowable.core.common.rest.response.ResponseEntityHelper
responseEntityHelper
Fields inherited from class com.flowable.engage.rest.service.api.conversation.AbstractEngageResource
conversationService, securityHelper
-
Constructor Summary
Constructors Constructor Description MediaMessageResource(MediaMessageResourceService mediaMessageResourceService, ConversationService conversationService, MessageService messageService, com.flowable.core.common.rest.response.ResponseEntityHelper responseEntityHelper)
-
Method Summary
Modifier and Type Method Description org.springframework.http.ResponseEntity<byte[]>
getMediaMessageData(java.lang.String declaredConversationId, java.lang.String messageId, java.lang.Boolean download, java.security.Principal principal)
org.springframework.http.ResponseEntity<ContentItemResponse>
getMediaMessageInfo(java.lang.String declaredConversationId, java.lang.String messageId, java.security.Principal principal)
org.springframework.http.ResponseEntity<byte[]>
getRenditionMediaMessageData(java.lang.String declaredConversationId, java.lang.String messageId, java.lang.Boolean download, java.security.Principal principal)
org.springframework.http.ResponseEntity<MessageResponse>
sendMedia(java.lang.String conversationId, SendMediaMessageRequest request, java.security.Principal principal)
void
setContentService(com.flowable.core.content.api.CoreContentService contentService)
void
setRenditionService(com.flowable.core.content.api.RenditionService renditionService)
org.springframework.http.ResponseEntity<MessageResponse>
updateMediaMessage(java.lang.String conversationId, java.lang.String messageId, UpdateMediaMessageRequest request, java.security.Principal principal)
Methods inherited from class com.flowable.engage.rest.service.api.conversation.AbstractEngageResource
addPermissions, currentUserHasAccess, currentUserHasAdminRights, currentUserIsSuperAdmin, validateAccessAndGetConversation
-
Field Details
-
mediaMessageResourceService
-
messageService
-
contentService
protected com.flowable.core.content.api.CoreContentService contentService -
renditionService
protected com.flowable.core.content.api.RenditionService renditionService -
responseEntityHelper
protected com.flowable.core.common.rest.response.ResponseEntityHelper responseEntityHelper
-
-
Constructor Details
-
MediaMessageResource
public MediaMessageResource(MediaMessageResourceService mediaMessageResourceService, ConversationService conversationService, MessageService messageService, com.flowable.core.common.rest.response.ResponseEntityHelper responseEntityHelper)
-
-
Method Details
-
sendMedia
@PostMapping("/conversations/{conversationId}/media") public org.springframework.http.ResponseEntity<MessageResponse> sendMedia(@PathVariable java.lang.String conversationId, SendMediaMessageRequest request, java.security.Principal principal) -
getMediaMessageData
@GetMapping("/conversations/{conversationId}/media/{messageId}") public org.springframework.http.ResponseEntity<byte[]> getMediaMessageData(@PathVariable("conversationId") java.lang.String declaredConversationId, @PathVariable("messageId") java.lang.String messageId, @RequestParam(required=false) java.lang.Boolean download, java.security.Principal principal) -
getMediaMessageInfo
@GetMapping("/conversations/{conversationId}/media/{messageId}/info") public org.springframework.http.ResponseEntity<ContentItemResponse> getMediaMessageInfo(@PathVariable("conversationId") java.lang.String declaredConversationId, @PathVariable("messageId") java.lang.String messageId, java.security.Principal principal) -
getRenditionMediaMessageData
@GetMapping("/conversations/{conversationId}/media/{messageId}/rendition") public org.springframework.http.ResponseEntity<byte[]> getRenditionMediaMessageData(@PathVariable("conversationId") java.lang.String declaredConversationId, @PathVariable("messageId") java.lang.String messageId, @RequestParam(required=false) java.lang.Boolean download, java.security.Principal principal) -
updateMediaMessage
@PutMapping("/conversations/{conversationId}/media/{messageId}") public org.springframework.http.ResponseEntity<MessageResponse> updateMediaMessage(@PathVariable java.lang.String conversationId, @PathVariable java.lang.String messageId, UpdateMediaMessageRequest request, java.security.Principal principal) -
setContentService
@Autowired(required=false) public void setContentService(com.flowable.core.content.api.CoreContentService contentService) -
setRenditionService
@Autowired(required=false) public void setRenditionService(com.flowable.core.content.api.RenditionService renditionService)
-