@RequestMapping(value = "/search/{archive}/query-multiarchive", method = RequestMethod.GET) public String queryPageMulti( @ModelAttribute("userBean") UserBean userBean, @ModelAttribute("confBean") ConfBean confBean, @PathVariable String archive, ModelMap modelMap, HttpServletRequest request, HttpServletResponse response) throws Exception { common(confBean, userBean, archive, modelMap, request, response); Map<String, List<Archive>> usersArchives = new LinkedHashMap<String, List<Archive>>(); serviceUser.loadArchives(userBean, usersArchives); modelMap.addAttribute("usersArchives", usersArchives); MultiQueryPageCommand queryPageCommand = new MultiQueryPageCommand(request.getParameterMap(), modelMap); queryPageCommand.execute(); QueryPageView pageView = new QueryPageView(); WorkFlowBean workFlowBean = (WorkFlowBean) modelMap.get("workFlowBean"); pageView.generateView(workFlowBean, confBean, userBean, modelMap); modelMap.put("positionMap", pageView.getPositionMap()); modelMap.put("positionAdminMap", pageView.getPositionAdminMap()); modelMap.put("outputHourField", pageView.getOutputHourField()); modelMap.put("outputDataField", pageView.getOutputDataField()); modelMap.put("outputSortField", pageView.getOutputSortField()); return "multiArchive/search/query-multiarchive"; }
public void common( ConfBean confBean, UserBean userBean, String archive, String archiveLookup, ModelMap modelMap, HttpServletRequest request, HttpServletResponse response) throws Exception { WorkFlowBean workFlowBean = (WorkFlowBean) modelMap.get("workFlowBean"); workFlowBean.setArchiveLookup(serviceUser.getArchive(userBean, archiveLookup)); common(confBean, userBean, archive, modelMap, request, response); }
public void common( ConfBean confBean, UserBean userBean, String archive, ModelMap modelMap, HttpServletRequest request, HttpServletResponse response) throws Exception { WorkFlowBean workFlowBean = (WorkFlowBean) modelMap.get("workFlowBean"); // SETTO IL WORKFLOW PER LA NAVIGAZIONE DI xDams workFlowBean.setArchive(serviceUser.getArchive(userBean, archive)); workFlowBean.setRequest(request); workFlowBean.setResponse(response); workFlowBean.setApplicationContext(applicationContext); modelMap.put("workFlowBean", workFlowBean); }