Interface IUserMapper
public interface IUserMapper
Mapper class for mapping User entities to UserDTOs.
-
Method Summary
Modifier and TypeMethodDescriptioncallofproject.dev.repository.authentication.entity.User
Maps a UserSignUpRequestDTO to a User entity.toUserDTO
(callofproject.dev.repository.authentication.entity.User user) Maps a User entity to a UserDTO.default UsersDTO
toUsersDTO
(List<UserDTO> list) Maps a list of User entities to a UsersDTO.toUserShowingAdminDTO
(callofproject.dev.repository.authentication.entity.User user) Maps a User entity to a UserDTO.default UsersShowingAdminDTO
Maps a list of User entities to a UsersShowingAdminDTO.
-
Method Details
-
toUser
Maps a UserSignUpRequestDTO to a User entity.- Parameters:
dto
- The UserSignUpRequestDTO to be mapped.- Returns:
- A User entity representing the mapped UserSignUpRequestDTO.
-
toUserShowingAdminDTO
UserShowingAdminDTO toUserShowingAdminDTO(callofproject.dev.repository.authentication.entity.User user) Maps a User entity to a UserDTO.- Parameters:
user
- The User entity to be mapped.- Returns:
- A UserDTO representing the mapped User entity.
-
toUserDTO
Maps a User entity to a UserDTO.- Parameters:
user
- The User entity to be mapped.- Returns:
- A UserDTO representing the mapped User entity.
-
toUsersShowingAdminDTO
Maps a list of User entities to a UsersShowingAdminDTO.- Parameters:
list
- The list of User entities to be mapped.- Returns:
- A UsersDTO representing the mapped list of User entities.
-
toUsersDTO
Maps a list of User entities to a UsersDTO.- Parameters:
list
- The list of User entities to be mapped.- Returns:
- A UsersDTO representing the mapped list of User entities.
-