Search in sources :

Example 1 with FlapDocumentEntity

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;
}
Also used : FLAPDocument(un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.FLAPDocument) FlapDocumentEntity(eu.europa.ec.fisheries.ers.fa.entities.FlapDocumentEntity) HashSet(java.util.HashSet)

Aggregations

FlapDocumentEntity (eu.europa.ec.fisheries.ers.fa.entities.FlapDocumentEntity)1 HashSet (java.util.HashSet)1 FLAPDocument (un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.FLAPDocument)1