Changeset 4cec0a3 for src/main/java/it/finki/tinki/web/controller
- Timestamp:
- 01/08/21 02:08:22 (4 years ago)
- Branches:
- master
- Children:
- b24fe9b
- Parents:
- a8e8545
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/it/finki/tinki/web/controller/LoginController.java
ra8e8545 r4cec0a3 1 1 package it.finki.tinki.web.controller; 2 2 3 import it.finki.tinki.model.Jobs.Internship; 4 import it.finki.tinki.model.Jobs.Job; 3 5 import it.finki.tinki.model.Users.Account; 4 6 import it.finki.tinki.model.Users.Company; … … 14 16 import org.springframework.web.server.ResponseStatusException; 15 17 18 import java.util.List; 16 19 import java.util.Map; 17 20 … … 54 57 uDto.setToLearn(((User) a1).getSkillsToLearn()); 55 58 56 uDto.setInternships(this.matchmakerService.getMatchingInternshipsForUser((User) a1)); 57 uDto.setJobs(this.matchmakerService.getMatchingJobsForUser((User) a1)); 58 uDto.setProjects(this.matchmakerService.getMatchingProjectsForUser((User) a1)); 59 List<Job> matchedJobs = this.matchmakerService.getMatchingJobsForUser((User) a1); 60 61 matchedJobs.forEach(job -> { 62 JobResponseDTO dto = new JobResponseDTO(job); 63 uDto.getJobs().add(dto); 64 }); 65 59 66 60 67 return uDto;
Note:
See TracChangeset
for help on using the changeset viewer.