Class SequenceFileAjaxController
- java.lang.Object
-
- ca.corefacility.bioinformatics.irida.ria.web.files.SequenceFileAjaxController
-
@RestController @Scope("session") @RequestMapping("/ajax/sequenceFiles") public class SequenceFileAjaxController extends java.lang.Object
Ajax controller to get data for the fastqc page.
-
-
Constructor Summary
Constructors Constructor Description SequenceFileAjaxController(UISequenceFileService uiSequenceFileService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
downloadSequenceFile(java.lang.Long sequencingObjectId, java.lang.Long sequenceFileId, javax.servlet.http.HttpServletResponse response)
Download the sequence fileorg.springframework.http.ResponseEntity<FastQCImagesResponse>
getFastQCCharts(java.lang.Long sequencingObjectId, java.lang.Long sequenceFileId)
Gets the fastqc charts for the file.org.springframework.http.ResponseEntity<FastQCDetailsResponse>
getFastQCDetails(java.lang.Long sequencingObjectId, java.lang.Long sequenceFileId)
Gets the details for the file fastqc results.
-
-
-
Constructor Detail
-
SequenceFileAjaxController
@Autowired public SequenceFileAjaxController(UISequenceFileService uiSequenceFileService)
-
-
Method Detail
-
getFastQCDetails
@GetMapping("/fastqc-details") public org.springframework.http.ResponseEntity<FastQCDetailsResponse> getFastQCDetails(@RequestParam java.lang.Long sequencingObjectId, @RequestParam java.lang.Long sequenceFileId)
Gets the details for the file fastqc results.- Parameters:
sequencingObjectId
- ID for theSequencingObject
sequenceFileId
- Id for theSequenceFile
- Returns:
FastQCDetailsResponse
dto which contains the sequencing object, sequence file, and the fastqc result.
-
getFastQCCharts
@GetMapping("/fastqc-charts") public org.springframework.http.ResponseEntity<FastQCImagesResponse> getFastQCCharts(@RequestParam java.lang.Long sequencingObjectId, @RequestParam java.lang.Long sequenceFileId) throws java.io.IOException
Gets the fastqc charts for the file.- Parameters:
sequencingObjectId
- ID for theSequencingObject
sequenceFileId
- Id for theSequenceFile
- Returns:
FastQCImagesResponse
dto which has the byte arrays for the images as well as the fastqc version- Throws:
java.io.IOException
- if entity is not found
-
downloadSequenceFile
@GetMapping("/download") public void downloadSequenceFile(@RequestParam java.lang.Long sequencingObjectId, @RequestParam java.lang.Long sequenceFileId, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
Download the sequence file- Parameters:
sequencingObjectId
- ID for theSequencingObject
sequenceFileId
- Id for theSequenceFile
response
- HTTP response object- Throws:
java.io.IOException
- if file is not found
-
-