Class 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 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 multiple AnalysisOutputFile by adding them to a selection.
        Parameters:
        locale - User's locale
        outputs - Info for AnalysisOutputFile 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 selected AnalysisOutputFile.
        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 an AnalysisSubmission
        Parameters:
        analysisSubmissionId - Id for a AnalysisSubmission
        fileId - the id of the file to download
        filename - Optional filename for file download.
        response - HttpServletResponse