Improve and fix print.
Support for jetty:run fixed. Several minor fixes.
This commit is contained in:
@@ -33,14 +33,8 @@ public class MindmapController {
|
||||
return new ModelAndView("mindmapExport", "mindmap", modelObject);
|
||||
}
|
||||
|
||||
@RequestMapping(value = "edit")
|
||||
public ModelAndView edit(@RequestParam(required = true) long mapId) {
|
||||
final MindMapBean modelObject = findMindmapBean(mapId);
|
||||
return new ModelAndView("mindmapEditor", "wisemapsList", modelObject);
|
||||
}
|
||||
|
||||
@RequestMapping(value = "collaborator")
|
||||
public ModelAndView collaborator(@RequestParam(required = true) long mapId) {
|
||||
public ModelAndView showCollaborator(@RequestParam(required = true) long mapId) {
|
||||
final MindMapBean modelObject = findMindmapBean(mapId);
|
||||
return new ModelAndView("mindmapCollaborator", "mindmap", modelObject);
|
||||
}
|
||||
@@ -52,13 +46,21 @@ public class MindmapController {
|
||||
}
|
||||
|
||||
@RequestMapping(value = "detail")
|
||||
public ModelAndView detail(@RequestParam(required = true) long mapId) {
|
||||
public ModelAndView showDetails(@RequestParam(required = true) long mapId) {
|
||||
final MindMapBean modelObject = findMindmapBean(mapId);
|
||||
final ModelAndView view = new ModelAndView("mindmapDetail", "wisemapDetail", modelObject);
|
||||
view.addObject("user", Utils.getUser());
|
||||
return view;
|
||||
}
|
||||
|
||||
@RequestMapping(value = "print")
|
||||
public ModelAndView showPrintPage(@RequestParam(required = true) long mapId) {
|
||||
final MindMap mindmap = findMindmap(mapId);
|
||||
final ModelAndView view = new ModelAndView("mindmapPrint", "mindmap", mindmap);
|
||||
view.addObject("user", Utils.getUser());
|
||||
return view;
|
||||
}
|
||||
|
||||
@RequestMapping(value = "changeStatus")
|
||||
public ModelAndView changeStatus(@RequestParam(required = true) long mapId) throws WiseMappingException {
|
||||
final MindMap mindmap = findMindmap(mapId);
|
||||
@@ -68,14 +70,6 @@ public class MindmapController {
|
||||
return new ModelAndView("mindmapDetail", "wisemapDetail", new MindMapBean(mindmap));
|
||||
}
|
||||
|
||||
@RequestMapping(value = "editMindmap")
|
||||
public ModelAndView editMindmap(@RequestParam(required = true) long mapId) throws WiseMappingException {
|
||||
final MindMapBean mindmap = findMindmapBean(mapId);
|
||||
final ModelAndView view = new ModelAndView("editMindmap", "mindmap", mindmap);
|
||||
view.addObject("user", Utils.getUser());
|
||||
return view;
|
||||
}
|
||||
|
||||
@RequestMapping(value = "mymaps")
|
||||
public ModelAndView list(@NotNull HttpServletRequest request) {
|
||||
final HttpSession session = request.getSession(false);
|
||||
|
Reference in New Issue
Block a user