Class NCBIAjaxController
- java.lang.Object
-
- ca.corefacility.bioinformatics.irida.ria.web.NCBIAjaxController
-
@RestController @RequestMapping("/ajax/ncbi") public class NCBIAjaxController extends java.lang.Object
Spring Ajax Controller to handle NCBI requests.
-
-
Constructor Summary
Constructors Constructor Description NCBIAjaxController(UINcbiService service)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<NcbiSubmissionModel>
getExportDetails(java.lang.Long projectId, java.lang.Long exportId)
Get the details of a specific NCBI SRA submissionorg.springframework.http.ResponseEntity<TableResponse<NcbiExportSubmissionAdminTableModel>>
getNCBIExportsForAdmin(TableRequest request)
Get a paged list of NCBI Export Submission based on the current page informationorg.springframework.http.ResponseEntity<java.util.List<NcbiExportSubmissionTableModel>>
getNCBIExportsForProject(java.lang.Long projectId)
Get aList
of all NCBI Export Submissions on a Projectjava.util.EnumMap<NcbiPlatform,java.util.List<java.lang.String>>
getNcbiPlatforms()
Get all the available NCBI Sequencing platforms.java.util.List<java.lang.String>
getNcbiSelection()
Get a list of NCBI allowed Library selection techniquesjava.util.List<java.lang.String>
getNcbiSources()
Get a list of NCBI Library Sourcesjava.util.List<java.lang.String>
getNcbiStrategies()
Get a list of NCBI allowed Library strategiesvoid
submitNcbiExport(NcbiSubmissionRequest submission)
Submit a NCBI SRA Submission
-
-
-
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 aList
of all NCBI Export Submissions on a Project- Parameters:
projectId
- Identifier for a Project- Returns:
List
ofNcbiExportSubmissionAdminTableModel
-
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 projectexportId
- 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 aList
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
-
-