org.codelabor.example.user.managers
Class RoleManagerImpl

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

public class RoleManagerImpl
extends org.codelabor.system.managers.BaseManagerImpl
implements RoleManager

역할 매너저 구현 클래스

Author:
Shin Sangjae

Field Summary
 
Fields inherited from class org.codelabor.system.managers.BaseManagerImpl
logger, loggerName, messageSource, propertiesService
 
Constructor Summary
RoleManagerImpl()
           
 
Method Summary
 int deleteRole()
          역할 정보를 삭제한다.
 int deleteRole(String roleId)
          역할 정보를 삭제한다.
 RoleDAO getRoleDAO()
          역할 DAO를 가져온다.
 int insertRole(RoleDTO roleDTO)
          역할 DTO를 입력한다.
 List<RoleDTO> selectRole()
          역할 정보를 가져온다.
 RoleDTO selectRoleByRoleId(String roleId)
          역할 정보를 가져온다.
 List<RoleDTO> selectRoleByUserId(String userId)
          역할 정보를 가져온다.
 void setRoleDAO(RoleDAO roleDAO)
          역할 DAO를 설정한다.
 int updateRole(RoleDTO roleDTO)
          역할 DTO를 수정한다.
 
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

RoleManagerImpl

public RoleManagerImpl()
Method Detail

getRoleDAO

public RoleDAO getRoleDAO()
역할 DAO를 가져온다.

Returns:
역할 DAO

setRoleDAO

public void setRoleDAO(RoleDAO roleDAO)
역할 DAO를 설정한다.

Parameters:
역할 - DAO

deleteRole

public int deleteRole(String roleId)
               throws Exception
Description copied from interface: RoleManager
역할 정보를 삭제한다.

Specified by:
deleteRole in interface RoleManager
Returns:
삭제 건수
Throws:
Exception - 예외

deleteRole

public int deleteRole()
               throws Exception
Description copied from interface: RoleManager
역할 정보를 삭제한다.

Specified by:
deleteRole in interface RoleManager
Returns:
삭제 건수
Throws:
Exception - 예외

insertRole

public int insertRole(RoleDTO roleDTO)
               throws Exception
Description copied from interface: RoleManager
역할 DTO를 입력한다.

Specified by:
insertRole in interface RoleManager
Parameters:
roleDTO - 역할 DTO
Returns:
입력 건수
Throws:
Exception - 예외

selectRole

public List<RoleDTO> selectRole()
                         throws Exception
Description copied from interface: RoleManager
역할 정보를 가져온다.

Specified by:
selectRole in interface RoleManager
Returns:
역할 DTO List
Throws:
Exception - 예외

selectRoleByRoleId

public RoleDTO selectRoleByRoleId(String roleId)
                           throws Exception
Description copied from interface: RoleManager
역할 정보를 가져온다.

Specified by:
selectRoleByRoleId in interface RoleManager
Parameters:
roleId - 역할 Id
Returns:
역할 DTO
Throws:
Exception - 예외

updateRole

public int updateRole(RoleDTO roleDTO)
               throws Exception
Description copied from interface: RoleManager
역할 DTO를 수정한다.

Specified by:
updateRole in interface RoleManager
Parameters:
roleDTO - 역할 DTO
Returns:
수정 건수
Throws:
Exception - 예외

selectRoleByUserId

public List<RoleDTO> selectRoleByUserId(String userId)
                                 throws Exception
Description copied from interface: RoleManager
역할 정보를 가져온다.

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


Copyright © 2010 CODELABOR. All Rights Reserved.