Changeset 50f2c2a
- Timestamp:
- 02/16/23 14:45:18 (21 months ago)
- Branches:
- main
- Children:
- 9a180fd
- Parents:
- 59a8941 (diff), eef07ff (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- Prototype Application/Paw5/src/main/java/finki/paw5
- Files:
-
- 2 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
Prototype Application/Paw5/src/main/java/finki/paw5/model/entities/Adopter.java
r59a8941 r50f2c2a 23 23 24 24 @Column(name = "has_other_pets") 25 private boolean hasOtherPets;25 private Boolean hasOtherPets; 26 26 27 27 @Column(name = "has_kids") 28 private boolean hasKids;28 private Boolean hasKids; 29 29 30 30 @Column(name = "housing") … … 35 35 36 36 @Column(name = "will_foster") 37 private boolean willFoster;37 private Boolean willFoster; 38 38 39 39 @Column(name = "is_verified", nullable = false) 40 private boolean verified;40 private Boolean verified; 41 41 42 42 @Column(name = "verified_by_employee") -
Prototype Application/Paw5/src/main/java/finki/paw5/service/implementation/AuthServiceImplementation.java
r59a8941 r50f2c2a 17 17 18 18 @Service 19 public class AuthServiceImpl implements AuthService {19 public class AuthServiceImplementation implements AuthService { 20 20 21 21 private final UserRepository userRepository; … … 23 23 private final EmployeeRepository employeeRepository; 24 24 25 public AuthServiceImpl (UserRepository userRepository, AdopterRepository adopterRepository, EmployeeRepository employeeRepository) {25 public AuthServiceImplementation(UserRepository userRepository, AdopterRepository adopterRepository, EmployeeRepository employeeRepository) { 26 26 this.userRepository = userRepository; 27 27 this.adopterRepository = adopterRepository; -
Prototype Application/Paw5/src/main/java/finki/paw5/service/implementation/OrganisationServiceImplementation.java
r59a8941 r50f2c2a 8 8 import java.util.List; 9 9 @Service 10 public class OrganisationServiceImpl implements OrganisationService {10 public class OrganisationServiceImplementation implements OrganisationService { 11 11 private final OrganisationRepository organisationRepository; 12 12 13 public OrganisationServiceImpl (OrganisationRepository organisationRepository) {13 public OrganisationServiceImplementation(OrganisationRepository organisationRepository) { 14 14 this.organisationRepository = organisationRepository; 15 15 } -
Prototype Application/Paw5/src/main/java/finki/paw5/web/controllers/RegisterController.java
r59a8941 r50f2c2a 42 42 @RequestParam String password, @RequestParam String repeatPassword, 43 43 @RequestParam String telephone,@RequestParam String role, 44 HttpServletRequest request) { 44 @RequestParam (required = false) String freeTime, @RequestParam (required = false) String funds, 45 @RequestParam (required = false) boolean hasOtherPets, @RequestParam (required = false) boolean hasKids, 46 @RequestParam (required = false) String housing, @RequestParam (required = false) String physicalActivity, 47 @RequestParam (required = false) boolean willFoster, @RequestParam (required = false) Integer shelter, 48 @RequestParam (required = false) String position, HttpServletRequest request) { 45 49 46 50 if(role.equals("adopter") & password.equals(repeatPassword)){ 47 String freeTime = request.getParameter("freeTime");48 String funds = request.getParameter("funds");49 boolean hasOtherPets = Boolean.parseBoolean(request.getParameter("hasOtherPets"));50 boolean hasKids = Boolean.parseBoolean(request.getParameter("hasKids"));51 String housing = request.getParameter("housing");52 String physicalActivity = request.getParameter("physicalActivity");53 boolean willFoster = Boolean.parseBoolean(request.getParameter("willFoster"));54 51 55 52 FreeTime ft = FreeTime.valueOf(freeTime); … … 64 61 } 65 62 else if(role.equals("employee") & password.equals(repeatPassword)){ 66 Integer shelter = Integer.valueOf(request.getParameter("shelter"));67 String position = request.getParameter("position");68 63 69 64 Employee employeeUser = authService.registerEmployee(name, email, password, telephone,position,shelter);
Note:
See TracChangeset
for help on using the changeset viewer.