public class MemoryUserManagerImpl extends AbstractUserManager
managerROLE| 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, getUserInstanceconfigure, getClassName, setClassNamedispose, getGroupManager, getPermissionManager, getRoleManager, getServiceManager, getUserManager, release, resolve, servicepublic 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 AbstractUserManageruser - the object describing account to be created.DataBackendException - if there was an error accessing the data
backend.public void saveUser(User user) throws DataBackendException, UnknownEntityException
user - The User to be stored.DataBackendException - if there was an error accessing the data
backendUnknownEntityException - if the role does not exist.Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.