use of com.odysseusinc.arachne.portal.api.v1.dto.StudyFileDTO in project ArachneCentralAPI by OHDSI.
the class StudyFileToStudyFileDTOConverter method convert.
@Override
public StudyFileDTO convert(StudyFile source) {
StudyFileDTO studyFileDTO = new StudyFileDTO();
studyFileDTO.setLabel(source.getLabel());
studyFileDTO.setUuid(source.getUuid());
studyFileDTO.setName(source.getRealName());
studyFileDTO.setCreated(source.getCreated());
studyFileDTO.setLink(source.getLink());
studyFileDTO.setStudyId(source.getStudy().getId());
studyFileDTO.setAuthor(conversionService.convert(source.getAuthor(), UserInfoDTO.class));
studyFileDTO.setDocType(source.getContentType());
studyFileDTO.setAntivirusStatus(source.getAntivirusStatus());
studyFileDTO.setAntivirusDescription(source.getAntivirusDescription());
return studyFileDTO;
}
Aggregations