Changeset 65:c0dd5314bada in AnnotationManagerN4J for src/main/java/de/mpiwg/itgroup/annotations/restlet/annotations_ui/PersonsResource.java
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/de/mpiwg/itgroup/annotations/restlet/annotations_ui/PersonsResource.java
r50 r65 57 57 String form = f.getFirstValue("form"); 58 58 if (form != null && form.equals("new_person")) { 59 // output new groupform59 // output new person form 60 60 result = "<html><body>\n"; 61 61 result += "<h1>New person</h1>\n"; … … 69 69 result += "</form>\n</body>\n</html>"; 70 70 } else { 71 // list all groups71 // list all persons 72 72 result = "<html><body>\n<h1>Persons</h1>\n<table>"; 73 73 result += "<tr><th>id</th><th>name</th><th>uri</th></tr>"; … … 75 75 for (Person person : persons) { 76 76 Reference url = this.getReference().clone(); 77 url.addSegment(person.getId ());77 url.addSegment(person.getIdString()); 78 78 result += String.format("<tr><td><a href=\"%s\">%s</a></td><td>%s</td><td>%s</td></tr>\n", url, 79 79 person.getIdString(), person.getName(), person.getUri()); … … 87 87 88 88 /** 89 * POST creates a new Group.89 * POST creates a new person. 90 90 * 91 91 * @return
Note: See TracChangeset
for help on using the changeset viewer.