Class AnalysesOutputsAjaxController
- java.lang.Object
-
- ca.corefacility.bioinformatics.irida.ria.web.analyses.AnalysesOutputsAjaxController
-
@RestController @Scope("session") @RequestMapping("/ajax/analyses-outputs") public class AnalysesOutputsAjaxController extends java.lang.Object
Controller for handling all ajax requests for Single Sample Analyses Outputs.
-
-
Constructor Summary
Constructors Constructor Description AnalysesOutputsAjaxController(UIAnalysesOutputsService uiProjectAnalysesService, org.springframework.context.MessageSource messageSource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
downloadIndividualFile(java.lang.Long analysisSubmissionId, java.lang.Long fileId, java.lang.String filename, javax.servlet.http.HttpServletResponse response)
Download single output files from anAnalysisSubmission
void
downloadSelection(java.lang.String filename, javax.servlet.http.HttpServletResponse response)
Download the selectedAnalysisOutputFile
.org.springframework.http.ResponseEntity<java.util.List<ProjectSampleAnalysisOutputInfo>>
getAllUserAnalysisOutputInfo()
Get all the user single sample analysis outputsorg.springframework.http.ResponseEntity<java.util.List<ProjectSampleAnalysisOutputInfo>>
getAutomatedSingleSampleOutputs(java.lang.Long projectId)
Get all the automated single sample analysis outputs for the projectorg.springframework.http.ResponseEntity<java.util.List<ProjectSampleAnalysisOutputInfo>>
getSharedSingleSampleOutputs(java.lang.Long projectId)
Get all the shared single sample analysis outputs for the projectvoid
prepareDownload(java.util.List<ProjectSampleAnalysisOutputInfo> outputs, java.util.Locale locale)
Prepare the download of multipleAnalysisOutputFile
by adding them to a selection.
-
-
-
Constructor Detail
-
AnalysesOutputsAjaxController
@Autowired public AnalysesOutputsAjaxController(UIAnalysesOutputsService uiProjectAnalysesService, org.springframework.context.MessageSource messageSource)
-
-
Method Detail
-
getSharedSingleSampleOutputs
@GetMapping("/shared") public org.springframework.http.ResponseEntity<java.util.List<ProjectSampleAnalysisOutputInfo>> getSharedSingleSampleOutputs(@RequestParam java.lang.Long projectId)
Get all the shared single sample analysis outputs for the project- Parameters:
projectId
-Project
id- Returns:
- a response containing a list of filtered
ProjectSampleAnalysisOutputInfo
shared single sample analysis outputs
-
getAutomatedSingleSampleOutputs
@GetMapping("/automated") public org.springframework.http.ResponseEntity<java.util.List<ProjectSampleAnalysisOutputInfo>> getAutomatedSingleSampleOutputs(@RequestParam java.lang.Long projectId)
Get all the automated single sample analysis outputs for the project- Parameters:
projectId
-Project
id- Returns:
- a response containing a list of filtered
ProjectSampleAnalysisOutputInfo
automated single sample analysis outputs
-
getAllUserAnalysisOutputInfo
@GetMapping("/user") public org.springframework.http.ResponseEntity<java.util.List<ProjectSampleAnalysisOutputInfo>> getAllUserAnalysisOutputInfo()
Get all the user single sample analysis outputs- Returns:
- a response containing a list of filtered
ProjectSampleAnalysisOutputInfo
user single sample analysis outputs
-
prepareDownload
@PostMapping("/download/prepare") public void prepareDownload(@RequestBody java.util.List<ProjectSampleAnalysisOutputInfo> outputs, java.util.Locale locale)
Prepare the download of multipleAnalysisOutputFile
by adding them to a selection.- Parameters:
locale
- User's localeoutputs
- Info forAnalysisOutputFile
to download
-
downloadSelection
@GetMapping(value="/download/selection", produces="application/json") public void downloadSelection(@RequestParam(required=false,defaultValue="analysis-output-files-batch-download") java.lang.String filename, javax.servlet.http.HttpServletResponse response)
Download the selectedAnalysisOutputFile
.- Parameters:
filename
- Optional filename for file download.response
-HttpServletResponse
-
downloadIndividualFile
@GetMapping("/download/file") public void downloadIndividualFile(@RequestParam java.lang.Long analysisSubmissionId, @RequestParam java.lang.Long fileId, @RequestParam(defaultValue="",required=false) java.lang.String filename, javax.servlet.http.HttpServletResponse response)
Download single output files from anAnalysisSubmission
- Parameters:
analysisSubmissionId
- Id for aAnalysisSubmission
fileId
- the id of the file to downloadfilename
- Optional filename for file download.response
-HttpServletResponse
-
-