Add history purge.

This commit is contained in:
Paulo Gustavo Veiga 2013-03-26 22:58:45 -03:00
parent 2b8972a35a
commit dcd59efc12

View File

@ -179,10 +179,16 @@ 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.
} }
} }
} }
@ResponseStatus(value = HttpStatus.NO_CONTENT)
@RequestMapping(method = RequestMethod.GET, value = "admin/database/purge/history")
public void purgeHistory(@RequestParam(required = true) Integer mapId) throws WiseMappingException, UnsupportedEncodingException {
mindmapService.removeHistory(mapId);
}
private boolean isWelcomeMap(@NotNull Mindmap mindmap) throws UnsupportedEncodingException { private boolean isWelcomeMap(@NotNull Mindmap mindmap) throws UnsupportedEncodingException {
// Is welcome map ? // Is welcome map ?
final String xmlStr = mindmap.getXmlStr(); final String xmlStr = mindmap.getXmlStr();