|
|
@@ -63,8 +63,7 @@ public class ParseController {
|
|
|
* @param year The year to parse from
|
|
|
*/
|
|
|
@PostMapping("/admin/parse/do")
|
|
|
- @Secured({"ROLE_ADMIN"})
|
|
|
- public void doParse(Model model, Authentication auth, HttpServletResponse response, @RequestParam String database,
|
|
|
+ public void doParse(HttpServletResponse response, @RequestParam String database,
|
|
|
@RequestParam String table, @RequestParam Integer year) throws IOException, SQLException, ClassNotFoundException {
|
|
|
|
|
|
System.out.println(database + " -> " + table + " -> " + year.toString());
|
|
|
@@ -81,8 +80,7 @@ public class ParseController {
|
|
|
* @param action The action to perform
|
|
|
*/
|
|
|
@PostMapping("/admin/parse/action")
|
|
|
- @Secured({"ROLE_ADMIN"})
|
|
|
- public void doAction(Model model, Authentication auth, HttpServletResponse response, @RequestParam String action)
|
|
|
+ public void doAction(HttpServletResponse response, @RequestParam String action)
|
|
|
throws IOException, SQLException, ClassNotFoundException {
|
|
|
|
|
|
System.out.println(action);
|
|
|
@@ -104,8 +102,7 @@ public class ParseController {
|
|
|
* @param year The year of the survey to delete indicators from (0 for all years)
|
|
|
*/
|
|
|
@PostMapping("/admin/parse/delete")
|
|
|
- @Secured({"ROLE_ADMIN"})
|
|
|
- public void doDelete(Model model, Authentication auth, HttpServletResponse response, @RequestParam String action, @RequestParam Integer year)
|
|
|
+ public void doDelete(HttpServletResponse response, @RequestParam String action, @RequestParam Integer year)
|
|
|
throws IOException, SQLException, ClassNotFoundException {
|
|
|
|
|
|
String r = "-1";
|