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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description reactor.core.publisher.Mono<ResponseEntity<Resource>>
getContentData(String businessAccountId, String externalMediaId)
Fetch the external media from the external system.String
getExternalSystemId()
Returns the id of the external system implemented by this adapter.
-
-
-
Method Detail
-
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
-
-