- All Known Implementing Classes:
UserManager
public interface UserManagement
Defines the interface for managing user records.
Available methods:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createUser
(UserCredentials userCredentials) Creates a new user record on the database.void
deleteUser
(int employeeID) Deletes a user record from the database.Retrieves all user records from the database.getUserRecord
(int employeeID) Retrieves a user record from the database.void
updateCredentials
(UserCredentials userCredential) Updates an existing user record on the database.
-
Method Details
-
createUser
Creates a new user record on the database.- Parameters:
userCredentials
- the user credentials to be created
-
updateCredentials
Updates an existing user record on the database.- Parameters:
userCredential
- the user credentials to be updated- Throws:
UserRecordsException
- if the user record does not exist
-
deleteUser
Deletes a user record from the database.- Parameters:
employeeID
- the ID of the user to be deleted- Throws:
UserRecordsException
- if the user record does not exist
-
getAllUserRecords
List<UserCredentials> getAllUserRecords()Retrieves all user records from the database.- Returns:
- a list of all user records
-
getUserRecord
Retrieves a user record from the database.- Parameters:
employeeID
- the ID of the user- Returns:
- the user record
-