Search in sources :

Example 1 with FACatchSummaryRecord

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;
}
Also used : ArrayList(java.util.ArrayList) FACatchSummaryRecord(eu.europa.ec.fisheries.uvms.activity.model.schemas.FACatchSummaryRecord) FACatchSummaryRecordDTO(eu.europa.ec.fisheries.ers.service.dto.fareport.summary.FACatchSummaryRecordDTO)

Aggregations

FACatchSummaryRecordDTO (eu.europa.ec.fisheries.ers.service.dto.fareport.summary.FACatchSummaryRecordDTO)1 FACatchSummaryRecord (eu.europa.ec.fisheries.uvms.activity.model.schemas.FACatchSummaryRecord)1 ArrayList (java.util.ArrayList)1