@Controller @RequestMapping(value="/annotators") public class AnnotatorController extends Object
| Constructor and Description |
|---|
AnnotatorController(DataService dataService,
AnnotationService annotationService,
org.molgenis.security.core.PermissionService permissionService,
org.molgenis.security.user.UserAccountService userAccountService,
AnnotationJobFactory annotationJobFactory,
ExecutorService taskExecutor,
AnnotationJobExecutionFactory annotationJobExecutionFactory) |
| Modifier and Type | Method and Description |
|---|---|
String |
annotateData(javax.servlet.http.HttpServletRequest request,
String[] annotatorNames,
String entityTypeId)
Annotates an entity based on selected entity and selected annotators.
|
Map<String,Map<String,Object>> |
getMapOfAvailableAnnotators(String dataSetName)
Gets a map of all available annotators.
|
ErrorMessageResponse |
handleRuntimeException(RuntimeException e) |
String |
scheduleAnnotatorRun(String entityTypeId,
String[] annotatorNames) |
public static final String URI
@Autowired public AnnotatorController(DataService dataService, AnnotationService annotationService, org.molgenis.security.core.PermissionService permissionService, org.molgenis.security.user.UserAccountService userAccountService, AnnotationJobFactory annotationJobFactory, ExecutorService taskExecutor, AnnotationJobExecutionFactory annotationJobExecutionFactory)
@RequestMapping(value="/get-available-annotators",
method=POST)
@ResponseBody
public Map<String,Map<String,Object>> getMapOfAvailableAnnotators(@RequestBody
String dataSetName)
@RequestMapping(value="/annotate-data",
method=POST)
@ResponseBody
public String annotateData(javax.servlet.http.HttpServletRequest request,
@RequestParam(value="annotatorNames",required=false)
String[] annotatorNames,
@RequestParam(value="dataset-identifier")
String entityTypeId)
public String scheduleAnnotatorRun(String entityTypeId, String[] annotatorNames)
@ExceptionHandler(value=java.lang.RuntimeException.class) @ResponseBody @ResponseStatus(value=INTERNAL_SERVER_ERROR) public ErrorMessageResponse handleRuntimeException(RuntimeException e)
Copyright © 2017. All rights reserved.