Revision 53594
Added by Konstantina Galouni over 5 years ago
HtmlPageContentController.java | ||
---|---|---|
79 | 79 |
return htmlPageContentDAO.save(htmlPageContent); |
80 | 80 |
} |
81 | 81 |
|
82 |
@RequestMapping(value = "/htmlpagecontent/{id}", method = RequestMethod.DELETE) |
|
83 |
public void deleteHtmlPageContent(@PathVariable(value = "id") String id) { |
|
84 |
htmlPageContentDAO.delete(id); |
|
85 |
} |
|
82 | 86 |
/* |
83 | 87 |
@RequestMapping(value = "/htmlpagecontent/{id}", method = RequestMethod.GET) |
84 | 88 |
public HtmlPageContent getHtmlPageContent(@PathVariable(value = "id") String id) { |
85 | 89 |
return htmlPageContentDAO.findById(id); |
86 | 90 |
} |
87 | 91 |
|
88 |
@RequestMapping(value = "/htmlpagecontent/{id}", method = RequestMethod.DELETE) |
|
89 |
public void deleteHtmlPageContent(@PathVariable(value = "id") String id) { |
|
90 |
htmlPageContentDAO.delete(id); |
|
91 |
} |
|
92 | 92 |
|
93 | 93 |
@RequestMapping(value = "/htmlpagecontent/delete", method = RequestMethod.POST) |
94 | 94 |
public Boolean deleteHtmlPageContents(@RequestBody List<String> htmlPageContents) throws Exception { |
Also available in: Unified diff
1. update_db.js: Add 'addDefaultHtmlToHtmlPagesForCommunity()' function for adding hmtl contents (/about and /organizations routes) to 'Clarin' community.
2. CommunityController.java: Add htmlPageContents when a community is created | delete htmlPageContents, statistics, communitySubscribers when a community is deleted.