Class NCBIAjaxController


  • @RestController
    @RequestMapping("/ajax/ncbi")
    public class NCBIAjaxController
    extends java.lang.Object
    Spring Ajax Controller to handle NCBI requests.
    • Constructor Detail

      • NCBIAjaxController

        @Autowired
        public NCBIAjaxController​(UINcbiService service)
    • Method Detail

      • getNCBIExportsForProject

        @RequestMapping("/project/{projectId}/list")
        public org.springframework.http.ResponseEntity<java.util.List<NcbiExportSubmissionTableModel>> getNCBIExportsForProject​(@PathVariable
                                                                                                                                java.lang.Long projectId)
        Get a List of all NCBI Export Submissions on a Project
        Parameters:
        projectId - Identifier for a Project
        Returns:
        List of NcbiExportSubmissionAdminTableModel
      • getExportDetails

        @GetMapping("/project/{projectId}/details/{exportId}")
        public org.springframework.http.ResponseEntity<NcbiSubmissionModel> getExportDetails​(@PathVariable
                                                                                             java.lang.Long projectId,
                                                                                             @PathVariable
                                                                                             java.lang.Long exportId)
        Get the details of a specific NCBI SRA submission
        Parameters:
        projectId - Identifier for the current project
        exportId - Identifier for the NCBI SRA Submission
        Returns:
        details about the submission
      • getNCBIExportsForAdmin

        @RequestMapping("/list")
        @PreAuthorize("hasRole(\'ROLE_ADMIN\')")
        public org.springframework.http.ResponseEntity<TableResponse<NcbiExportSubmissionAdminTableModel>> getNCBIExportsForAdmin​(@RequestBody
                                                                                                                                  TableRequest request)
        Get a paged list of NCBI Export Submission based on the current page information
        Parameters:
        request - TableRequest containing details about the current page
        Returns:
        TableResponse of NCBI Export Submissions
      • getNcbiPlatforms

        @GetMapping("/platforms")
        public java.util.EnumMap<NcbiPlatform,​java.util.List<java.lang.String>> getNcbiPlatforms()
        Get all the available NCBI Sequencing platforms.
        Returns:
        EnumMap with the key being the brand and the value a List of their platforms.
      • getNcbiSources

        @GetMapping("/sources")
        public java.util.List<java.lang.String> getNcbiSources()
        Get a list of NCBI Library Sources
        Returns:
        List of NCBI Library Sources
      • getNcbiStrategies

        @GetMapping("/strategies")
        public java.util.List<java.lang.String> getNcbiStrategies()
        Get a list of NCBI allowed Library strategies
        Returns:
        List of NCBI Library Strategies
      • getNcbiSelection

        @GetMapping("/selections")
        public java.util.List<java.lang.String> getNcbiSelection()
        Get a list of NCBI allowed Library selection techniques
        Returns:
        List of NCBI Library Selections
      • submitNcbiExport

        @PostMapping("/submit")
        public void submitNcbiExport​(@RequestBody
                                     NcbiSubmissionRequest submission)
        Submit a NCBI SRA Submission
        Parameters:
        submission - details about the submission