Interface MediaPersistenceService

All Known Implementing Classes:
DefaultMediaPersistenceService

public interface MediaPersistenceService
Service that persists a payload
  • Method Details

    • persistMedias

      <T extends IntegrationApiMediaModel> List<T> persistMedias(List<InputStream> payloads, Class<T> mediaType)
      Persists the payloads.
      Parameters:
      payloads - request payloads to be persisted
      mediaType - 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 be null in the corresponding place of the returned list.