Class ModuleGroupManagerAdaptor<G extends Group>
java.lang.Object
com.easydesk.modules.security.adaptor.ModuleGroupManagerAdaptor<G>
- All Implemented Interfaces:
GroupManager,SecurityEntityManager<Group,,Long> Serializable
@Component
public class ModuleGroupManagerAdaptor<G extends Group>
extends Object
implements GroupManager
UserManagerAdaptor MVC module 안에서만 사용된다.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondatabase 에 존재하지 않는 group 인 경우에만 add 가능하다.booleanentity 가 저장소에 존재하는지 확인한다.boolean이름에 해당하는 entity 가 저장소에 존재하는지 확인한다.Group[]이름에 해당하는 entity 를 구한다.새 entity instance 를 생성한다.getInstance(Long id) id 에 해당하는 entity 를 구한다.voidentity 를 삭제한다.voidentity 의 이름을 변경한다.
-
Constructor Details
-
ModuleGroupManagerAdaptor
public ModuleGroupManagerAdaptor()
-
-
Method Details
-
getInstance
Description copied from interface:SecurityEntityManager새 entity instance 를 생성한다. 저장소에 저장하지는 않는다.- Specified by:
getInstancein interfaceSecurityEntityManager<Group,Long> - Returns:
- G empty object
-
getInstance
Description copied from interface:SecurityEntityManagerid 에 해당하는 entity 를 구한다.- Specified by:
getInstancein interfaceSecurityEntityManager<Group,Long> - Parameters:
id- entity id- Returns:
- T which has id
- Throws:
ExceptionDataBackendException- 저장소 접근 중 오류가 발생한 경우UnknownEntityException- id 에 해당하는 entity 가 없는 경우
-
getByName
Description copied from interface:SecurityEntityManager이름에 해당하는 entity 를 구한다.- Specified by:
getByNamein interfaceSecurityEntityManager<Group,Long> - Parameters:
name-- Returns:
- T who's login username is name
- Throws:
DataBackendExceptionUnknownEntityException
-
rename
Description copied from interface:SecurityEntityManagerentity 의 이름을 변경한다.- Specified by:
renamein interfaceSecurityEntityManager<Group,Long> - Parameters:
entity-name-- Throws:
DataBackendExceptionUnknownEntityException
-
remove
Description copied from interface:SecurityEntityManagerentity 를 삭제한다.- Specified by:
removein interfaceSecurityEntityManager<Group,Long> - Parameters:
entity-- Throws:
DataBackendExceptionUnknownEntityException
-
add
database 에 존재하지 않는 group 인 경우에만 add 가능하다. (group.id 가 EMPTY_ID 인 경우)- Specified by:
addin interfaceSecurityEntityManager<Group,Long> - Parameters:
entity- RequestModule 객체를 전달받아 Module 객체를 생성하고, 해당 Module 객체를 저장한 후, 저장된 Module 객체의 Group 정보를 반환한다.- Returns:
- Throws:
DataBackendExceptionEntityExistsException
-
exists
Description copied from interface:SecurityEntityManagerentity 가 저장소에 존재하는지 확인한다.- Specified by:
existsin interfaceSecurityEntityManager<Group,Long> - Parameters:
entity-- Returns:
- Throws:
DataBackendException
-
exists
Description copied from interface:SecurityEntityManager이름에 해당하는 entity 가 저장소에 존재하는지 확인한다.- Specified by:
existsin interfaceSecurityEntityManager<Group,Long> - Parameters:
name-- Returns:
- Throws:
DataBackendException
-