@Controller @RequestMapping(value="/annotators") public class AnnotatorController extends Object
| Constructor and Description |
|---|
AnnotatorController(DataService dataService,
AnnotationService annotationService,
MolgenisPermissionService molgenisPermissionService,
org.quartz.Scheduler scheduler,
PermissionSystemService permissionSystemService,
UserAccountService userAccountService) |
| Modifier and Type | Method and Description |
|---|---|
String |
annotateData(javax.servlet.http.HttpServletRequest request,
String[] annotatorNames,
String entityName,
boolean createCopy)
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) |
org.quartz.TriggerKey |
scheduleAnnotatorRun(String entityName,
List<RepositoryAnnotator> annotators) |
public static final String URI
@Autowired public AnnotatorController(DataService dataService, AnnotationService annotationService, MolgenisPermissionService molgenisPermissionService, org.quartz.Scheduler scheduler, PermissionSystemService permissionSystemService, UserAccountService userAccountService)
@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,
@RequestParam(value="createCopy",required=false)
boolean createCopy)
annotatorNames - entityName - createCopy - public org.quartz.TriggerKey scheduleAnnotatorRun(String entityName, List<RepositoryAnnotator> annotators) throws org.quartz.SchedulerException
org.quartz.SchedulerException@ExceptionHandler(value=java.lang.RuntimeException.class) @ResponseBody @ResponseStatus(value=INTERNAL_SERVER_ERROR) public ErrorMessageResponse handleRuntimeException(RuntimeException e)
Copyright © 2016. All Rights Reserved.