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;
}
Aggregations