Search in sources :

Example 1 with MicrosoftOfflineData

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);
    }
}
Also used : MicrosoftOfflineData(org.datatransferproject.transfer.microsoft.spi.types.MicrosoftOfflineData) IOException(java.io.IOException) ExportResult(org.datatransferproject.spi.transfer.provider.ExportResult)

Aggregations

IOException (java.io.IOException)1 ExportResult (org.datatransferproject.spi.transfer.provider.ExportResult)1 MicrosoftOfflineData (org.datatransferproject.transfer.microsoft.spi.types.MicrosoftOfflineData)1