Interface UserService

All Known Implementing Classes:
UserServiceImpl

public interface UserService
User service interface for managing user information.
Version:
1.0
Author:
Mirna Gama
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    addUser(UserDTO userDTO)
    Adds a new user to the repository.
    org.springframework.security.core.userdetails.UserDetails
    Finds a stored user information by login.
  • Method Details

    • addUser

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

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