Package org.apache.fulcrum.security
Class BaseSecurityService
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.fulcrum.security.BaseSecurityService
- All Implemented Interfaces:
org.apache.avalon.framework.activity.Initializable
,org.apache.avalon.framework.logger.LogEnabled
,org.apache.avalon.framework.service.Serviceable
,org.apache.avalon.framework.thread.ThreadSafe
,SecurityService
public class BaseSecurityService extends org.apache.avalon.framework.logger.AbstractLogEnabled implements SecurityService, org.apache.avalon.framework.activity.Initializable, org.apache.avalon.framework.service.Serviceable, org.apache.avalon.framework.thread.ThreadSafe
This a basis implementation of the Fulcrum security service.
Provided functionality includes:
- methods for retrieving different types of managers.
- avalon lifecyle managers.
- Version:
- $Id: BaseSecurityService.java 1374616 2012-08-18 17:26:07Z tv $
- Author:
- Eric PUgh
-
Field Summary
Fields Modifier and Type Field Description protected GroupManager
groupManager
The instance of GroupManager the SecurityService usesprotected ModelManager
modelManager
The instance of ModelManager the SecurityService usesprotected PermissionManager
permissionManager
The instance of PermissionManager the SecurityService usesprotected RoleManager
roleManager
The instance of RoleManager the SecurityService usesprotected UserManager
userManager
The instance of UserManager the SecurityService uses -
Constructor Summary
Constructors Constructor Description BaseSecurityService()
-
Method Summary
Modifier and Type Method Description void
dispose()
Avalon Service lifecycle methodGroupManager
getGroupManager()
Returns the configured GroupManager.ModelManager
getModelManager()
Returns the configured ModelManager.PermissionManager
getPermissionManager()
Returns the configured PermissionManager.RoleManager
getRoleManager()
Returns the configured RoleManager.UserManager
getUserManager()
Returns the configured UserManager.void
initialize()
Avalon Service lifecycle method Initializes the SecurityService, locating the appropriate UserManagervoid
service(org.apache.avalon.framework.service.ServiceManager manager)
Avalon Service lifecycle method
-
Field Details
-
userManager
The instance of UserManager the SecurityService uses -
roleManager
The instance of RoleManager the SecurityService uses -
groupManager
The instance of GroupManager the SecurityService uses -
permissionManager
The instance of PermissionManager the SecurityService uses -
modelManager
The instance of ModelManager the SecurityService uses
-
-
Constructor Details
-
BaseSecurityService
public BaseSecurityService()
-
-
Method Details
-
getUserManager
Returns the configured UserManager.- Specified by:
getUserManager
in interfaceSecurityService
- Returns:
- An UserManager object
-
getGroupManager
Returns the configured GroupManager.- Specified by:
getGroupManager
in interfaceSecurityService
- Returns:
- An UserManager object
-
getRoleManager
Returns the configured RoleManager.- Specified by:
getRoleManager
in interfaceSecurityService
- Returns:
- An RoleManager object
-
getPermissionManager
Returns the configured PermissionManager.- Specified by:
getPermissionManager
in interfaceSecurityService
- Returns:
- An PermissionManager object
-
getModelManager
Returns the configured ModelManager.- Specified by:
getModelManager
in interfaceSecurityService
- Returns:
- An ModelManager object
-
service
public void service(org.apache.avalon.framework.service.ServiceManager manager) throws org.apache.avalon.framework.service.ServiceExceptionAvalon Service lifecycle method- Specified by:
service
in interfaceorg.apache.avalon.framework.service.Serviceable
- Throws:
org.apache.avalon.framework.service.ServiceException
-
initialize
Avalon Service lifecycle method Initializes the SecurityService, locating the appropriate UserManager- Specified by:
initialize
in interfaceorg.apache.avalon.framework.activity.Initializable
- Throws:
Exception
- A Problem occurred while initializing the User Manager.
-
dispose
public void dispose()Avalon Service lifecycle method
-