Changeset a8e8545 for src/main/java/it/finki/tinki/web
- Timestamp:
- 01/08/21 00:35:56 (4 years ago)
- Branches:
- master
- Children:
- 4cec0a3
- Parents:
- 509cb95
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/it/finki/tinki/web/controller/RegisterController.java
r509cb95 ra8e8545 40 40 @RequestParam String name, 41 41 @RequestParam String surname, 42 @RequestParam List< Integer> retainedSkills,43 @RequestParam List< Integer> skillsToLearn){42 @RequestParam List<Long> retainedSkills, 43 @RequestParam List<Long> skillsToLearn){ 44 44 45 45 List<Skill> retained = this.skillService.returnSkillsBasedOnId(retainedSkills); … … 53 53 response.put("error", "There was an error when trying to register user."); 54 54 }else{ 55 List<Job> jobs = this.workService.getAllJobs();56 List<Project> projects = this.workService.getAllProjects();57 List<Internship> internships = this.workService.getAllInternships();58 59 jobs.forEach(job -> {60 this.matchmakerService.setUpUserJobMatches(job, (User) k);61 });62 63 projects.forEach(project -> {64 this.matchmakerService.setUpUserProjectMatches(project, (User) k);65 });66 67 internships.forEach(internship -> {68 this.matchmakerService.setUpUserInternshipMatches(internship, (User) k);69 });70 71 55 response.put("success", "Registration completed successfully."); 72 56 } … … 95 79 96 80 @RequestMapping(path = "/company", method = RequestMethod.POST) 97 private Map<String, String> registe rTeam(@RequestParam String email,98 @RequestParam String password,99 @RequestParam String name,100 @RequestParam String country,101 @RequestParam String city,102 @RequestParam String street){81 private Map<String, String> registeCompany(@RequestParam String email, 82 @RequestParam String password, 83 @RequestParam String name, 84 @RequestParam String country, 85 @RequestParam String city, 86 @RequestParam String street){ 103 87 104 88 Account k = this.accountService.registerCompany(email, password, name, country, city, street);
Note:
See TracChangeset
for help on using the changeset viewer.