mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 14:17:57 +01:00
Add more catchs ..
This commit is contained in:
parent
c12b73c1ff
commit
0188e15a92
@ -134,6 +134,9 @@ public class AdminController extends BaseController {
|
|||||||
public void purgeDB(@RequestParam(required = true) Integer minUid, @RequestParam(required = true) Integer maxUid, @RequestParam(required = true) Boolean apply) throws WiseMappingException, UnsupportedEncodingException {
|
public void purgeDB(@RequestParam(required = true) Integer minUid, @RequestParam(required = true) Integer maxUid, @RequestParam(required = true) Boolean apply) throws WiseMappingException, UnsupportedEncodingException {
|
||||||
|
|
||||||
for (int i = minUid; i < maxUid; i++) {
|
for (int i = minUid; i < maxUid; i++) {
|
||||||
|
|
||||||
|
try {
|
||||||
|
|
||||||
System.out.println("Looking for user:" + i);
|
System.out.println("Looking for user:" + i);
|
||||||
final User user = userService.getUserBy(i);
|
final User user = userService.getUserBy(i);
|
||||||
if (user != null) {
|
if (user != null) {
|
||||||
@ -141,8 +144,6 @@ public class AdminController extends BaseController {
|
|||||||
if (user.getEmail().contains("wisemapping")) {
|
if (user.getEmail().contains("wisemapping")) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
|
||||||
// Iterate over the list of maps ...
|
// Iterate over the list of maps ...
|
||||||
final List<Collaboration> collaborations = mindmapService.findCollaborations(user);
|
final List<Collaboration> collaborations = mindmapService.findCollaborations(user);
|
||||||
for (Collaboration collaboration : collaborations) {
|
for (Collaboration collaboration : collaborations) {
|
||||||
@ -165,6 +166,7 @@ public class AdminController extends BaseController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} catch (UnsupportedEncodingException e) {
|
} catch (UnsupportedEncodingException e) {
|
||||||
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
|
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
|
||||||
} catch (WiseMappingException e) {
|
} catch (WiseMappingException e) {
|
||||||
@ -173,7 +175,6 @@ public class AdminController extends BaseController {
|
|||||||
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
|
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user