Package main.controller.account.user
Class UserAdder
java.lang.Object
main.controller.account.user.UserAdder
The UserAdder class provides a utility for adding users to the database.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprivate static voidaddCoordinator(Coordinator coordinator) Adds the specified coordinator to the database.private static voidaddStudent(Student student) Adds the specified student to the database.private static voidaddSupervisor(Supervisor supervisor) Adds the specified supervisor to the database.static voidAdds the specified user to the database.
- 
Constructor Details- 
UserAdderpublic UserAdder()
 
- 
- 
Method Details- 
addUserAdds the specified user to the database.- Parameters:
- user- the user to be added
- Throws:
- ModelAlreadyExistsException- if the user already exists in the database
 
- 
addCoordinatorAdds the specified coordinator to the database.- Parameters:
- coordinator- the coordinator to be added
- Throws:
- ModelAlreadyExistsException- if the coordinator already exists in the database
 
- 
addSupervisorAdds the specified supervisor to the database.- Parameters:
- supervisor- the supervisor to be added
- Throws:
- ModelAlreadyExistsException- if the supervisor already exists in the database
 
- 
addStudentAdds the specified student to the database.- Parameters:
- student- the student to be added
- Throws:
- ModelAlreadyExistsException- if the student already exists in the database
 
 
-