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 Type Method Description reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<? extends org.springframework.core.io.Resource>>
getContentData(java.lang.String businessAccountId, java.lang.String externalMediaId)
Fetch the external media from the external system.java.lang.String
getExternalSystemId()
Returns the id of the external system implemented by this adapter.
-
Method Details
-
getExternalSystemId
java.lang.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<org.springframework.http.ResponseEntity<? extends org.springframework.core.io.Resource>> getContentData(java.lang.String businessAccountId, java.lang.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
-