public class UserManagerImpl extends Object implements UserManager
| Constructor and Description |
|---|
UserManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
createUser(User user)
Creates a new user.
|
void |
deleteUser(int userId)
Finds and removes the user from the persistence mechanism.
|
void |
deleteUser(String userName)
Finds and removes the user from the persistence mechanism.
|
int |
getUserCount()
Queries the persistence mechanism and returns the number of users.
|
List<User> |
getUserList()
Requests a List of all users from the persistence mechanism.
|
User |
lookupUser(int userId)
Looks up and retrieves a user from the persistence mechanism using the userId.
|
User |
lookupUser(String userName)
Looks up and retrieves a user from the persistence mechanism using the userName.
|
void |
setUserDao(UserDao userDao)
Sets the data access object which will acquire and persist the data
passed to it via the methods of this UserManager.
|
void |
updatePassword(User user)
Updates the User's Password
|
void |
updateUser(User user)
Saves changes made to an existing user .
|
public void setUserDao(UserDao userDao)
userDao - The service mechanism data access object representing a User.public User lookupUser(int userId)
lookupUser in interface UserManageruserId - The id of the user we are trying to locate (will be unique for each user).public User lookupUser(String userName)
lookupUser in interface UserManageruserName - The userName of the user we are trying to locate (will be unique for each user).public List<User> getUserList()
getUserList in interface UserManagerpublic int getUserCount()
getUserCount in interface UserManagerpublic void deleteUser(int userId)
deleteUser in interface UserManageruserId - The userId in the persistence mechanism.public void deleteUser(String userName)
deleteUser in interface UserManageruserName - The userName in the persistence mechanism.public void createUser(User user)
createUser in interface UserManageruser - The user to be created.public void updateUser(User user)
updateUser in interface UserManageruser - The existing user with changes that needs to be saved.public void updatePassword(User user)
updatePassword in interface UserManageruser - The user to whose password we need to update.Copyright © 1999–2014 UCAR/Unidata. All rights reserved.