Package com.easydesk.security.adaptor
Class RoleManagerAdaptor
java.lang.Object
com.easydesk.security.adaptor.RoleManagerAdaptor
- All Implemented Interfaces:
RoleManager,SecurityEntityManager<Role,,Integer> Serializable
Torque OM(
EasyDeskRoleImpl) 을 이용하여 Role 을 관리하는 RoleManager 구현.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRole 을 저장소에 저장한다.booleanid 로 Role 이 저장소에 존재하는지 확인한다.boolean이름에 해당하는 Role 이 저장소에 존재하는지 확인한다.Role[]이름에 해당하는 Role 을 구한다.새 Role instance 를 생성한다.getInstance(Integer id) id 에 해당하는 Role 을 구한다.voidRole 을 저장소에서 삭제한다.voidRole 의 이름을 변경하고 저장한다.
-
Constructor Details
-
RoleManagerAdaptor
public RoleManagerAdaptor()
-
-
Method Details
-
getInstance
새 Role instance 를 생성한다. 저장소에 저장하지는 않는다.- Specified by:
getInstancein interfaceSecurityEntityManager<Role,Integer> - Returns:
- 새 EasyDeskRoleImpl
-
getInstance
id 에 해당하는 Role 을 구한다.- Specified by:
getInstancein interfaceSecurityEntityManager<Role,Integer> - Parameters:
id- role id- Returns:
- id 에 해당하는 Role
- Throws:
DataBackendException- 저장소 접근 중 오류가 발생한 경우UnknownEntityException- id 에 해당하는 role 이 없거나 조회 중 오류가 발생한 경우
-
getByName
이름에 해당하는 Role 을 구한다.- Specified by:
getByNamein interfaceSecurityEntityManager<Role,Integer> - Parameters:
name- role 이름- Returns:
- 이름에 해당하는 Role
- Throws:
DataBackendException- 저장소 접근 중 오류가 발생한 경우UnknownEntityException- 이름에 해당하는 role 이 없거나 조회 중 오류가 발생한 경우
-
rename
Role 의 이름을 변경하고 저장한다.- Specified by:
renamein interfaceSecurityEntityManager<Role,Integer> - Parameters:
entity- 이름을 변경할 rolename- 새 이름- Throws:
DataBackendException- 저장 중 오류가 발생한 경우UnknownEntityException- role 이 존재하지 않는 경우
-
remove
Role 을 저장소에서 삭제한다.- Specified by:
removein interfaceSecurityEntityManager<Role,Integer> - Parameters:
entity- 삭제할 role- Throws:
DataBackendException- 삭제 중 오류가 발생한 경우UnknownEntityException- role 이 존재하지 않는 경우
-
add
Role 을 저장소에 저장한다. 이미 존재하는지 확인하지는 않는다.- Specified by:
addin interfaceSecurityEntityManager<Role,Integer> - Parameters:
entity- 저장할 role- Returns:
- 저장된 role
- Throws:
DataBackendException- 저장 중 오류가 발생한 경우EntityExistsException- 같은 role 이 이미 존재하는 경우
-
exists
id 로 Role 이 저장소에 존재하는지 확인한다.- Specified by:
existsin interfaceSecurityEntityManager<Role,Integer> - Parameters:
entity- 확인할 role- Returns:
- 존재하면
true, 조회 중 오류가 발생하면false - Throws:
DataBackendException- 저장소 접근 중 오류가 발생한 경우
-
exists
이름에 해당하는 Role 이 저장소에 존재하는지 확인한다.- Specified by:
existsin interfaceSecurityEntityManager<Role,Integer> - Parameters:
name- 확인할 이름- Returns:
- 존재하면
true - Throws:
DataBackendException- 저장소 접근 중 오류가 발생한 경우
-