Mercurial > hg > AnnotationManagerN4J
comparison src/main/java/de/mpiwg/itgroup/annotations/restlet/AnnotatorAnnotationsByTags.java @ 88:b406507a953d
upped version to 0.5.
can use display name and groups from auth token.
author | casties |
---|---|
date | Tue, 03 Feb 2015 19:01:27 +0100 |
parents | 25eb2e1df106 |
children | cf44d9e1a4a7 |
comparison
equal
deleted
inserted
replaced
87:2beafb8e19e4 | 88:b406507a953d |
---|---|
56 public Representation doGetJSON(Representation entity) { | 56 public Representation doGetJSON(Representation entity) { |
57 logger.fine("AnnotatorAnnotatonsBytag doGetJSON!"); | 57 logger.fine("AnnotatorAnnotatonsBytag doGetJSON!"); |
58 setCorsHeaders(); | 58 setCorsHeaders(); |
59 | 59 |
60 // do authentication | 60 // do authentication |
61 Person authUser = Person.createPersonWithId(this.checkAuthToken(entity)); | 61 Person authUser = getUserFromAuthToken(entity); |
62 logger.fine("request authenticated=" + authUser); | 62 logger.fine("request authenticated=" + authUser); |
63 | 63 |
64 String id = (String) getRequest().getAttributes().get("id"); | 64 String id = (String) getRequest().getAttributes().get("id"); |
65 // URL decode | 65 // URL decode |
66 try { | 66 try { |