org.codelabor.example.user.daos
Interface UserRoleMapDAO

All Known Implementing Classes:
UserRoleMapDAOImpl

public interface UserRoleMapDAO

사용자 역할 매핑 DAO 인터페이스

Author:
Shin Sangjae

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)
          사용자 정보와 역할 정보의 매핑을 해제한다.
 

Method Detail

map

int map(String userId,
        String roleId)
        throws Exception
사용자 정보와 역할 정보를 매핑한다.

Parameters:
userId - 사용자 Id
roleId - 역할 Id
Returns:
매핑 건수
Throws:
Exception - 예외

unmap

int unmap(String userId,
          String roleId)
          throws Exception
사용자 정보와 역할 정보의 매핑을 해제한다.

Parameters:
userId - 사용자 Id
roleId - 역할 Id
Returns:
해제 매핑 건수
Throws:
Exception - 예외

reset

int reset()
          throws Exception
매핑 정보를 초기화한다.

Returns:
초기화 건수
Throws:
Exception - 예외

reset

int reset(String userId)
          throws Exception
매핑 정보를 초기화한다.

Parameters:
userId - 사용자 Id
Returns:
초기화 건수
Throws:
Exception - 예외

selectRoleIdList

List<String> selectRoleIdList(String userId)
                              throws Exception
역할 Id List를 가져온다.

Parameters:
userId - 사용자 Id
Returns:
역할 Id List
Throws:
Exception - 예외

selectUserIdList

List<String> selectUserIdList(String roleId)
                              throws Exception
사용자 Id List를 가져온다.

Parameters:
roleId - 역할 Id
Returns:
사용자 Id List
Throws:
Exception - 예외


Copyright © 2010 CODELABOR. All Rights Reserved.