Package com.easydesk.security
Interface SecurityService
- All Known Implementing Classes:
DefaultSecurityService,ModuleSecurityService
public interface SecurityService
The Security Service manages Users, Groups Roles and Permissions in the
system.
The task performed by the security service include providing access to the various types of managers.
Because of pluggable nature of the Services, it is possible to create multiple implementations of SecurityService, for example employing database and directory server as the data backend.
- Version:
- $Id$
- Author:
- Eric Pugh
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionReturns the configured GroupManager.<T extends SecurityEntityModelManager>
TReturns the configured ModelManager object that can then be casted to the specific model.Returns the configured PermissionManager.Returns the configured RoleManager.Returns the configured UserManager.
-
Field Details
-
MODULE_SECURITY_SERVICE
easydesk-module-security 의com.easydesk.security.module.ModuleSecurityService빈 이름.등록(
@Service) 과 주입(@Qualifier) 양쪽에서 이 상수를 사용해서, 이름 불일치를 런타임 NoSuchBeanDefinitionException 이 아니라 컴파일 에러로 잡는다. (workflow 의 Executer 들은 파이프라인 실행 시점에 autowire 되므로 불일치가 기동 시에 드러나지 않는다.)- See Also:
-
DEFAULT_SECURITY_SERVICE
easydesk-security-torque 의com.easydesk.security.DefaultSecurityService빈 이름.- See Also:
-
-
Method Details
-
getUserManager
UserManager getUserManager()Returns the configured UserManager.- Returns:
- An UserManager object
-
getGroupManager
GroupManager getGroupManager()Returns the configured GroupManager.- Returns:
- An GroupManager object
-
getRoleManager
RoleManager getRoleManager()Returns the configured RoleManager.- Returns:
- An RoleManager object
-
getPermissionManager
PermissionManager getPermissionManager()Returns the configured PermissionManager.- Returns:
- An PermissionManager object
-
getModelManager
Returns the configured ModelManager object that can then be casted to the specific model.- Type Parameters:
T- 사용하는 SecurityEntityModelManager 의 type- Returns:
- An ModelManager object
-