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