Search in sources :

Example 1 with StudyFileDTO

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;
}
Also used : UserInfoDTO(com.odysseusinc.arachne.portal.api.v1.dto.UserInfoDTO) StudyFileDTO(com.odysseusinc.arachne.portal.api.v1.dto.StudyFileDTO)

Aggregations

StudyFileDTO (com.odysseusinc.arachne.portal.api.v1.dto.StudyFileDTO)1 UserInfoDTO (com.odysseusinc.arachne.portal.api.v1.dto.UserInfoDTO)1