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$
- Author:
- Eric PUgh
-
-
Field Summary
Fields Modifier and Type Field Description protected GroupManagergroupManagerThe instance of GroupManager the SecurityService usesprotected ModelManagermodelManagerThe instance of ModelManager the SecurityService usesprotected PermissionManagerpermissionManagerThe instance of PermissionManager the SecurityService usesprotected RoleManagerroleManagerThe instance of RoleManager the SecurityService usesprotected UserManageruserManagerThe instance of UserManager the SecurityService uses-
Fields inherited from interface org.apache.fulcrum.security.SecurityService
ROLE
-
-
Constructor Summary
Constructors Constructor Description BaseSecurityService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()Avalon Service lifecycle methodGroupManagergetGroupManager()Returns the configured GroupManager.ModelManagergetModelManager()Returns the configured ModelManager.PermissionManagergetPermissionManager()Returns the configured PermissionManager.RoleManagergetRoleManager()Returns the configured RoleManager.UserManagergetUserManager()Returns the configured UserManager.voidinitialize()Avalon Service lifecycle method Initializes the SecurityService, locating the appropriate UserManagervoidservice(org.apache.avalon.framework.service.ServiceManager manager)Avalon Service lifecycle method
-
-
-
Field Detail
-
userManager
protected UserManager userManager
The instance of UserManager the SecurityService uses
-
roleManager
protected RoleManager roleManager
The instance of RoleManager the SecurityService uses
-
groupManager
protected GroupManager groupManager
The instance of GroupManager the SecurityService uses
-
permissionManager
protected PermissionManager permissionManager
The instance of PermissionManager the SecurityService uses
-
modelManager
protected ModelManager modelManager
The instance of ModelManager the SecurityService uses
-
-
Method Detail
-
getUserManager
public UserManager getUserManager()
Returns the configured UserManager.- Specified by:
getUserManagerin interfaceSecurityService- Returns:
- An UserManager object
-
getGroupManager
public GroupManager getGroupManager()
Returns the configured GroupManager.- Specified by:
getGroupManagerin interfaceSecurityService- Returns:
- An UserManager object
-
getRoleManager
public RoleManager getRoleManager()
Returns the configured RoleManager.- Specified by:
getRoleManagerin interfaceSecurityService- Returns:
- An RoleManager object
-
getPermissionManager
public PermissionManager getPermissionManager()
Returns the configured PermissionManager.- Specified by:
getPermissionManagerin interfaceSecurityService- Returns:
- An PermissionManager object
-
getModelManager
public ModelManager getModelManager()
Returns the configured ModelManager.- Specified by:
getModelManagerin 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:
servicein interfaceorg.apache.avalon.framework.service.Serviceable- Throws:
org.apache.avalon.framework.service.ServiceException
-
initialize
public void initialize() throws ExceptionAvalon Service lifecycle method Initializes the SecurityService, locating the appropriate UserManager- Specified by:
initializein interfaceorg.apache.avalon.framework.activity.Initializable- Throws:
Exception- A Problem occurred while initializing the User Manager.
-
dispose
public void dispose()
Avalon Service lifecycle method
-
-