Mercurial > hg > AnnotationManagerN4J
comparison src/main/java/de/mpiwg/itgroup/annotations/restlet/AnnotatorAnnotations.java @ 22:b1fb0d117877
adding and listing groups via html works now.
no editing of group membership yet.
no authentication yet.
author | casties |
---|---|
date | Thu, 20 Sep 2012 17:42:26 +0200 |
parents | 715aa11d138b |
children | 9f653697437e 0731c4549065 |
comparison
equal
deleted
inserted
replaced
21:1ac626309352 | 22:b1fb0d117877 |
---|---|
46 // id from URI /annotations/{id} | 46 // id from URI /annotations/{id} |
47 String jsonId = (String) getRequest().getAttributes().get("id"); | 47 String jsonId = (String) getRequest().getAttributes().get("id"); |
48 String id = decodeJsonId(jsonId); | 48 String id = decodeJsonId(jsonId); |
49 logger.debug("annotation-id=" + id); | 49 logger.debug("annotation-id=" + id); |
50 | 50 |
51 // TODO: what to return without id - list of all annotations? | 51 if (id == null) { |
52 // TODO: what to return without id - list all annotations? | |
53 setStatus(Status.CLIENT_ERROR_BAD_REQUEST); | |
54 return null; | |
55 } | |
52 | 56 |
53 // do authentication | 57 // do authentication |
54 Person authUser = Person.createPersonWithId(this.checkAuthToken(entity)); | 58 Person authUser = Person.createPersonWithId(this.checkAuthToken(entity)); |
55 logger.debug("request authenticated=" + authUser); | 59 logger.debug("request authenticated=" + authUser); |
56 | 60 |