content: package egovframework.com.uat.uia.service.impl;
  
  import java.util.Map;
  
  import org.springframework.stereotype.Repository;
  
  import egovframework.com.cmm.LoginVO;
  import egovframework.com.cmm.service.impl.EgovComAbstractDAO;
  
  /**
   * 일반 로그인, 인증서 로그인을 처리하는 DAO 클래스
   * @author ahnshy
   * @since 2009.03.06
   * @version 1.0
   */
  @Repository("loginDAO")
  public class LoginDAO extends EgovComAbstractDAO {
  
      /**
       * 2011.08.26
  	 * EsntlId를 이용한 로그인을 처리한다
  	 * @param vo LoginVO
  	 * @return LoginVO
  	 * @exception Exception
  	 */
      public LoginVO actionLoginByEsntlId(LoginVO vo) throws Exception {
      	return (LoginVO)selectOne("LoginUsr.ssoLoginByEsntlId", vo);
      }
  
  	/**
  	 * 일반 로그인을 처리한다
  	 * @param vo LoginVO
  	 * @return LoginVO
  	 * @exception Exception
  	 */
      public LoginVO actionLogin(LoginVO vo) throws Exception {
      	return (LoginVO)selectOne("LoginUsr.actionLogin", vo);
      }
  
      /**
  	 * 인증서 로그인을 처리한다
  	 * @param vo LoginVO
  	 * @return LoginVO
  	 * @exception Exception
  	 */
      public LoginVO actionCrtfctLogin(LoginVO vo) throws Exception {
  
      	return (LoginVO)selectOne("LoginUsr.actionCrtfctLogin", vo);
      }
  
      /**
  	 * 아이디를 찾는다.
  	 * @param vo LoginVO
  	 * @return LoginVO
  	 * @exception Exception
  	 */
      public LoginVO searchId(LoginVO vo) throws Exception {
  
      	return (LoginVO)selectOne("LoginUsr.searchId", vo);
      }
  
      /**
  	 * 비밀번호를 찾는다.
  	 * @param vo LoginVO
  	 * @return LoginVO
  	 * @exception Exception
  	 */
      public LoginVO searchPassword(LoginVO vo) throws Exception {
  
      	return (LoginVO)selectOne("LoginUsr.searchPassword", vo);
      }
  
      /**
  	 * 변경된 비밀번호를 저장한다.
  	 * @param vo LoginVO
  	 * @exception Exception
  	 */
      public void updatePassword(LoginVO vo) throws Exception {
      	update("LoginUsr.updatePassword", vo);
      }
      
      
      /**
  	 * 로그인인증제한 내역을 조회한다.
  	 * @param vo LoginVO
  	 * @return LoginVO
  	 * @exception Exception
  	 */
  	public Map<?,?> selectLoginIncorrect(LoginVO vo) throws Exception {
      	return (Map<?,?>)selectOne("LoginUsr.selectLoginIncorrect", vo);
      }
  
      /**
  	 * 로그인인증제한 내역을 업데이트 한다.
  	 * @param vo LoginVO
  	 * @return LoginVO
  	 * @exception Exception
  	 */
      public void updateLoginIncorrect(Map<?,?> map) throws Exception {
      	update("LoginUsr.updateLoginIncorrect"+map.get("USER_SE"), map);
      }
  
  }
  