Search in sources :

Example 1 with Exporter

use of org.dataportabilityproject.dataModels.Exporter in project data-transfer-project by google.

the class ServiceProviderRegistry method getExporter.

@SuppressWarnings("unchecked")
public <T extends DataModel> Exporter<T> getExporter(String serviceProvider, PortableDataType portableDataType, UUID jobId, AuthData authData) throws IOException {
    JobDataCache jobDataCache = cloudFactory.getJobDataCache(jobId, serviceProvider);
    Exporter<? extends DataModel> exporter = serviceProviders.get(serviceProvider).getExporter(portableDataType, authData, jobDataCache);
    return (Exporter<T>) exporter;
}
Also used : Exporter(org.dataportabilityproject.dataModels.Exporter) JobDataCache(org.dataportabilityproject.cloud.interfaces.JobDataCache)

Aggregations

JobDataCache (org.dataportabilityproject.cloud.interfaces.JobDataCache)1 Exporter (org.dataportabilityproject.dataModels.Exporter)1