Interface TurbineUserManager
- All Superinterfaces:
Serializable
,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 extends
User
> is wrapped using an extended user model,
which includes at least TurbineUser
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
Modifier and TypeMethodDescription<T extends User>
TConstructs 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 managerMethods inherited from interface org.apache.fulcrum.security.UserManager
addUser, authenticate, changePassword, checkExists, checkExists, forcePassword, getACL, getAllUsers, getUser, getUser, getUserById, getUserInstance, getUserInstance, removeUser, retrieveUserList, saveUser
-
Method Details
-
getAnonymousUser
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
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
-