From f2c114994d66a47f0e70b01c3f6f9c6617156770 Mon Sep 17 00:00:00 2001 From: Vincent Fazio Date: Thu, 17 Oct 2024 09:27:29 +1100 Subject: [PATCH] AUS-4238 Remove downloadNVCLProcessingResults --- .../web/controllers/NVCLController.java | 43 ------------------- 1 file changed, 43 deletions(-) diff --git a/src/main/java/org/auscope/portal/server/web/controllers/NVCLController.java b/src/main/java/org/auscope/portal/server/web/controllers/NVCLController.java index 406a73429..fc024bdb8 100644 --- a/src/main/java/org/auscope/portal/server/web/controllers/NVCLController.java +++ b/src/main/java/org/auscope/portal/server/web/controllers/NVCLController.java @@ -760,49 +760,6 @@ public ModelAndView getNVCLProcessingResults(@RequestParam("jobId") String jobId } } - - /** - * Downloads results of NVCL processing job - * @param jobId - * job id NVCL processing job - * @param returns results as a byte stream encoded in zip format, containing csv files - * @throws Exception - */ - @RequestMapping("/downloadNVCLProcessingResults.do") - public void downloadNVCLProcessingResults(@RequestParam("jobId") String jobId, HttpServletResponse response) throws Exception { - AnalyticalJobResults results = this.dataService2_0.getProcessingResults(jobId); - - response.setContentType("application/zip"); - response.setHeader("Content-Disposition","inline; filename=nvclanalytics-" + jobId + ".zip;"); - ZipOutputStream zout = new ZipOutputStream(response.getOutputStream()); - - try{ - zout.putNextEntry(new ZipEntry("passIds.csv")); - for (String id : results.getPassBoreholes()) { - zout.write((id + '\n').getBytes()); - } - zout.closeEntry(); - - zout.putNextEntry(new ZipEntry("failIds.csv")); - for (String id : results.getFailBoreholes()) { - zout.write((id + '\n').getBytes()); - } - zout.closeEntry(); - - zout.putNextEntry(new ZipEntry("errorIds.csv")); - for (String id : results.getErrorBoreholes()) { - zout.write((id + '\n').getBytes()); - } - zout.closeEntry(); - - zout.finish(); - zout.flush(); - } finally { - zout.close(); - } - } - - /** * Requests the image tray depth from NVCL services *