public class MemoryUserManagerImpl extends AbstractUserManager
manager
ROLE
Constructor and Description |
---|
MemoryUserManagerImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkExists(String userName)
Check whether a specified user's account exists.
|
UserSet |
getAllUsers()
Retrieves all users defined in the system.
|
protected <T extends User> |
persistNewUser(T user)
Creates new user account with specified attributes.
|
void |
removeUser(User user)
Removes an user account from the system.
|
void |
saveUser(User user)
Stores User attributes.
|
addUser, authenticate, changePassword, checkExists, forcePassword, getACL, getACLFactory, getUser, getUser, getUserById, getUserInstance, getUserInstance
configure, getClassName, setClassName
dispose, getGroupManager, getPermissionManager, getRoleManager, getServiceManager, getUserManager, release, resolve, service
public boolean checkExists(String userName) throws DataBackendException
userName
- The name of the user to be checked.DataBackendException
- if there was an error accessing the data backend.public UserSet getAllUsers() throws DataBackendException
DataBackendException
- if there was an error accessing the data backend.public void removeUser(User user) throws DataBackendException, UnknownEntityException
user
- the object describing the account to be removed.DataBackendException
- if there was an error accessing the data backend.UnknownEntityException
- if the user account is not present.protected <T extends User> T persistNewUser(T user) throws DataBackendException
persistNewUser
in class AbstractUserManager
user
- the object describing account to be created.password
- The password to use for the account.DataBackendException
- if there was an error accessing the data backend.EntityExistsException
- if the user account already exists.public void saveUser(User user) throws DataBackendException, UnknownEntityException
role
- The User to be stored.DataBackendException
- if there was an error accessing the data backend.UnknownEntityException
- if the role does not exist.Copyright © 2011–2017 The Apache Software Foundation. All rights reserved.