Search in sources :

Example 1 with SubscriptionDataQuery

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

the class SubscriptionMapper method mapToSubscriptionDataRequest.

public static SubscriptionDataRequest mapToSubscriptionDataRequest(FLUXFAReportMessage fluxfaReportMessage) {
    SubscriptionDataRequest request = new SubscriptionDataRequest();
    request.setMethod(SubscriptionModuleMethod.MODULE_ACCESS_PERMISSION_REQUEST);
    SubscriptionDataQuery query = new SubscriptionDataQuery();
    query.setMessageType(MessageType.FLUX_FA_REPORT_MESSAGE);
    // TODO implement mapping
    request.setQuery(query);
    return request;
}
Also used : SubscriptionDataQuery(eu.europa.ec.fisheries.wsdl.subscription.module.SubscriptionDataQuery) SubscriptionDataRequest(eu.europa.ec.fisheries.wsdl.subscription.module.SubscriptionDataRequest)

Example 2 with SubscriptionDataQuery

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

the class SubscriptionMapper method mapToSubscriptionDataRequest.

public static SubscriptionDataRequest mapToSubscriptionDataRequest(FAQuery faQuery) {
    SubscriptionDataRequest request = new SubscriptionDataRequest();
    request.setMethod(SubscriptionModuleMethod.MODULE_ACCESS_PERMISSION_REQUEST);
    SubscriptionDataQuery query = new SubscriptionDataQuery();
    query.setMessageType(MessageType.FLUX_FA_QUERY_MESSAGE);
    query.getCriteria().addAll(mapFluxPartyToSenderSubscriptionCriteria(faQuery.getSubmitterFLUXParty()));
    query.getCriteria().addAll(mapFAQueryParametersToSubscriptionCriteria(faQuery.getSimpleFAQueryParameters()));
    query.getCriteria().addAll(mapDelimitedPeriodToFaQuerySubscriptionCriteria(faQuery.getSpecifiedDelimitedPeriod()));
    request.setQuery(query);
    return request;
}
Also used : SubscriptionDataQuery(eu.europa.ec.fisheries.wsdl.subscription.module.SubscriptionDataQuery) SubscriptionDataRequest(eu.europa.ec.fisheries.wsdl.subscription.module.SubscriptionDataRequest)

Aggregations

SubscriptionDataQuery (eu.europa.ec.fisheries.wsdl.subscription.module.SubscriptionDataQuery)2 SubscriptionDataRequest (eu.europa.ec.fisheries.wsdl.subscription.module.SubscriptionDataRequest)2