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