use of eu.europa.ec.fisheries.uvms.activity.model.schemas.FACatchSummaryRecord in project UVMS-ActivityModule-APP by UnionVMS.
the class FACatchSummaryHelper method buildFACatchSummaryRecordList.
public List<FACatchSummaryRecord> buildFACatchSummaryRecordList(List<FACatchSummaryRecordDTO> catchSummaryDTOList) {
List<FACatchSummaryRecord> faCatchSummaryRecords = new ArrayList<>();
for (FACatchSummaryRecordDTO faCatchSummaryDTO : catchSummaryDTOList) {
FACatchSummaryRecord faCatchSummaryRecord = new FACatchSummaryRecord();
faCatchSummaryRecord.setGroups(faCatchSummaryDTO.getGroups());
faCatchSummaryRecord.setSummary(FACatchSummaryMapper.INSTANCE.mapToSummaryTable(faCatchSummaryDTO.getSummaryTable()));
faCatchSummaryRecords.add(faCatchSummaryRecord);
}
log.debug("List of FACatchSummaryRecord objects created");
return faCatchSummaryRecords;
}
Aggregations