use of org.openforis.collect.io.NewBackupFileExtractor in project collect by openforis.
the class XMLDataImportProcess method beforeStart.
private void beforeStart() throws ZipException, IOException {
backupFileExtractor = new NewBackupFileExtractor(file);
backupFileExtractor.init();
}
use of org.openforis.collect.io.NewBackupFileExtractor in project collect by openforis.
the class XMLParsingRecordProvider method init.
@Override
public void init(ProgressListener progressListener) throws Exception {
this.backupFileExtractor = new NewBackupFileExtractor(file);
this.backupFileExtractor.init(progressListener);
this.dataUnmarshaller = new DataUnmarshaller(existingSurvey == null ? packagedSurvey : existingSurvey, packagedSurvey);
this.dataUnmarshaller.setRecordValidationEnabled(validateRecords);
this.dataUnmarshaller.setIgnoreDuplicateRecordKeyValidationErrors(ignoreDuplicateRecordKeyValidationErrors);
this.dataUnmarshaller.setRecordApplicationVersion(backupFileExtractor.getInfo().getCollectVersion());
this.recordUpdater = new RecordUpdater();
this.recordUpdater.setValidateAfterUpdate(validateRecords);
initializeRecordUserLoader();
}
Aggregations