Search in sources :

Example 1 with FluxPartyEntity

use of eu.europa.ec.fisheries.ers.fa.entities.FluxPartyEntity in project UVMS-ActivityModule-APP by UnionVMS.

the class ActivityDataUtil method getFluxReportDocumentEntity.

public static FluxReportDocumentEntity getFluxReportDocumentEntity(String fluxDocumentID, String referenceID, Date creationDateTime, String purposeCode, String purposeCodeListId, String purpose, String ownerFluxPartyId, String ownerFluxPartyName) {
    FluxReportDocumentEntity fluxReportDocumentEntity = new FluxReportDocumentEntity();
    FluxReportIdentifierEntity entity = new FluxReportIdentifierEntity();
    entity.setFluxReportIdentifierId(fluxDocumentID);
    fluxReportDocumentEntity.setFluxReportIdentifiers(new HashSet<>(Arrays.asList(entity)));
    fluxReportDocumentEntity.setCreationDatetime(creationDateTime);
    FluxPartyEntity fluxPartyEntity = new FluxPartyEntity();
    fluxPartyEntity.setFluxPartyName(ownerFluxPartyName);
    FluxPartyIdentifierEntity fluxPartyIdentifierEntity = new FluxPartyIdentifierEntity();
    fluxPartyIdentifierEntity.setFluxPartyIdentifierId(ownerFluxPartyId);
    fluxReportDocumentEntity.setFluxParty(fluxPartyEntity);
    fluxReportDocumentEntity.setPurpose(purpose);
    fluxReportDocumentEntity.setPurposeCode(purposeCode);
    fluxReportDocumentEntity.setPurposeCodeListId(purposeCodeListId);
    fluxReportDocumentEntity.setReferenceId(referenceID);
    return fluxReportDocumentEntity;
}
Also used : FluxReportIdentifierEntity(eu.europa.ec.fisheries.ers.fa.entities.FluxReportIdentifierEntity) FluxReportDocumentEntity(eu.europa.ec.fisheries.ers.fa.entities.FluxReportDocumentEntity) FluxPartyEntity(eu.europa.ec.fisheries.ers.fa.entities.FluxPartyEntity) FluxPartyIdentifierEntity(eu.europa.ec.fisheries.ers.fa.entities.FluxPartyIdentifierEntity)

Example 2 with FluxPartyEntity

use of eu.europa.ec.fisheries.ers.fa.entities.FluxPartyEntity in project UVMS-ActivityModule-APP by UnionVMS.

the class MapperUtil method getFluxPartyEntity.

public static FluxPartyEntity getFluxPartyEntity() {
    FluxPartyEntity fluxPartyEntity = new FluxPartyEntity();
    fluxPartyEntity.setFluxPartyName("Flux party Name 1");
    fluxPartyEntity.setNameLanguageId("Flux party name language id 1");
    FluxPartyIdentifierEntity entity = new FluxPartyIdentifierEntity();
    entity.setFluxPartyIdentifierId("Flux party Id 1");
    entity.setFluxPartyIdentifierSchemeId("Flux Scheme Id 1");
    fluxPartyEntity.setFluxPartyIdentifiers(new HashSet<FluxPartyIdentifierEntity>(Arrays.asList(entity)));
    return fluxPartyEntity;
}
Also used : FluxPartyEntity(eu.europa.ec.fisheries.ers.fa.entities.FluxPartyEntity) FluxPartyIdentifierEntity(eu.europa.ec.fisheries.ers.fa.entities.FluxPartyIdentifierEntity)

Example 3 with FluxPartyEntity

use of eu.europa.ec.fisheries.ers.fa.entities.FluxPartyEntity in project UVMS-ActivityModule-APP by UnionVMS.

the class BaseMapper method getFluxPartyEntity.

public static FluxPartyEntity getFluxPartyEntity(FLUXParty fluxParty, FluxReportDocumentEntity fluxReportDocumentEntity) {
    if (fluxParty == null) {
        return null;
    }
    FluxPartyEntity fluxPartyEntity = FluxPartyMapper.INSTANCE.mapToFluxPartyEntity(fluxParty);
    fluxPartyEntity.setFluxReportDocument(fluxReportDocumentEntity);
    return fluxPartyEntity;
}
Also used : FluxPartyEntity(eu.europa.ec.fisheries.ers.fa.entities.FluxPartyEntity)

Aggregations

FluxPartyEntity (eu.europa.ec.fisheries.ers.fa.entities.FluxPartyEntity)3 FluxPartyIdentifierEntity (eu.europa.ec.fisheries.ers.fa.entities.FluxPartyIdentifierEntity)2 FluxReportDocumentEntity (eu.europa.ec.fisheries.ers.fa.entities.FluxReportDocumentEntity)1 FluxReportIdentifierEntity (eu.europa.ec.fisheries.ers.fa.entities.FluxReportIdentifierEntity)1