java.lang.Object
es.kukenan.smartfi.microservice.clients.service.mapper.UserEntityMapper

@Component public class UserEntityMapper extends Object
User entity mapper.
  • Constructor Details

    • UserEntityMapper

      public UserEntityMapper()
  • Method Details

    • toDto

      public List<es.kukenan.smartfi.microservice.clients.dto.UserDto> toDto(List<User> users)
      Map the given list of Users to a list of UserDtos.
      Parameters:
      users - the list of User.
      Returns:
      the mapped list of UserDtos.
    • toDto

      public es.kukenan.smartfi.microservice.clients.dto.UserDto toDto(User user)
      Map the given Users to a UserDtos.
      Parameters:
      user - the User.
      Returns:
      the mapped UserDtos.
    • getPersonalData

      public es.kukenan.smartfi.microservice.clients.dto.UserDto getPersonalData(User user)
      Map the given Users to a UserDtos.
      Parameters:
      user - the User.
      Returns:
      the mapped UserDtos.