예제 #1
0
 private void handleSelectRefFilesResult(CaArrayFileSet fileSet, ValidationResult result) {
   for (final String fileName : result.getFileNames()) {
     final CaArrayFile caArrayFile = fileSet.getFile(fileName);
     final FileValidationResult fileResult = result.getFileValidationResult(fileName);
     if (!fileResult.isValid()) {
       // check whether any of the validation errors are other than data file checks
       saveErrorMessages(fileResult, caArrayFile);
     }
   }
 }
예제 #2
0
 private void handleResult(CaArrayFileSet fileSet, ValidationResult result) {
   for (final String fileName : result.getFileNames()) {
     final CaArrayFile caArrayFile = fileSet.getFile(fileName);
     final FileValidationResult fileResult = result.getFileValidationResult(fileName);
     if (!fileResult.isValid()) {
       caArrayFile.setFileStatus(FileStatus.VALIDATION_ERRORS);
     } else {
       caArrayFile.setFileStatus(FileStatus.VALIDATED);
     }
     caArrayFile.setValidationResult(fileResult);
     this.projectDao.save(caArrayFile);
   }
 }