Class SortaController


  • @Controller
    @RequestMapping("/plugin/sorta")
    public class SortaController
    extends org.molgenis.web.PluginController
    • Method Detail

      • init

        @GetMapping
        public String init​(org.springframework.ui.Model model)
      • matchTask

        @GetMapping("/newtask")
        public String matchTask​(org.springframework.ui.Model model)
      • updateThreshold

        @PostMapping("/threshold/{sortaJobExecutionId}")
        public String updateThreshold​(@RequestParam("threshold")
                                      String threshold,
                                      @PathVariable
                                      String sortaJobExecutionId,
                                      org.springframework.ui.Model model)
      • matchResult

        @GetMapping("/result/{sortaJobExecutionId}")
        public String matchResult​(@PathVariable("sortaJobExecutionId")
                                  String sortaJobExecutionId,
                                  org.springframework.ui.Model model)
      • countMatchResult

        @GetMapping("/count/{sortaJobExecutionId}")
        @ResponseBody
        public Map<String,​Object> countMatchResult​(@PathVariable("sortaJobExecutionId")
                                                         String sortaJobExecutionId)
      • deleteResult

        @PostMapping("/delete/{sortaJobExecutionId}")
        @ResponseStatus(OK)
        public String deleteResult​(@PathVariable("sortaJobExecutionId")
                                   String sortaJobExecutionId,
                                   org.springframework.ui.Model model)
      • match

        @PostMapping("/match")
        public String match​(@RequestParam("taskName")
                            String jobName,
                            @RequestParam("selectOntologies")
                            String ontologyIri,
                            @RequestParam("inputTerms")
                            String inputTerms,
                            org.springframework.ui.Model model,
                            javax.servlet.http.HttpServletRequest httpServletRequest)
                     throws IOException
        Throws:
        IOException
      • upload

        @PostMapping(value="/match/upload",
                     headers="Content-Type=multipart/form-data")
        public String upload​(@RequestParam("taskName")
                             String jobName,
                             @RequestParam("selectOntologies")
                             String ontologyIri,
                             @RequestParam("file")
                             org.springframework.web.multipart.MultipartFile file,
                             org.springframework.ui.Model model,
                             javax.servlet.http.HttpServletRequest httpServletRequest)
                      throws IOException
        Throws:
        IOException
      • findMatchingOntologyTerms

        @PostMapping("/match/entity")
        @ResponseBody
        public SortaServiceResponse findMatchingOntologyTerms​(@RequestBody
                                                              Map<String,​Object> request)
      • download

        @GetMapping("/match/download/{sortaJobExecutionId}")
        public void download​(@PathVariable
                             String sortaJobExecutionId,
                             javax.servlet.http.HttpServletResponse response)
                      throws IOException
        Throws:
        IOException