Interface ILinkMapper
public interface ILinkMapper
Mapper class for mapping Link entities to LinkDTOs.
-
Method Summary
Modifier and TypeMethodDescriptioncallofproject.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
Maps a LinkUpsertDTO to a Link entity.- Parameters:
linkUpsertDTO
- The LinkUpsertDTO to be mapped.- Returns:
- A Link entity representing the mapped LinkUpsertDTO.
-
toLinkDTO
Maps a Link entity to a LinkDTO.- Parameters:
link
- The Link entity to be mapped.- Returns:
- A LinkDTO representing the mapped Link entity.
-
toLinksDTO
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.
-