use of org.hisp.dhis.interpretation.Interpretation in project dhis2-core by dhis2.
the class InterpretationController method writeMapInterpretation.
@RequestMapping(value = "/map/{uid}", method = RequestMethod.POST, consumes = { "text/html", "text/plain" })
public void writeMapInterpretation(@PathVariable("uid") String uid, @RequestBody String text, HttpServletResponse response, HttpServletRequest request) throws WebMessageException {
Map map = idObjectManager.get(Map.class, uid);
if (map == null) {
throw new WebMessageException(WebMessageUtils.conflict("Map does not exist or is not accessible: " + uid));
}
createIntepretation(new Interpretation(map, text), request, response);
}
Aggregations