- Timestamp:
- 02/02/22 19:35:14 (2 years ago)
- Branches:
- master
- Children:
- 80ddcae, c71fa06
- Parents:
- df4089c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sources/app/src/main/java/parkup/data/WorkerDemoParkingZones.java
rdf4089c r98f448a 15 15 private String lastName; 16 16 private String email; 17 private String password;18 17 private String mobile; 19 18 private UserRole role; 19 private boolean locked; 20 21 public boolean isLocked() { 22 return locked; 23 } 24 25 public void setLocked(boolean locked) { 26 this.locked = locked; 27 } 28 20 29 private EmployeeStatus status; 21 30 private List<String> pzNames; 22 private PasswordEncoder passwordEncoder;23 31 24 32 public WorkerDemoParkingZones(Worker v){ … … 27 35 this.lastName = v.getLastName(); 28 36 this.email = v.getEmail(); 29 this.password = v.getPassword();30 37 this.mobile = v.getMobile(); 31 38 this.role = v.getRole(); 32 39 this.status = v.getStatus(); 40 this.locked=v.isEnabled(); 33 41 this.pzNames = v.getParkingZones().stream().map(ParkingZone::getPzName).collect(Collectors.toList()); 34 42 } … … 66 74 } 67 75 68 public String getPassword() {69 return password;70 }71 72 public void setPassword(String password) {73 this.password = password;74 }75 76 76 public String getMobile() { 77 77 return mobile;
Note:
See TracChangeset
for help on using the changeset viewer.