Search in sources :

Example 6 with SubscriptionDataCriteria

use of eu.europa.ec.fisheries.wsdl.subscription.module.SubscriptionDataCriteria in project UVMS-ActivityModule-APP by UnionVMS.

the class SubscriptionMapper method mapFluxPartyToSenderSubscriptionCriteria.

private static List<SubscriptionDataCriteria> mapFluxPartyToSenderSubscriptionCriteria(FLUXParty party) {
    List<SubscriptionDataCriteria> dataCriteriaList = new ArrayList<>();
    List<IDType> organisationIds = party.getIDS();
    for (IDType organisationId : organisationIds) {
        if ("FLUX_GP_PARTY".equals(organisationId.getSchemeID())) {
            String value = organisationId.getValue();
            dataCriteriaList.add(createCriteria(SENDER, ORGANISATION, SCHEME_ID, value));
        }
    }
    return dataCriteriaList;
}
Also used : ArrayList(java.util.ArrayList) SubscriptionDataCriteria(eu.europa.ec.fisheries.wsdl.subscription.module.SubscriptionDataCriteria) IDType(un.unece.uncefact.data.standard.unqualifieddatatype._20.IDType)

Aggregations

SubscriptionDataCriteria (eu.europa.ec.fisheries.wsdl.subscription.module.SubscriptionDataCriteria)6 ArrayList (java.util.ArrayList)3 IDType (un.unece.uncefact.data.standard.unqualifieddatatype._20.IDType)2 FaReportDocumentEntity (eu.europa.ec.fisheries.ers.fa.entities.FaReportDocumentEntity)1 ActivityEntityToModelMapper (eu.europa.ec.fisheries.ers.service.mapper.ActivityEntityToModelMapper)1 SubCriteriaType (eu.europa.ec.fisheries.wsdl.subscription.module.SubCriteriaType)1 SubscriptionDataRequest (eu.europa.ec.fisheries.wsdl.subscription.module.SubscriptionDataRequest)1 Consumes (javax.ws.rs.Consumes)1 POST (javax.ws.rs.POST)1 Produces (javax.ws.rs.Produces)1 FAQueryParameter (un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.FAQueryParameter)1 CodeType (un.unece.uncefact.data.standard.unqualifieddatatype._20.CodeType)1