Interface ILinkMapper


public interface ILinkMapper
Mapper class for mapping Link entities to LinkDTOs.
  • Method Summary

    Modifier and Type
    Method
    Description
    callofproject.dev.repository.authentication.entity.Link
    toLink(LinkUpsertDTO linkUpsertDTO)
    Maps a LinkUpsertDTO to a Link entity.
    toLinkDTO(callofproject.dev.repository.authentication.entity.Link link)
    Maps a Link entity to a LinkDTO.
    default LinksDTO
    toLinksDTO(List<LinkDTO> linkDTOs)
    Maps a list of Link entities to a LinksDTO.
  • Method Details

    • toLink

      callofproject.dev.repository.authentication.entity.Link toLink(LinkUpsertDTO linkUpsertDTO)
      Maps a LinkUpsertDTO to a Link entity.
      Parameters:
      linkUpsertDTO - The LinkUpsertDTO to be mapped.
      Returns:
      A Link entity representing the mapped LinkUpsertDTO.
    • toLinkDTO

      LinkDTO toLinkDTO(callofproject.dev.repository.authentication.entity.Link link)
      Maps a Link entity to a LinkDTO.
      Parameters:
      link - The Link entity to be mapped.
      Returns:
      A LinkDTO representing the mapped Link entity.
    • toLinksDTO

      default LinksDTO toLinksDTO(List<LinkDTO> linkDTOs)
      Maps a list of Link entities to a LinksDTO.
      Parameters:
      linkDTOs - The list of Link entities to be mapped.
      Returns:
      A LinksDTO representing the mapped list of Link entities.