Interface MediaPersistenceService

    • Method Detail

      • persistMedias

        <T extends IntegrationApiMediaModel> java.util.List<T> persistMedias​(java.util.List<java.io.InputStream> payloads,
                                                                             java.lang.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.