Class LineOutboundContentResource
- java.lang.Object
-
- com.flowable.engage.external.system.line.rest.LineOutboundContentResource
-
@RestController public class LineOutboundContentResource extends Object
An internal endpoint providing special type of accessing content send from Engage to LINE.- Author:
- Filip Hrisafov
-
-
Field Summary
Fields Modifier and Type Field Description protected CoreContentService
contentService
protected PlatformIdentityService
identityService
protected com.nimbusds.jwt.proc.JWTProcessor<com.nimbusds.jose.proc.SecurityContext>
jwtProcessor
protected RenditionService
renditionService
protected ResponseEntityHelper
responseEntityHelper
-
Constructor Summary
Constructors Constructor Description LineOutboundContentResource(PlatformIdentityService identityService, CoreContentService contentService, RenditionService renditionService, ResponseEntityHelper responseEntityHelper, String tokenSigningSecret)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ResponseEntity<Resource>
getContentItemData(String contentId)
protected ResponseEntity<Resource>
getContentItemThumbnailData(String contentId)
ResponseEntity<Resource>
getInternalMedia(String mediaAccessToken, boolean preview)
-
-
-
Field Detail
-
identityService
protected final PlatformIdentityService identityService
-
contentService
protected final CoreContentService contentService
-
renditionService
protected final RenditionService renditionService
-
responseEntityHelper
protected final ResponseEntityHelper responseEntityHelper
-
jwtProcessor
protected final com.nimbusds.jwt.proc.JWTProcessor<com.nimbusds.jose.proc.SecurityContext> jwtProcessor
-
-
Constructor Detail
-
LineOutboundContentResource
public LineOutboundContentResource(PlatformIdentityService identityService, CoreContentService contentService, RenditionService renditionService, ResponseEntityHelper responseEntityHelper, String tokenSigningSecret)
-
-
Method Detail
-
getInternalMedia
@GetMapping("/line-content-outbound/{mediaAccessToken}/data") public ResponseEntity<Resource> getInternalMedia(@PathVariable String mediaAccessToken, @RequestParam(name="preview",defaultValue="false") boolean preview)
-
getContentItemData
protected ResponseEntity<Resource> getContentItemData(String contentId)
-
getContentItemThumbnailData
protected ResponseEntity<Resource> getContentItemThumbnailData(String contentId)
-
-