Uses of Record Class
dev.fernando.user_authentication_api.dto.ViewUserDto
Packages that use ViewUserDto
Package
Description
-
Uses of ViewUserDto in dev.fernando.user_authentication_api.controller
Methods in dev.fernando.user_authentication_api.controller that return types with arguments of type ViewUserDtoModifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity
<org.springframework.hateoas.EntityModel<ViewUserDto>> UserController.createUser
(CreateUserDto createUserDto) This endpoint allows the creation of a user with a default role, typically used for client accounts.org.springframework.http.ResponseEntity
<org.springframework.hateoas.EntityModel<ViewUserDto>> UserController.deleteUserByEmail
(String email) This endpoint deletes a user by email.org.springframework.http.ResponseEntity
<org.springframework.hateoas.EntityModel<ViewUserDto>> UserController.deleteUserById
(Long id) This endpoint deletes a user by ID.org.springframework.http.ResponseEntity
<org.springframework.hateoas.EntityModel<ViewUserDto>> UserController.getUserByEmail
(String email) This endpoint allows retrieval of user details using their email address.org.springframework.http.ResponseEntity
<org.springframework.hateoas.EntityModel<ViewUserDto>> UserController.getUserById
(Long id) This endpoint allows retrieval of user details using their ID.org.springframework.http.ResponseEntity
<org.springframework.hateoas.EntityModel<ViewUserDto>> UserController.updateUser
(Long id, UpdateUserDto updateUserDto) This endpoint allows updating user details by ID. -
Uses of ViewUserDto in dev.fernando.user_authentication_api.model
Methods in dev.fernando.user_authentication_api.model that return ViewUserDtoModifier and TypeMethodDescriptionUser.toViewUserDto()
Converts the User entity to a ViewUserDto. -
Uses of ViewUserDto in dev.fernando.user_authentication_api.service
Methods in dev.fernando.user_authentication_api.service that return ViewUserDtoModifier and TypeMethodDescriptionUserService.createUserWithDefaultRole
(CreateUserDto createUserDto) Creates a new user with default USER role aboutUserRole
, in other words, a client of user service.UserService.deleteUserByEmail
(String email) Deletes a user by their email.UserService.deleteUserById
(Long id) Deletes a user by their ID.UserService.findUserByEmail
(String email) Finds a user by their email.UserService.findUserById
(Long id) Finds a user by their ID.UserService.updateUser
(Long id, UpdateUserDto updateUserDto) updates an existing user as long as the current password is confirmed during the update. -
Uses of ViewUserDto in dev.fernando.user_authentication_api.service.impl
Methods in dev.fernando.user_authentication_api.service.impl that return ViewUserDtoModifier and TypeMethodDescriptionUserServiceImpl.createUserWithDefaultRole
(CreateUserDto createUserDto) UserServiceImpl.deleteUserByEmail
(String email) UserServiceImpl.deleteUserById
(Long id) UserServiceImpl.findUserByEmail
(String email) UserServiceImpl.findUserById
(Long id) UserServiceImpl.updateUser
(Long id, UpdateUserDto updateUserDto)