org.codelabor.example.user.managers
Class UserRoleMapManagerImpl

java.lang.Object
  extended by org.codelabor.system.managers.BaseManagerImpl
      extended by org.codelabor.example.user.managers.UserRoleMapManagerImpl
All Implemented Interfaces:
UserRoleMapManager

public class UserRoleMapManagerImpl
extends org.codelabor.system.managers.BaseManagerImpl
implements UserRoleMapManager

사용자 역할 정보 매핑 매니저 구현 클래스

Author:
Shin Sangjae

Field Summary
 
Fields inherited from class org.codelabor.system.managers.BaseManagerImpl
logger, loggerName, messageSource, propertiesService
 
Constructor Summary
UserRoleMapManagerImpl()
           
 
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를 가져온다.
 void setUserRoleMapDAO(UserRoleMapDAO userRoleMapDAO)
          사용자 역할 매핑 DAO를 설정한다.
 int unmap(String userId, String roleId)
          사용자 정보와 역할 정보의 매핑을 해제한다.
 
Methods inherited from class org.codelabor.system.managers.BaseManagerImpl
getLoggerName, getMessageSource, getPropertiesService, setLoggerName, setMessageSource, setPropertiesService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserRoleMapManagerImpl

public UserRoleMapManagerImpl()
Method Detail

setUserRoleMapDAO

public void setUserRoleMapDAO(UserRoleMapDAO userRoleMapDAO)
사용자 역할 매핑 DAO를 설정한다.

Parameters:
userRoleMapDAO - 사용자 역할 매핑 DAO

map

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

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

reset

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

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

selectRoleIdList

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

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

selectUserIdList

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

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

unmap

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

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

reset

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

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


Copyright © 2010 CODELABOR. All Rights Reserved.