From 580d977aa96b690de4ffadf91ff12a5040df0d3c Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Sun, 24 Mar 2013 15:42:25 -0300 Subject: [PATCH] Add purge flag. --- .../src/main/java/com/wisemapping/rest/AdminController.java | 2 +- wise-webapp/src/main/webapp/WEB-INF/wisemapping-security.xml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/wise-webapp/src/main/java/com/wisemapping/rest/AdminController.java b/wise-webapp/src/main/java/com/wisemapping/rest/AdminController.java index 530b0f2c..447f4a43 100644 --- a/wise-webapp/src/main/java/com/wisemapping/rest/AdminController.java +++ b/wise-webapp/src/main/java/com/wisemapping/rest/AdminController.java @@ -128,8 +128,8 @@ public class AdminController extends BaseController { userService.deleteUser(user); } - @RequestMapping(method = RequestMethod.GET, value = "admin/database/purge") @ResponseStatus(value = HttpStatus.NO_CONTENT) + @RequestMapping(method = RequestMethod.GET, value = "admin/database/purge") public void purgeDB(@RequestParam(required = true) Integer muid, @RequestParam(required = true) Boolean apply) throws UnsupportedEncodingException, WiseMappingException { for (int i = 0; i < muid; i++) { diff --git a/wise-webapp/src/main/webapp/WEB-INF/wisemapping-security.xml b/wise-webapp/src/main/webapp/WEB-INF/wisemapping-security.xml index a9367276..a821492d 100644 --- a/wise-webapp/src/main/webapp/WEB-INF/wisemapping-security.xml +++ b/wise-webapp/src/main/webapp/WEB-INF/wisemapping-security.xml @@ -37,6 +37,7 @@ +