org.codelabor.example.user.managers
Interface RoleManager

All Known Implementing Classes:
RoleManagerImpl

public interface RoleManager

역할 매니저 인터페이스

Author:
Shin Sangjae

Method Summary
 int deleteRole()
          역할 정보를 삭제한다.
 int deleteRole(String roleId)
          역할 정보를 삭제한다.
 int insertRole(RoleDTO roleDTO)
          역할 DTO를 입력한다.
 List<RoleDTO> selectRole()
          역할 정보를 가져온다.
 RoleDTO selectRoleByRoleId(String roleId)
          역할 정보를 가져온다.
 List<RoleDTO> selectRoleByUserId(String userId)
          역할 정보를 가져온다.
 int updateRole(RoleDTO roleDTO)
          역할 DTO를 수정한다.
 

Method Detail

insertRole

int insertRole(RoleDTO roleDTO)
               throws Exception
역할 DTO를 입력한다.

Parameters:
roleDTO - 역할 DTO
Returns:
입력 건수
Throws:
Exception - 예외

updateRole

int updateRole(RoleDTO roleDTO)
               throws Exception
역할 DTO를 수정한다.

Parameters:
roleDTO - 역할 DTO
Returns:
수정 건수
Throws:
Exception - 예외

deleteRole

int deleteRole(String roleId)
               throws Exception
역할 정보를 삭제한다.

Parameters:
roleDTO - 역할 Id
Returns:
삭제 건수
Throws:
Exception - 예외

deleteRole

int deleteRole()
               throws Exception
역할 정보를 삭제한다.

Returns:
삭제 건수
Throws:
Exception - 예외

selectRoleByRoleId

RoleDTO selectRoleByRoleId(String roleId)
                           throws Exception
역할 정보를 가져온다.

Parameters:
roleId - 역할 Id
Returns:
역할 DTO
Throws:
Exception - 예외

selectRole

List<RoleDTO> selectRole()
                         throws Exception
역할 정보를 가져온다.

Returns:
역할 DTO List
Throws:
Exception - 예외

selectRoleByUserId

List<RoleDTO> selectRoleByUserId(String userId)
                                 throws Exception
역할 정보를 가져온다.

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


Copyright © 2010 CODELABOR. All Rights Reserved.