Class MemoryTurbineUserManagerImpl
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.apache.fulcrum.security.spi.AbstractManager
-
- org.apache.fulcrum.security.spi.AbstractEntityManager
-
- org.apache.fulcrum.security.spi.AbstractUserManager
-
- org.apache.fulcrum.security.memory.MemoryUserManagerImpl
-
- org.apache.fulcrum.security.memory.turbine.MemoryTurbineUserManagerImpl
-
- All Implemented Interfaces:
Serializable
,org.apache.avalon.framework.activity.Disposable
,org.apache.avalon.framework.configuration.Configurable
,org.apache.avalon.framework.logger.LogEnabled
,org.apache.avalon.framework.service.Serviceable
,org.apache.avalon.framework.thread.ThreadSafe
,TurbineUserManager
,UserManager
public class MemoryTurbineUserManagerImpl extends MemoryUserManagerImpl implements TurbineUserManager
This implementation keeps all objects in memory. This is mostly meant to help with testing and prototyping of ideas.- Version:
- $Id: MemoryTurbineUserManagerImpl.java 535465 2007-05-05 06:58:06Z tv $
- Author:
- Eric Pugh
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.fulcrum.security.spi.AbstractManager
manager
-
Fields inherited from interface org.apache.fulcrum.security.UserManager
ROLE
-
-
Constructor Summary
Constructors Constructor Description MemoryTurbineUserManagerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends User>
TgetAnonymousUser()
Constructs an User object to represent an anonymous user of the application.boolean
isAnonymousUser(User user)
Checks whether a passed user object matches the anonymous user pattern according to the configured user manager-
Methods inherited from class org.apache.fulcrum.security.memory.MemoryUserManagerImpl
checkExists, getAllUsers, persistNewUser, removeUser, saveUser
-
Methods inherited from class org.apache.fulcrum.security.spi.AbstractUserManager
addUser, authenticate, changePassword, checkExists, forcePassword, getACL, getACLFactory, getUser, getUser, getUserById, getUserInstance, getUserInstance
-
Methods inherited from class org.apache.fulcrum.security.spi.AbstractEntityManager
configure, getClassName, setClassName
-
Methods inherited from class org.apache.fulcrum.security.spi.AbstractManager
dispose, getGroupManager, getPermissionManager, getRoleManager, getServiceManager, getUserManager, release, resolve, service
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.fulcrum.security.UserManager
addUser, authenticate, changePassword, checkExists, checkExists, forcePassword, getACL, getAllUsers, getUser, getUser, getUserById, getUserInstance, getUserInstance, removeUser, saveUser
-
-
-
-
Constructor Detail
-
MemoryTurbineUserManagerImpl
public MemoryTurbineUserManagerImpl()
-
-
Method Detail
-
getAnonymousUser
public <T extends User> T getAnonymousUser() throws UnknownEntityException
Constructs an User object to represent an anonymous user of the application.- Specified by:
getAnonymousUser
in interfaceTurbineUserManager
- Returns:
- An anonymous Turbine User.
- Throws:
UnknownEntityException
- if the implementation of User interface could not be determined, or does not exist.
-
isAnonymousUser
public boolean isAnonymousUser(User user)
Checks whether a passed user object matches the anonymous user pattern according to the configured user manager- Specified by:
isAnonymousUser
in interfaceTurbineUserManager
- Parameters:
user
- An user object- Returns:
true
if this is an anonymous user
-
-