|
|
@ -53,9 +53,9 @@ public class XitLoginPolicyMngController extends AbstractController {
|
|
|
|
* @author: 박민규
|
|
|
|
* @author: 박민규
|
|
|
|
* @date: 2020. 4. 16.
|
|
|
|
* @date: 2020. 4. 16.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@RequestMapping(name = "", value = "LoginPolicyMng_list", method={RequestMethod.GET, RequestMethod.POST})
|
|
|
|
@RequestMapping(name = "", value = "loginPolicyMng_list", method={RequestMethod.GET, RequestMethod.POST})
|
|
|
|
public String LoginPolicyMng_list(@ModelAttribute("searchVO") XitLoginPolicyMngSearchVO searchVO, ModelMap model) {
|
|
|
|
public String loginPolicyMng_list(@ModelAttribute("searchVO") XitLoginPolicyMngSearchVO searchVO, ModelMap model) {
|
|
|
|
return FrameworkConstants.FRAMEWORK_JSP_BASE_PATH +"mng/auth/XitLoginPolicyMng_list";
|
|
|
|
return FrameworkConstants.FRAMEWORK_JSP_BASE_PATH +"mng/auth/loginPolicyMng_list";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -64,9 +64,9 @@ public class XitLoginPolicyMngController extends AbstractController {
|
|
|
|
* @author: 최유수
|
|
|
|
* @author: 최유수
|
|
|
|
* @date: 2020. 8.04.
|
|
|
|
* @date: 2020. 8.04.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@RequestMapping(name = "", value = "LoginPolicyMng_list.ajax", method={RequestMethod.GET, RequestMethod.POST})
|
|
|
|
@RequestMapping(name = "", value = "loginPolicyMng_list.ajax", method={RequestMethod.GET, RequestMethod.POST})
|
|
|
|
@ResponseBody
|
|
|
|
@ResponseBody
|
|
|
|
public Map<String, Object> LoginPolicyMng_listAjax(@ModelAttribute("searchVO") XitLoginPolicyMngSearchVO searchVO, ModelMap model) {
|
|
|
|
public Map<String, Object> loginPolicyMng_listAjax(@ModelAttribute("searchVO") XitLoginPolicyMngSearchVO searchVO, ModelMap model) {
|
|
|
|
|
|
|
|
|
|
|
|
/** paging */
|
|
|
|
/** paging */
|
|
|
|
PaginationInfo paginationInfo = new PaginationInfo();
|
|
|
|
PaginationInfo paginationInfo = new PaginationInfo();
|
|
|
@ -124,8 +124,8 @@ public class XitLoginPolicyMngController extends AbstractController {
|
|
|
|
* @author: 박민규
|
|
|
|
* @author: 박민규
|
|
|
|
* @date: 2020. 4. 16.
|
|
|
|
* @date: 2020. 4. 16.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@RequestMapping(name = "", value = "LoginPolicyMng_{cmd}", method={RequestMethod.GET, RequestMethod.POST})
|
|
|
|
@RequestMapping(name = "", value = "loginPolicyMng_{cmd}", method={RequestMethod.GET, RequestMethod.POST})
|
|
|
|
public String LoginPolicyMng_page(@PathVariable String cmd
|
|
|
|
public String loginPolicyMng_page(@PathVariable String cmd
|
|
|
|
, @RequestParam(value="tilesDef", required=false, defaultValue="") String tilesDef
|
|
|
|
, @RequestParam(value="tilesDef", required=false, defaultValue="") String tilesDef
|
|
|
|
, @ModelAttribute("vo") XitLoginPolicyMngVO vo
|
|
|
|
, @ModelAttribute("vo") XitLoginPolicyMngVO vo
|
|
|
|
, @ModelAttribute("searchVO") XitLoginPolicyMngSearchVO searchVO
|
|
|
|
, @ModelAttribute("searchVO") XitLoginPolicyMngSearchVO searchVO
|
|
|
@ -133,7 +133,7 @@ public class XitLoginPolicyMngController extends AbstractController {
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
if(!"".equals(tilesDef))
|
|
|
|
if(!"".equals(tilesDef))
|
|
|
|
tilesDef = "."+tilesDef;
|
|
|
|
tilesDef = "."+tilesDef;
|
|
|
|
String returnUrl = FrameworkConstants.FRAMEWORK_JSP_BASE_PATH +"mng/auth/XitLoginPolicyMng_"+cmd+tilesDef;
|
|
|
|
String returnUrl = FrameworkConstants.FRAMEWORK_JSP_BASE_PATH +"mng/auth/loginPolicyMng_"+cmd+tilesDef;
|
|
|
|
|
|
|
|
|
|
|
|
switch (cmd) {
|
|
|
|
switch (cmd) {
|
|
|
|
case "input": //등록 페이지
|
|
|
|
case "input": //등록 페이지
|
|
|
@ -146,7 +146,7 @@ public class XitLoginPolicyMngController extends AbstractController {
|
|
|
|
model.addAttribute("loginPolicy", result);
|
|
|
|
model.addAttribute("loginPolicy", result);
|
|
|
|
model.addAttribute("message", xitMessageSource.getMessage("success.common.select"));
|
|
|
|
model.addAttribute("message", xitMessageSource.getMessage("success.common.select"));
|
|
|
|
if("N".equals(result.getRegYn()))
|
|
|
|
if("N".equals(result.getRegYn()))
|
|
|
|
returnUrl = FrameworkConstants.FRAMEWORK_JSP_BASE_PATH +"mng/auth/XitLoginPolicyMng_input"+tilesDef;
|
|
|
|
returnUrl = FrameworkConstants.FRAMEWORK_JSP_BASE_PATH +"mng/auth/loginPolicyMng_input"+tilesDef;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
throw new RuntimeException("유효하지 않은 요청 입니다.");
|
|
|
|
throw new RuntimeException("유효하지 않은 요청 입니다.");
|
|
|
@ -168,7 +168,7 @@ public class XitLoginPolicyMngController extends AbstractController {
|
|
|
|
* @date: 2020. 4. 16.
|
|
|
|
* @date: 2020. 4. 16.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@RequestMapping(name = "", value = "LoginPolicyMng_{cmd}_popup", method={RequestMethod.GET, RequestMethod.POST})
|
|
|
|
@RequestMapping(name = "", value = "LoginPolicyMng_{cmd}_popup", method={RequestMethod.GET, RequestMethod.POST})
|
|
|
|
public String LoginPolicyMng_page_popup(@PathVariable String cmd
|
|
|
|
public String loginPolicyMng_page_popup(@PathVariable String cmd
|
|
|
|
, @ModelAttribute XitLoginPolicyMngSearchVO searchVO
|
|
|
|
, @ModelAttribute XitLoginPolicyMngSearchVO searchVO
|
|
|
|
, @ModelAttribute XitLoginPolicyMngVO vo, ModelMap model) {
|
|
|
|
, @ModelAttribute XitLoginPolicyMngVO vo, ModelMap model) {
|
|
|
|
switch (cmd) {
|
|
|
|
switch (cmd) {
|
|
|
@ -179,7 +179,7 @@ public class XitLoginPolicyMngController extends AbstractController {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return FrameworkConstants.FRAMEWORK_JSP_BASE_PATH +"mng/auth/XitLoginPolicyMng_"+cmd+"_popup"+ FrameworkConstants.TILES_TYPE.POPUP.getVal();
|
|
|
|
return FrameworkConstants.FRAMEWORK_JSP_BASE_PATH +"mng/auth/loginPolicyMng_"+cmd+"_popup"+ FrameworkConstants.TILES_TYPE.POPUP.getVal();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -192,8 +192,8 @@ public class XitLoginPolicyMngController extends AbstractController {
|
|
|
|
* @throws ServletException
|
|
|
|
* @throws ServletException
|
|
|
|
* @date: 2020. 4. 16.
|
|
|
|
* @date: 2020. 4. 16.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@RequestMapping(name = "", value = "LoginPolicyMng_{cmd}_proc", method=RequestMethod.POST)
|
|
|
|
@RequestMapping(name = "", value = "loginPolicyMng_{cmd}_proc", method=RequestMethod.POST)
|
|
|
|
public void LoginPolicyMng_cmd_proc(@PathVariable String cmd
|
|
|
|
public void loginPolicyMng_cmd_proc(@PathVariable String cmd
|
|
|
|
,@ModelAttribute("vo") XitLoginPolicyMngVO vo
|
|
|
|
,@ModelAttribute("vo") XitLoginPolicyMngVO vo
|
|
|
|
,@ModelAttribute("searchVO") XitLoginPolicyMngSearchVO searchVO
|
|
|
|
,@ModelAttribute("searchVO") XitLoginPolicyMngSearchVO searchVO
|
|
|
|
,@RequestParam(value="emplyrIds", required=false, defaultValue="") String emplyrIds
|
|
|
|
,@RequestParam(value="emplyrIds", required=false, defaultValue="") String emplyrIds
|
|
|
@ -208,7 +208,7 @@ public class XitLoginPolicyMngController extends AbstractController {
|
|
|
|
* 처리 분기
|
|
|
|
* 처리 분기
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
XitLoginVO loginVO = (XitLoginVO) EgovUserDetailsHelper.getAuthenticatedUser();
|
|
|
|
XitLoginVO loginVO = (XitLoginVO) EgovUserDetailsHelper.getAuthenticatedUser();
|
|
|
|
String sLocationUrl = "forward:/framework/biz/mng/auth/LoginPolicyMng_list.do";
|
|
|
|
String sLocationUrl = "forward:/framework/biz/mng/auth/loginPolicyMng_list.do";
|
|
|
|
String message = null;
|
|
|
|
String message = null;
|
|
|
|
switch (cmd) {
|
|
|
|
switch (cmd) {
|
|
|
|
case "insert": //등록
|
|
|
|
case "insert": //등록
|
|
|
@ -218,7 +218,7 @@ public class XitLoginPolicyMngController extends AbstractController {
|
|
|
|
// beanValidator.validate("loginPolicy", vo, bindingResult);
|
|
|
|
// beanValidator.validate("loginPolicy", vo, bindingResult);
|
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
|
message = xitMessageSource.getMessage("fail.common.insert");
|
|
|
|
message = xitMessageSource.getMessage("fail.common.insert");
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/auth/LoginPolicyMng_input.do";
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/auth/loginPolicyMng_input.do";
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//처리
|
|
|
|
//처리
|
|
|
@ -227,13 +227,13 @@ public class XitLoginPolicyMngController extends AbstractController {
|
|
|
|
xitLoginPolicyMngService.addProc(vo);
|
|
|
|
xitLoginPolicyMngService.addProc(vo);
|
|
|
|
status.setComplete();
|
|
|
|
status.setComplete();
|
|
|
|
message = xitMessageSource.getMessage("success.common.insert");
|
|
|
|
message = xitMessageSource.getMessage("success.common.insert");
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/auth/LoginPolicyMng_edit.do";
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/auth/loginPolicyMng_edit.do";
|
|
|
|
} catch (RuntimeException e) {
|
|
|
|
} catch (RuntimeException e) {
|
|
|
|
message = e.getMessage();
|
|
|
|
message = e.getMessage();
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/auth/LoginPolicyMng_input.do";
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/auth/loginPolicyMng_input.do";
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
message = xitMessageSource.getMessage("fail.common.insert");
|
|
|
|
message = xitMessageSource.getMessage("fail.common.insert");
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/auth/LoginPolicyMng_input.do";
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/auth/loginPolicyMng_input.do";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
@ -247,7 +247,7 @@ public class XitLoginPolicyMngController extends AbstractController {
|
|
|
|
// beanValidator.validate("loginPolicy", vo, bindingResult);
|
|
|
|
// beanValidator.validate("loginPolicy", vo, bindingResult);
|
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
|
message = xitMessageSource.getMessage("fail.common.update");
|
|
|
|
message = xitMessageSource.getMessage("fail.common.update");
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/auth/LoginPolicyMng_edit";
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/auth/loginPolicyMng_edit";
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//처리
|
|
|
|
//처리
|
|
|
@ -256,13 +256,13 @@ public class XitLoginPolicyMngController extends AbstractController {
|
|
|
|
xitLoginPolicyMngService.modifyProc(vo);
|
|
|
|
xitLoginPolicyMngService.modifyProc(vo);
|
|
|
|
status.setComplete();
|
|
|
|
status.setComplete();
|
|
|
|
message = xitMessageSource.getMessage("success.common.update");
|
|
|
|
message = xitMessageSource.getMessage("success.common.update");
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/auth/LoginPolicyMng_edit";
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/auth/loginPolicyMng_edit";
|
|
|
|
} catch (RuntimeException e) {
|
|
|
|
} catch (RuntimeException e) {
|
|
|
|
message = e.getMessage();
|
|
|
|
message = e.getMessage();
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/auth/LoginPolicyMng_edit";
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/auth/loginPolicyMng_edit";
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
message = xitMessageSource.getMessage("fail.common.update");
|
|
|
|
message = xitMessageSource.getMessage("fail.common.update");
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/auth/LoginPolicyMng_edit";
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/auth/loginPolicyMng_edit";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
@ -276,10 +276,10 @@ public class XitLoginPolicyMngController extends AbstractController {
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
} catch (RuntimeException e) {
|
|
|
|
} catch (RuntimeException e) {
|
|
|
|
message = e.getMessage();
|
|
|
|
message = e.getMessage();
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/auth/LoginPolicyMng_edit";
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/auth/loginPolicyMng_edit";
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
message = xitMessageSource.getMessage("fail.common.delete");
|
|
|
|
message = xitMessageSource.getMessage("fail.common.delete");
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/auth/LoginPolicyMng_edit";
|
|
|
|
sLocationUrl = "forward:/framework/biz/mng/auth/loginPolicyMng_edit";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|