/** * 메인 페이지 호출 * * @ahthor KimByungWook * @since 2012. 4. 27. * @param request * @param response * @return */ @SuppressWarnings("unchecked") @RequestMapping(value = "/viewHtmlMain") public ParametersAndView viewMain( HttpServletRequest request, HttpServletResponse response, Parameters inParams) { ParametersAndView pav = new ParametersAndView("common.syscommon.htmlMain"); inParams.setVariable("g_lang", LocaleUtil.getUserLanguage(inParams)); inParams.setVariable("systemCl", "HTML"); Parameters outParams = (Parameters) menuService.getMenuListAppliedForAuthForSystemClTop(inParams); pav.setParameters(outParams); // 언어선택 콤보박스 생성을 위한 설정 - config 파일에서 지원가능 로케일정보 Map을 조회하여 셋팅 Parameters localeMapParams = (Parameters) authorityService.getLocaleList(inParams); pav.addObject( "localeMap", (List<Map<String, String>>) localeMapParams.getVariable("localeMap")); // 언어선택 콤보박스 popluate를 위한 현재 로케일 조회 (세션로케일 우선, 없으면 기본 로케일) pav.addObject("currentLocale", LocaleUtil.getUserLanguage(inParams)); // jQuery-UI 스킨선택 콤보박스 생성용 코드 pav.addObject("skinList", Config.getStringList("skin.list")); pav.addObject("maxOpenPageCount", Config.getString("maxopenpagecount")); pav.addObject("msgMapJSON", messageCache(inParams)); return pav; }
@RequestMapping(value = "/searchMenu") public Parameters searchMenu( HttpServletRequest request, HttpServletResponse response, Parameters inParams) { inParams.setVariable("g_lang", LocaleUtil.getUserLanguage(inParams)); return (Parameters) menuService.getMenuListByKeyword(inParams); }
@RequestMapping(value = "/searchLeft") public Parameters searchLeft( HttpServletRequest request, HttpServletResponse response, Parameters inParams) { inParams.setVariable("g_lang", LocaleUtil.getUserLanguage(inParams)); return (Parameters) menuService.getMenuListAppliedForAuthForSystemCl(inParams); }
@RequestMapping(value = "/searchVisitedMenu") public Parameters searchVisitedMenu( HttpServletRequest request, HttpServletResponse response, Parameters inParams) { inParams.setVariable("g_lang", LocaleUtil.getUserLanguage(inParams)); return (Parameters) comBackOfficeService.getRecentMenuHTML(inParams); }
@RequestMapping(value = "/saveBookmark") public Parameters saveBookmark( HttpServletRequest request, HttpServletResponse response, Parameters inParams) { inParams.setVariable("g_lang", LocaleUtil.getUserLanguage(inParams)); return (Parameters) comBackOfficeService.saveUserMenu(inParams); }