@Controller @RequestMapping(value="/plugin/sorta") public class SortaController extends PluginController
| Modifier and Type | Field and Description |
|---|---|
static double |
DEFAULT_THRESHOLD |
static String |
ID |
static String |
MATCH_VIEW_NAME |
static String |
URI |
PLUGIN_URI_PREFIX| Constructor and Description |
|---|
SortaController(org.molgenis.ontology.core.service.OntologyService ontologyService,
SortaService sortaService,
SortaJobFactory sortaMatchJobFactory,
ExecutorService taskExecutor,
org.molgenis.security.user.UserAccountService userAccountService,
org.molgenis.data.file.FileStore fileStore,
org.molgenis.security.core.PermissionService permissionService,
DataService dataService,
org.molgenis.core.ui.menu.MenuReaderService menuReaderService,
IdGenerator idGenerator,
org.molgenis.data.security.permission.PermissionSystemService permissionSystemService,
MatchingTaskContentMetaData matchingTaskContentMetaData,
SortaJobExecutionMetaData sortaJobExecutionMetaData,
org.molgenis.ontology.core.meta.OntologyTermMetaData ontologyTermMetaData,
SortaJobExecutionFactory sortaJobExecutionFactory,
EntityTypeFactory entityTypeFactory,
AttributeFactory attrMetaFactory) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
countMatchResult(String sortaJobExecutionId) |
String |
deleteResult(String sortaJobExecutionId,
org.springframework.ui.Model model) |
void |
download(String sortaJobExecutionId,
javax.servlet.http.HttpServletResponse response) |
SortaServiceResponse |
findMatchingOntologyTerms(Map<String,Object> request) |
List<SortaJobExecution> |
getJobs() |
String |
init(org.springframework.ui.Model model) |
String |
match(String jobName,
String ontologyIri,
String inputTerms,
org.springframework.ui.Model model,
javax.servlet.http.HttpServletRequest httpServletRequest) |
String |
matchResult(String sortaJobExecutionId,
org.springframework.ui.Model model) |
String |
matchTask(org.springframework.ui.Model model) |
EntityCollectionResponse |
retrieveSortaJobResults(SortaServiceRequest sortaServiceRequest) |
String |
updateThreshold(String threshold,
String sortaJobExecutionId,
org.springframework.ui.Model model) |
String |
upload(String jobName,
String ontologyIri,
org.springframework.web.multipart.MultipartFile file,
org.springframework.ui.Model model,
javax.servlet.http.HttpServletRequest httpServletRequest) |
getId, getPluginSettings, getUripublic static final String ID
public static final String URI
public static final String MATCH_VIEW_NAME
public static final double DEFAULT_THRESHOLD
public SortaController(org.molgenis.ontology.core.service.OntologyService ontologyService,
SortaService sortaService,
SortaJobFactory sortaMatchJobFactory,
ExecutorService taskExecutor,
org.molgenis.security.user.UserAccountService userAccountService,
org.molgenis.data.file.FileStore fileStore,
org.molgenis.security.core.PermissionService permissionService,
DataService dataService,
org.molgenis.core.ui.menu.MenuReaderService menuReaderService,
IdGenerator idGenerator,
org.molgenis.data.security.permission.PermissionSystemService permissionSystemService,
MatchingTaskContentMetaData matchingTaskContentMetaData,
SortaJobExecutionMetaData sortaJobExecutionMetaData,
org.molgenis.ontology.core.meta.OntologyTermMetaData ontologyTermMetaData,
SortaJobExecutionFactory sortaJobExecutionFactory,
EntityTypeFactory entityTypeFactory,
AttributeFactory attrMetaFactory)
@GetMapping public String init(org.springframework.ui.Model model)
@GetMapping(value="/jobs") @ResponseBody public List<SortaJobExecution> getJobs()
@GetMapping(value="/newtask") public String matchTask(org.springframework.ui.Model model)
@PostMapping(value="/threshold/{sortaJobExecutionId}")
public String updateThreshold(@RequestParam(value="threshold")
String threshold,
@PathVariable
String sortaJobExecutionId,
org.springframework.ui.Model model)
@GetMapping(value="/result/{sortaJobExecutionId}")
public String matchResult(@PathVariable(value="sortaJobExecutionId")
String sortaJobExecutionId,
org.springframework.ui.Model model)
@GetMapping(value="/count/{sortaJobExecutionId}")
@ResponseBody
public Map<String,Object> countMatchResult(@PathVariable(value="sortaJobExecutionId")
String sortaJobExecutionId)
@PostMapping(value="/delete/{sortaJobExecutionId}")
@ResponseStatus(value=OK)
public String deleteResult(@PathVariable(value="sortaJobExecutionId")
String sortaJobExecutionId,
org.springframework.ui.Model model)
@PostMapping(value="/match/retrieve") @ResponseBody public EntityCollectionResponse retrieveSortaJobResults(@RequestBody SortaServiceRequest sortaServiceRequest)
@PostMapping(value="/match") public String match(@RequestParam(value="taskName") String jobName, @RequestParam(value="selectOntologies") String ontologyIri, @RequestParam(value="inputTerms") String inputTerms, org.springframework.ui.Model model, javax.servlet.http.HttpServletRequest httpServletRequest) throws IOException
IOException@PostMapping(value="/match/upload",
headers="Content-Type=multipart/form-data")
public String upload(@RequestParam(value="taskName")
String jobName,
@RequestParam(value="selectOntologies")
String ontologyIri,
@RequestParam(value="file")
org.springframework.web.multipart.MultipartFile file,
org.springframework.ui.Model model,
javax.servlet.http.HttpServletRequest httpServletRequest)
throws IOException
IOException@PostMapping(value="/match/entity") @ResponseBody public SortaServiceResponse findMatchingOntologyTerms(@RequestBody Map<String,Object> request)
@GetMapping(value="/match/download/{sortaJobExecutionId}")
public void download(@PathVariable
String sortaJobExecutionId,
javax.servlet.http.HttpServletResponse response)
throws IOException
IOExceptionCopyright © 2018. All rights reserved.