use of org.akaza.openclinica.service.crfdata.ExecuteIndividualCrfObject in project OpenClinica by OpenClinica.
the class OdmImportServiceImpl method saveOrUpdateCrfAndFormLayouts.
private void saveOrUpdateCrfAndFormLayouts(String crfOid, List<OCodmComplexTypeDefinitionFormLayoutDef> formLayoutDefs, Form[] fmCrfs, UserAccount userAccount, Study study, String crfName) {
DataBinder dataBinder = new DataBinder(new FormLayout());
Errors errors = dataBinder.getBindingResult();
StudyBean currentStudy = new StudyBean();
currentStudy.setId(study.getStudyId());
UserAccountBean ub = new UserAccountBean();
ub.setId(userAccount.getUserId());
ub.setActiveStudyId(currentStudy.getId());
for (Form crf : fmCrfs) {
if (crf.getOcoid().equals(crfOid)) {
ExecuteIndividualCrfObject eicObj = new ExecuteIndividualCrfObject(crf, formLayoutDefs, errors, currentStudy, ub, true, null);
xformService.executeIndividualCrf(eicObj);
}
}
}
Aggregations