comparison src/main/java/de/mpiwg/gazetteer/rest/GetSectionMetadata.java @ 10:5610250d021a default tip

SectionsIndex, we added a method to print the setting of the VM
author "jurzua <jurzua@mpiwg-berlin.mpg.de>"
date Thu, 19 Mar 2015 11:46:33 +0100
parents 7682c04c63a8
children
comparison
equal deleted inserted replaced
9:964fc53abeec 10:5610250d021a
20 Long sectionId = getQueryLongParam(request, "sectionId"); 20 Long sectionId = getQueryLongParam(request, "sectionId");
21 21
22 if(sectionId != null){ 22 if(sectionId != null){
23 DBSection section = DBService.getSectionWithContent(sectionId); 23 DBSection section = DBService.getSectionWithContent(sectionId);
24 if(section != null){ 24 if(section != null){
25 DBBook book = DBService.getBook(section.getBookId()); 25 DBBook book = DBService.getBookFromDB(section.getBookId());
26 26
27 response.setContentType("application/json"); 27 response.setContentType("application/json");
28 JSONObject json = new JSONObject(); 28 JSONObject json = new JSONObject();
29 json.put("status", "ok"); 29 json.put("status", "ok");
30 30