use of org.openforis.collect.io.internal.SurveyBackupVerifierTask in project collect by openforis.
the class SurveyBackupInfoExtractorJob method initializeTask.
@Override
protected void initializeTask(Worker task) {
if (task instanceof SurveyBackupVerifierTask) {
SurveyBackupVerifierTask t = (SurveyBackupVerifierTask) task;
t.setZipFile(zipFile);
} else if (task instanceof SurveyBackupInfoExtractorTask) {
File infoFile = backupFileExtractor.extractInfoFile();
SurveyBackupInfoExtractorTask t = (SurveyBackupInfoExtractorTask) task;
t.setFile(infoFile);
} else if (task instanceof IdmlUnmarshallTask) {
File idmlFile = zipFile == null ? file : backupFileExtractor.extractIdmlFile();
IdmlUnmarshallTask t = (IdmlUnmarshallTask) task;
t.setSurveyManager(surveyManager);
t.setValidate(validate);
t.setFile(idmlFile);
}
}
Aggregations