@Controller @RequestMapping(value="/annotators") public class AnnotatorController extends Object
| Constructor and Description |
|---|
AnnotatorController(DataService dataService,
AnnotationService annotationService,
MolgenisPermissionService molgenisPermissionService,
PermissionSystemService permissionSystemService,
UserAccountService userAccountService,
AnnotationJobFactory annotationJobFactory,
ExecutorService taskExecutor) |
| Modifier and Type | Method and Description |
|---|---|
String |
annotateData(javax.servlet.http.HttpServletRequest request,
String[] annotatorNames,
String entityName)
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 entityName,
String[] annotatorNames) |
public static final String URI
@Autowired public AnnotatorController(DataService dataService, AnnotationService annotationService, MolgenisPermissionService molgenisPermissionService, PermissionSystemService permissionSystemService, UserAccountService userAccountService, AnnotationJobFactory annotationJobFactory, ExecutorService taskExecutor)
@RequestMapping(value="/get-available-annotators",
method=POST)
@ResponseBody
public Map<String,Map<String,Object>> getMapOfAvailableAnnotators(@RequestBody
String dataSetName)
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 entityName)
annotatorNames - entityName - @ExceptionHandler(value=java.lang.RuntimeException.class) @ResponseBody @ResponseStatus(value=INTERNAL_SERVER_ERROR) public ErrorMessageResponse handleRuntimeException(RuntimeException e)
Copyright © 2016. All Rights Reserved.