@Controller @RequestMapping(value="/plugin/ontologyservice") public class OntologyServiceController extends MolgenisPluginController
| Modifier and Type | Field and Description |
|---|---|
static String |
ID |
static int |
INVALID_TOTAL_NUMBER |
static String |
URI |
PLUGIN_URI_PREFIX| Constructor and Description |
|---|
OntologyServiceController() |
| Modifier and Type | Method and Description |
|---|---|
String |
calculateRoc(String entityName,
org.springframework.ui.Model model) |
void |
deleteResult(String entityName) |
void |
download(String entityName,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model) |
String |
init(org.springframework.ui.Model model) |
String |
match(String entityName,
String ontologyIri,
String inputTerms,
org.springframework.ui.Model model,
javax.servlet.http.HttpServletRequest httpServletRequest) |
OntologyServiceResult |
matchResult(Map<String,Object> request,
javax.servlet.http.HttpServletRequest httpServletRequest) |
EntityCollectionResponse |
matchResult(OntologyServiceRequest ontologyServiceRequest,
javax.servlet.http.HttpServletRequest httpServletRequest) |
String |
matchResult(String entityName,
org.springframework.ui.Model model) |
String |
matchTask(org.springframework.ui.Model model) |
OntologyServiceResult |
search(Map<String,Object> request,
javax.servlet.http.HttpServletRequest httpServletRequest) |
String |
updateThreshold(String threshold,
String entityName,
org.springframework.ui.Model model) |
String |
upload(String entityName,
String ontologyIri,
javax.servlet.http.Part file,
org.springframework.ui.Model model,
javax.servlet.http.HttpServletRequest httpServletRequest) |
getId, getUripublic static final String ID
public static final String URI
public static final int INVALID_TOTAL_NUMBER
@RequestMapping(method=GET) public String init(org.springframework.ui.Model model)
@RequestMapping(method=GET,
value="/newtask")
public String matchTask(org.springframework.ui.Model model)
@RequestMapping(method=GET,
value="/calculate/{entityName}")
public String calculateRoc(@PathVariable
String entityName,
org.springframework.ui.Model model)
throws IOException,
MolgenisInvalidFormatException
@RequestMapping(method=POST,
value="/threshold/{entityName}")
public String updateThreshold(@RequestParam(value="threshold",required=true)
String threshold,
@PathVariable
String entityName,
org.springframework.ui.Model model)
@RequestMapping(method=GET,
value="/result/{entityName}")
public String matchResult(@PathVariable(value="entityName")
String entityName,
org.springframework.ui.Model model)
@RequestMapping(method=POST,
value="/delete")
@ResponseStatus(value=OK)
public void deleteResult(@RequestBody
String entityName)
@RequestMapping(method=POST,
value="/match/retrieve")
@ResponseBody
public EntityCollectionResponse matchResult(@RequestBody
OntologyServiceRequest ontologyServiceRequest,
javax.servlet.http.HttpServletRequest httpServletRequest)
@RequestMapping(method=POST,
value="/match")
public String match(@RequestParam(value="taskName",required=true)
String entityName,
@RequestParam(value="selectOntologies",required=true)
String ontologyIri,
@RequestParam(value="inputTerms",required=true)
String inputTerms,
org.springframework.ui.Model model,
javax.servlet.http.HttpServletRequest httpServletRequest)
throws Exception
Exception@RequestMapping(method=POST,
value="/match/upload",
headers="Content-Type=multipart/form-data")
public String upload(@RequestParam(value="taskName",required=true)
String entityName,
@RequestParam(value="selectOntologies",required=true)
String ontologyIri,
@RequestParam(value="file",required=true)
javax.servlet.http.Part file,
org.springframework.ui.Model model,
javax.servlet.http.HttpServletRequest httpServletRequest)
throws Exception
Exception@RequestMapping(method=POST,
value="/match/entity")
@ResponseBody
public OntologyServiceResult matchResult(@RequestBody
Map<String,Object> request,
javax.servlet.http.HttpServletRequest httpServletRequest)
@RequestMapping(method=POST,
value="/search")
@ResponseBody
public OntologyServiceResult search(@RequestBody
Map<String,Object> request,
javax.servlet.http.HttpServletRequest httpServletRequest)
@RequestMapping(method=GET,
value="/match/download/{entityName}")
public void download(@PathVariable
String entityName,
javax.servlet.http.HttpServletResponse response,
org.springframework.ui.Model model)
throws IOException
IOExceptionCopyright © 2015. All Rights Reserved.