org.codelabor.example.user.daos
Class UserRoleMapDAOImpl

java.lang.Object
  extended by org.codelabor.system.daos.BaseDAOImpl
      extended by org.codelabor.example.user.daos.UserRoleMapDAOImpl
All Implemented Interfaces:
UserRoleMapDAO

public class UserRoleMapDAOImpl
extends org.codelabor.system.daos.BaseDAOImpl
implements UserRoleMapDAO

사용자 역할 매핑 DAO 구현 클래스

Author:
Shin Sangjae

Field Summary
 
Fields inherited from class org.codelabor.system.daos.BaseDAOImpl
idGenerationService, logger, loggerName, messageSource, propertiesService, queryService
 
Constructor Summary
UserRoleMapDAOImpl()
           
 
Method Summary
 int map(String userId, String roleId)
          사용자 정보와 역할 정보를 매핑한다.
 int reset()
          매핑 정보를 초기화한다.
 int reset(String userId)
          매핑 정보를 초기화한다.
 List<String> selectRoleIdList(String userId)
          역할 Id List를 가져온다.
 List<String> selectUserIdList(String roleId)
          사용자 Id List를 가져온다.
 int unmap(String userId, String roleId)
          사용자 정보와 역할 정보의 매핑을 해제한다.
 
Methods inherited from class org.codelabor.system.daos.BaseDAOImpl
getIdGenerationService, getLoggerName, getMessageSource, getPropertiesService, getQueryService, setIdGenerationService, setLoggerName, setMessageSource, setPropertiesService, setQueryService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserRoleMapDAOImpl

public UserRoleMapDAOImpl()
Method Detail

map

public int map(String userId,
               String roleId)
        throws Exception
Description copied from interface: UserRoleMapDAO
사용자 정보와 역할 정보를 매핑한다.

Specified by:
map in interface UserRoleMapDAO
Parameters:
userId - 사용자 Id
roleId - 역할 Id
Returns:
매핑 건수
Throws:
Exception - 예외

selectRoleIdList

public List<String> selectRoleIdList(String userId)
                              throws Exception
Description copied from interface: UserRoleMapDAO
역할 Id List를 가져온다.

Specified by:
selectRoleIdList in interface UserRoleMapDAO
Parameters:
userId - 사용자 Id
Returns:
역할 Id List
Throws:
Exception - 예외

selectUserIdList

public List<String> selectUserIdList(String roleId)
                              throws Exception
Description copied from interface: UserRoleMapDAO
사용자 Id List를 가져온다.

Specified by:
selectUserIdList in interface UserRoleMapDAO
Parameters:
roleId - 역할 Id
Returns:
사용자 Id List
Throws:
Exception - 예외

unmap

public int unmap(String userId,
                 String roleId)
          throws Exception
Description copied from interface: UserRoleMapDAO
사용자 정보와 역할 정보의 매핑을 해제한다.

Specified by:
unmap in interface UserRoleMapDAO
Parameters:
userId - 사용자 Id
roleId - 역할 Id
Returns:
해제 매핑 건수
Throws:
Exception - 예외

reset

public int reset()
          throws Exception
Description copied from interface: UserRoleMapDAO
매핑 정보를 초기화한다.

Specified by:
reset in interface UserRoleMapDAO
Returns:
초기화 건수
Throws:
Exception - 예외

reset

public int reset(String userId)
          throws Exception
Description copied from interface: UserRoleMapDAO
매핑 정보를 초기화한다.

Specified by:
reset in interface UserRoleMapDAO
Parameters:
userId - 사용자 Id
Returns:
초기화 건수
Throws:
Exception - 예외


Copyright © 2010 CODELABOR. All Rights Reserved.