Interface ExternalSystemContentProvider
- All Known Implementing Classes:
WebClientExternalSystemContentProvider
public interface ExternalSystemContentProvider
A content provider that is responsible for fetching the actual content
from the external system.
- Author:
- Filip Hrisafov
-
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<ResponseEntity<Resource>>
getContentData
(String businessAccountId, String externalMediaId) Fetch the external media from the external system.Returns the id of the external system implemented by this adapter.
-
Method Details
-
getExternalSystemId
String getExternalSystemId()Returns the id of the external system implemented by this adapter.- Returns:
- the external system id implemented by this adapter
-
getContentData
reactor.core.publisher.Mono<ResponseEntity<Resource>> getContentData(String businessAccountId, String externalMediaId) Fetch the external media from the external system.- Parameters:
businessAccountId
- the id of the business accountexternalMediaId
- the id of the content- Returns:
- a mono with the response entity containing the resource for the externalMediaId
-