use of eu.europa.ec.fisheries.ers.fa.entities.FlapDocumentEntity in project UVMS-ActivityModule-APP by UnionVMS.
the class VesselTransportMeansMapper method getFlapDocumentEntities.
protected Set<FlapDocumentEntity> getFlapDocumentEntities(List<FLAPDocument> flapDocuments, VesselTransportMeansEntity vesselTransportMeansEntity) {
if (flapDocuments == null || flapDocuments.isEmpty()) {
return Collections.emptySet();
}
Set<FlapDocumentEntity> flapDocumentEntities = new HashSet<>();
for (FLAPDocument flapDocument : flapDocuments) {
FlapDocumentEntity entity = FlapDocumentMapper.INSTANCE.mapToFlapDocumentEntity(flapDocument);
entity.setVesselTransportMeans(vesselTransportMeansEntity);
flapDocumentEntities.add(entity);
}
return flapDocumentEntities;
}
Aggregations