/**
   * 게시판 사용을 위한 게시판 속성정보를 수정한다.
   *
   * @param boardMasterVO
   * @param boardMaster
   * @param model
   * @return
   * @throws Exception
   */
  @RequestMapping("/cop/bbs/UpdateBBSMasterInfByTrget.do")
  public String updateBBSMasterInfByTrget(
      @ModelAttribute("searchVO") BoardMasterVO boardMasterVO,
      @ModelAttribute("boardMaster") BoardMaster boardMaster,
      BindingResult bindingResult,
      ModelMap model)
      throws Exception {

    checkAuthority(boardMasterVO); // server-side 권한 확인

    LoginVO user = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser();
    Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated();

    beanValidator.validate(boardMaster, bindingResult);
    if (bindingResult.hasErrors()) {
      BoardMasterVO vo = new BoardMasterVO();

      vo = bbsAttrbService.selectBBSMasterInf(boardMasterVO);

      model.addAttribute("result", vo);

      return "cop/bbs/EgovBoardMstrUpdt";
    }

    boardMaster.setLastUpdusrId(user.getUniqId());
    boardMaster.setUseAt("Y");

    if (isAuthenticated) {
      bbsAttrbService.updateBBSMasterInf(boardMaster);
    }

    return "forward:/cop/bbs/selectBdMstrListByTrget.do";
  }
  /**
   * 게시판 마스터 정보를 수정한다.
   *
   * @param boardMasterVO
   * @param boardMaster
   * @param model
   * @return
   * @throws Exception
   */
  @RequestMapping("/cop/bbs/UpdateBBSMasterInf.do")
  public String updateBBSMasterInf(
      @ModelAttribute("searchVO") BoardMasterVO boardMasterVO,
      @ModelAttribute("boardMaster") BoardMaster boardMaster,
      BindingResult bindingResult,
      ModelMap model)
      throws Exception {

    LoginVO user = (LoginVO) EgovUserDetailsHelper.getAuthenticatedUser();
    Boolean isAuthenticated = EgovUserDetailsHelper.isAuthenticated();

    beanValidator.validate(boardMaster, bindingResult);
    if (bindingResult.hasErrors()) {
      BoardMasterVO vo = bbsAttrbService.selectBBSMasterInf(boardMasterVO);

      model.addAttribute("result", vo);

      return "cop/bbs/EgovBoardMstrUpdt";
    }

    if (isAuthenticated) {
      boardMaster.setLastUpdusrId(user.getUniqId());
      boardMaster.setPosblAtchFileSize(propertyService.getString("posblAtchFileSize"));
      bbsAttrbService.updateBBSMasterInf(boardMaster);
    }

    return "forward:/cop/bbs/SelectBBSMasterInfs.do";
  }