use of org.datatransferproject.types.client.transfer.StartTransferJob in project data-transfer-project by google.
the class StartTransferJobAction method handle.
@Override
public TransferJob handle(StartTransferJob startTransferJob) {
String id = startTransferJob.getId();
Preconditions.checkNotNull(id, "transfer job ID required for StartTransferJobAction");
UUID jobId = decodeJobId(id);
PortabilityJob job = jobStore.findJob(jobId);
String authData = startTransferJob.getEncryptedAuthData();
job = updateJobWithCredentials(jobId, job, authData);
return new TransferJob(id, job.exportService(), job.importService(), job.transferDataType(), null, null, null, null, null, null);
}
Aggregations