Class FileDtoMapper

java.lang.Object
com.usatiuk.dhfsfs.objects.FileDtoMapper
All Implemented Interfaces:
DtoMapper<File,FileDto>

@ApplicationScoped public class FileDtoMapper extends Object implements DtoMapper<File,FileDto>
Maps a File object to a FileDto object and vice versa.
  • Constructor Details

    • FileDtoMapper

      public FileDtoMapper()
  • Method Details

    • toDto

      public FileDto toDto(File obj)
      Description copied from interface: DtoMapper
      Converts a remote object to its DTO representation.
      Specified by:
      toDto in interface DtoMapper<File,FileDto>
      Parameters:
      obj - the remote object to convert
      Returns:
      the DTO representation of the remote object
    • fromDto

      public File fromDto(FileDto dto)
      Description copied from interface: DtoMapper
      Converts a DTO to its corresponding remote object.
      Specified by:
      fromDto in interface DtoMapper<File,FileDto>
      Parameters:
      dto - the DTO to convert
      Returns:
      the remote object representation of the DTO