java.lang.Object
com.mirna.hospitalmanagementapi.application.services.UserServiceImpl
All Implemented Interfaces:
UserService

@Service public class UserServiceImpl extends Object implements UserService
This class is an implementation of the UserService interface. This class provides methods to perform operations on User entity
Version:
1.0
Author:
Mirna Gama
  • Constructor Details

    • UserServiceImpl

      public UserServiceImpl()
  • Method Details

    • findUserByLogin

      public org.springframework.security.core.userdetails.UserDetails findUserByLogin(String login)
      Finds a stored user information by login.
      Specified by:
      findUserByLogin in interface UserService
      Parameters:
      login - A string representing the user's system login
      Returns:
      The corresponding user information if successful, or null if it is non-existent.
    • addUser

      public User addUser(UserDTO userDTO)
      Adds a new user to the repository.
      Specified by:
      addUser in interface UserService
      Parameters:
      userDTO - A data transfer object representing a user to add.
      Returns:
      The saved user if successful, or null if there is an error.