use of com.odysseusinc.arachne.portal.api.v1.dto.ShortBaseAnalysisDTO in project ArachneCentralAPI by OHDSI.
the class AnalysisToShortBaseAnalysisDTOConverter method convert.
@Override
public ShortBaseAnalysisDTO convert(Analysis source) {
ShortBaseAnalysisDTO analysisDTO = new ShortBaseAnalysisDTO();
analysisDTO.setId(source.getId());
analysisDTO.setCreated(source.getCreated());
analysisDTO.setType(new OptionDTO(source.getType().name(), source.getType().getTitle()));
return analysisDTO;
}
use of com.odysseusinc.arachne.portal.api.v1.dto.ShortBaseAnalysisDTO in project ArachneCentralAPI by OHDSI.
the class AnalysisToBaseAnalysisDTOConverter method convert.
@Override
public BaseAnalysisDTO convert(Analysis source) {
ShortBaseAnalysisDTO baseDTO = conversionService.convert(source, ShortBaseAnalysisDTO.class);
BaseAnalysisDTO analysisDTO = new BaseAnalysisDTO(baseDTO);
analysisDTO.setAuthor(conversionService.convert(source.getAuthor(), UserInfoDTO.class));
analysisDTO.setTitle(source.getTitle());
analysisDTO.setDescription(source.getDescription());
analysisDTO.setUpdated(source.getUpdated());
analysisDTO.setStudy(conversionService.convert(source.getStudy(), StudyShortDTO.class));
analysisDTO.setPermissions(conversionService.convert(source, PermissionsDTO.class));
return analysisDTO;
}
Aggregations