use of org.dataportabilityproject.dataModels.Importer in project data-transfer-project by google.
the class ServiceProviderRegistry method getImporter.
@SuppressWarnings("unchecked")
public <T extends DataModel> Importer<T> getImporter(String serviceProvider, PortableDataType portableDataType, UUID jobId, AuthData authData) throws IOException {
JobDataCache jobDataCache = cloudFactory.getJobDataCache(jobId, serviceProvider);
Importer<? extends DataModel> importer = serviceProviders.get(serviceProvider).getImporter(portableDataType, authData, jobDataCache);
return (Importer<T>) importer;
}
Aggregations