use of com.odysseusinc.arachne.portal.model.AnalysisFile in project ArachneCentralAPI by OHDSI.
the class BaseAnalysisToAnalysisDTOConverter method convert.
@Override
public AD convert(A source) {
BaseAnalysisDTO baseAnalysisDTO = conversionService.convert(source, BaseAnalysisDTO.class);
AD analysisDTO = createResultObject();
converterUtils.shallowCopy(analysisDTO, baseAnalysisDTO);
analysisDTO.setStudy(conversionService.convert(source.getStudy(), StudyShortDTO.class));
if (source.getFiles() != null) {
for (AnalysisFile analysisFile : source.getFiles()) {
analysisDTO.getFiles().add(conversionService.convert(analysisFile, AnalysisFileDTO.class));
}
}
analysisDTO.setPermissions(conversionService.convert(source, PermissionsDTO.class));
analysisDTO.setLocked(source.getLocked());
return analysisDTO;
}
Aggregations