use of eu.europa.ec.fisheries.ers.service.exception.ActivityModuleException in project UVMS-ActivityModule-APP by UnionVMS.
the class ActivitySubscriptionPermissionChecker method checkPermissionForFaReport.
public SubscriptionPermissionResponse checkPermissionForFaReport(FLUXFAReportMessage faReport) throws ActivityModuleException {
SubscriptionDataRequest subscriptionDataRequest = SubscriptionMapper.mapToSubscriptionDataRequest(faReport);
String subscrPermissionRequest;
try {
subscrPermissionRequest = JAXBUtils.marshallJaxBObjectToString(subscriptionDataRequest);
} catch (JAXBException e) {
throw new ActivityModuleException("JAXBException while trying to unmarshall to SubscriptionDataRequest from Subscription Module!", e);
}
return getPermissionFromSubscription(subscrPermissionRequest, activityConsumerBean.getDestination());
}
Aggregations