Пример #1
0
  /**
   * 가입 정보중 sms 알리미 수신 부분에 대한 정보를 수정한다. userId int 사용자의 ID notify String 알림 사용 여부( Y : 사용, N : 미사용)
   *
   * @param userParam
   * @return
   */
  public String updateSmsNotify() {
    m_userVo = m_sessionManager.getUser(getRequest());
    UserParam userParam = new UserParam();
    userParam.setUserId(m_userVo.getUserId());

    // m_notify 파라미터 값
    String m_notify = getParameter("notify");
    userParam.setNotify(m_notify);
    try {
      m_ngcIFController.updateSmsNotify(userParam);

      // 사용자 세션에 알림이 가입 여부 (Y/N) 세팅
      m_userVo.setNotify(m_notify);
    } catch (UserServiceException e) {
      e.printStackTrace();
      m_traceLogger.error(e.getMessage());
      return ERROR;
    }
    return SUCCESS;
  }