use of eu.europa.ec.fisheries.ers.fa.entities.ContactPartyEntity in project UVMS-ActivityModule-APP by UnionVMS.
the class FishingTripIdSearchBuilder method getFishingActivitySummary.
private FishingActivitySummary getFishingActivitySummary(Set<Integer> uniqueFishingActivityIdList, FishingTripEntity entity) {
FishingActivitySummary fishingActivitySummary = null;
FishingActivityEntity fishingActivityEntity = entity.getFishingActivity();
if (fishingActivityEntity != null && uniqueFishingActivityIdList.add(fishingActivityEntity.getId())) {
fishingActivitySummary = FishingActivityMapper.INSTANCE.mapToFishingActivitySummary(entity.getFishingActivity());
ContactPartyEntity contactParty = getContactParty(fishingActivityEntity);
if (contactParty != null) {
VesselContactPartyType vesselContactParty = FishingActivityMapper.INSTANCE.mapToVesselContactParty(contactParty);
fishingActivitySummary.setVesselContactParty(vesselContactParty);
}
}
return fishingActivitySummary;
}
Aggregations