class RestoreOfferBackupService {

    public List<OfferLog> getListing(String strategy, String offerId, DataCategory category, Long offset,
        int limit, Order order) throws StorageException {

        LOGGER.debug(String.format(
            "[Offer synchronization]: Retrieve listing of {%s} dataCategory from {%s} offer, with {%s} Vitam strategy from {%s} offset with {%s} limit",
            category.name(), offerId, strategy, offset, limit));

        RequestResponse<OfferLog> result =
            distribution.getOfferLogsByOfferId(strategy, offerId, category, offset, limit, order);

        if (!result.isOk()) {
            throw new StorageException(
                String.format("ERROR: VitamError has been returned when using storage service: {%s}",
                    result.toString()));
        }

        return ((RequestResponseOK<OfferLog>) result).getResults();
    }

    public  RestoreOfferBackupService(StorageDistribution distribution);

}