Package Singletons
Class UserLoginManager
java.lang.Object
Singletons.UserLoginManager
A singleton class that manages the list of registered users
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a user to the list of registered usersGet all patientsGet all staffsstatic UserLoginManager
getUserById
(String id) Get a user by their usernamegetUsers()
Get the list of registered usersvoid
removeUser
(User user) Remove a user from the list of registered users
-
Method Details
-
getInstance
-
getUserById
-
getAllPatients
-
getAllStaffs
-
addUser
Add a user to the list of registered users- Parameters:
user
- the user to be added
-
removeUser
Remove a user from the list of registered users- Parameters:
user
- the user to be removed
-
getUsers
-
getUserIds
-