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;
}
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;
}
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;
}
Aggregations