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 TypeMethodDescriptionAdds a new user to the repository.org.springframework.security.core.userdetails.UserDetailsfindUserByLogin(String login) Finds a stored user information by login.
-
Method Details
-
addUser
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
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.
-