Changeset b738035 for trip-planner/src/main/java/finki/diplomska/tripplanner/service/impl/UserServiceImpl.java
- Timestamp:
- 01/24/22 21:08:32 (3 years ago)
- Branches:
- master
- Children:
- 76712b2
- Parents:
- bdd6491
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trip-planner/src/main/java/finki/diplomska/tripplanner/service/impl/UserServiceImpl.java
rbdd6491 rb738035 7 7 import finki.diplomska.tripplanner.service.UserService; 8 8 import org.springframework.beans.factory.annotation.Autowired; 9 import org.springframework.http.ResponseEntity; 9 10 import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; 10 11 import org.springframework.stereotype.Service; 11 12 13 import java.util.List; 12 14 import java.util.Optional; 13 15 … … 34 36 throw new UsernameAlreadyExistsException("Username '"+newUser.getUsername()+ "' already exists"); 35 37 } 38 } 36 39 40 @Override 41 public List<String> getAllUsernames() { 42 return this.userRepository.getAllUsernames(); 43 } 44 45 @Override 46 public Optional<String> getPassword(UserDto userDto) { 47 this.userRepository.getPassword(userDto.getUsername()); 48 return null; 49 } 50 51 @Override 52 public Optional<User> findById(Long id) { 53 return this.userRepository.findById(id); 37 54 } 38 55
Note:
See TracChangeset
for help on using the changeset viewer.