use of org.datatransferproject.transfer.microsoft.spi.types.MicrosoftOfflineData in project data-transfer-project by google.
the class MicrosoftOfflineDataExporter method export.
@Override
public ExportResult<MicrosoftOfflineData> export(UUID jobId, TokenAuthData authData, Optional<ExportInformation> exportInformation) {
try {
String data = getDataFile(jobId, offlineDataUrl, authData);
MicrosoftOfflineData offlineData = new MicrosoftOfflineData(data);
return new ExportResult<>(ExportResult.ResultType.END, offlineData);
} catch (IOException e) {
// FIXME log error
e.printStackTrace();
return new ExportResult<>(e);
}
}
Aggregations