Interface MediaPersistenceService
- All Known Implementing Classes:
DefaultMediaPersistenceService
public interface MediaPersistenceService
Service that persists a payload
-
Method Summary
Modifier and TypeMethodDescription<T extends IntegrationApiMediaModel>
List<T>persistMedias(List<InputStream> payloads, Class<T> mediaType) Persists the payloads.
-
Method Details
-
persistMedias
<T extends IntegrationApiMediaModel> List<T> persistMedias(List<InputStream> payloads, Class<T> mediaType) Persists the payloads.- Parameters:
payloads- request payloads to be persistedmediaType- implementation type to use for the generated medias- Returns:
- persisted payloads as medias in the order corresponding to the order of the submitted
payloads. Number of medias returned is equal to number of payload input streams passed in. If certain medias failed to persist, there will benullin the corresponding place of the returned list.
-