Changeset 88:b406507a953d in AnnotationManagerN4J for src/main/java/de/mpiwg/itgroup/annotations/restlet/AnnotatorAnnotations.java
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/de/mpiwg/itgroup/annotations/restlet/AnnotatorAnnotations.java
r75 r88 1 /**2 * Implements the "annotations" uri of the Annotator API. see3 * <https://github.com/okfn/annotator/wiki/Storage>4 */5 1 package de.mpiwg.itgroup.annotations.restlet; 6 2 … … 88 84 89 85 // do authentication 90 Person authUser = Person.createPersonWithId(this.checkAuthToken(entity));86 Person authUser = getUserFromAuthToken(entity); 91 87 logger.fine("request authenticated=" + authUser); 92 88 … … 173 169 174 170 // do authentication TODO: who's allowed to create? 175 Person authUser = Person.createPersonWithId(this.checkAuthToken(entity));171 Person authUser = getUserFromAuthToken(entity); 176 172 logger.fine("request authenticated=" + authUser); 177 173 if (authUser == null) { … … 190 186 // make sure id is not set for POST 191 187 jo.remove("id"); 192 // getAnnotation object from posted JSON188 // create Annotation object from posted JSON 193 189 annot = createAnnotation(jo, entity); 194 190 } catch (IOException e1) { … … 231 227 232 228 // do authentication 233 Person authUser = Person.createPersonWithId(this.checkAuthToken(entity));229 Person authUser = getUserFromAuthToken(entity); 234 230 logger.fine("request authenticated=" + authUser); 235 231 … … 294 290 295 291 // do authentication 296 Person authUser = Person.createPersonWithId(this.checkAuthToken(entity));292 Person authUser = getUserFromAuthToken(entity); 297 293 logger.fine("request authenticated=" + authUser); 298 294 AnnotationStore store = getAnnotationStore();
Note: See TracChangeset
for help on using the changeset viewer.