use of org.datatransferproject.types.client.transfer.GetTransferJob in project data-transfer-project by google.
the class GetTransferJobAction method handle.
@Override
public TransferJob handle(GetTransferJob transferRequest) {
String id = transferRequest.getId();
Preconditions.checkNotNull(id, "transfer job ID required for GetTransferJobAction");
UUID jobId = decodeJobId(id);
PortabilityJob job = jobStore.findJob(jobId);
monitor.debug(() -> format("Fetched job with jobId: %s", jobId), jobId, EventCode.API_GOT_TRANSFER_JOB);
// TODO(#553): This list of nulls should be cleaned up when we refactor TransferJob.
return new TransferJob(id, job.exportService(), job.importService(), job.transferDataType(), null, null, null, null, null, null);
}
Aggregations