Search in sources :

Example 1 with Importer

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;
}
Also used : JobDataCache(org.dataportabilityproject.cloud.interfaces.JobDataCache) Importer(org.dataportabilityproject.dataModels.Importer)

Aggregations

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