Interface TurbineUserManager
-
- All Superinterfaces:
Serializable
,UserManager
- All Known Implementing Classes:
MemoryTurbineUserManagerImpl
,TorqueTurbineUserManagerImpl
public interface TurbineUserManager extends UserManager
This interface describes the methods that glue the "turbine" model together. This Fulcrum user manager is as used as a delegate in the default Turbine user manager. The user <T extendsUser
> is wrapped using an extended user model, which includes at leastTurbineUser
interface. This interface's methods are wrapped in Turbine user manager (org.apache.turbine.services.security.UserManager) either in a method with the same name (and very similar signature) or mapped to method names as listed below:- Turbine (framework) user manager method(s) -> method(s) in this (Fulcrum) manager
- createAccount ->
UserManager.addUser(User, String)
- removeAccount ->
UserManager.removeUser(User)
- store ->
UserManager.saveUser(User)
- retrieve (2x)->
UserManager.getUser(String)
,UserManager.getUser(String, String)
- retrieveList ->
UserManager.getAllUsers()
- accountExists (2x)->
UserManager.checkExists(String)
,UserManager.checkExists(User)
- Version:
- $Id$
- Author:
- Eric Pugh
-
-
Field Summary
-
Fields inherited from interface org.apache.fulcrum.security.UserManager
ROLE
-
-
Method Summary
All Methods Instance Methods Abstract 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 interface org.apache.fulcrum.security.UserManager
addUser, authenticate, changePassword, checkExists, checkExists, forcePassword, getACL, getAllUsers, getUser, getUser, getUserById, getUserInstance, getUserInstance, removeUser, saveUser
-
-
-
-
Method Detail
-
getAnonymousUser
<T extends User> T getAnonymousUser() throws UnknownEntityException
Constructs an User object to represent an anonymous user of the application.- Returns:
- An anonymous Turbine User.
- Throws:
UnknownEntityException
- if the anonymous User object couldn't be constructed.
-
isAnonymousUser
boolean isAnonymousUser(User user)
Checks whether a passed user object matches the anonymous user pattern according to the configured user manager- Parameters:
user
- A user object- Returns:
- True if this is an anonymous user
-
-