Class SortaController


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

      • SortaController

        public SortaController​(org.molgenis.ontology.core.service.OntologyService ontologyService,
                               SortaService sortaService,
                               org.molgenis.security.user.UserAccountService userAccountService,
                               org.molgenis.data.file.FileStore fileStore,
                               org.molgenis.security.core.UserPermissionEvaluator permissionService,
                               org.molgenis.data.DataService dataService,
                               org.molgenis.web.menu.MenuReaderService menuReaderService,
                               org.molgenis.data.populate.IdGenerator idGenerator,
                               org.molgenis.data.security.permission.PermissionSystemService permissionSystemService,
                               MatchingTaskContentMetaData matchingTaskContentMetaData,
                               SortaJobExecutionMetadata sortaJobExecutionMetaData,
                               org.molgenis.ontology.core.meta.OntologyTermMetadata ontologyTermMetadata,
                               SortaJobExecutionFactory sortaJobExecutionFactory,
                               org.molgenis.data.meta.model.EntityTypeFactory entityTypeFactory,
                               org.molgenis.data.meta.model.AttributeFactory attrMetaFactory,
                               org.molgenis.jobs.JobExecutor jobExecutor)
    • 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