From fefde1ad7592412007b9efed2b62cb403d3f6cac Mon Sep 17 00:00:00 2001 From: Christof Rabensteiner Date: Mon, 6 May 2019 11:01:59 +0200 Subject: WIP tnvz integration --- src/main/java/at/gv/egiz/moazs/TnvzClient.java | 3 ++- .../java/at/gv/egiz/moazs/pipeline/SameThreadDeliveryPipeline.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src/main') diff --git a/src/main/java/at/gv/egiz/moazs/TnvzClient.java b/src/main/java/at/gv/egiz/moazs/TnvzClient.java index e892033..7b4e3f6 100644 --- a/src/main/java/at/gv/egiz/moazs/TnvzClient.java +++ b/src/main/java/at/gv/egiz/moazs/TnvzClient.java @@ -1,12 +1,13 @@ package at.gv.egiz.moazs; +import at.gv.zustellung.app2mzs.xsd.DeliveryRequestType.Sender; import at.gv.zustellung.app2mzs.xsd.DeliveryRequestType.Receiver; import org.springframework.stereotype.Component; @Component public class TnvzClient { - public boolean isAddressable(Receiver receiver) { + public boolean queryPerson(Sender sender, Receiver receiver) { return true; } diff --git a/src/main/java/at/gv/egiz/moazs/pipeline/SameThreadDeliveryPipeline.java b/src/main/java/at/gv/egiz/moazs/pipeline/SameThreadDeliveryPipeline.java index ef591ea..b309434 100644 --- a/src/main/java/at/gv/egiz/moazs/pipeline/SameThreadDeliveryPipeline.java +++ b/src/main/java/at/gv/egiz/moazs/pipeline/SameThreadDeliveryPipeline.java @@ -31,7 +31,7 @@ public class SameThreadDeliveryPipeline implements DeliveryPipeline { private void checkAddressability(DeliveryRequestType request) { if (request.getConfig().isPerformQueryPersonRequest()) { - if (!tnvzClient.isAddressable(request.getReceiver())) { + if (!tnvzClient.queryPerson(request.getReceiver())) { throw new RuntimeException("Receiver is not addressable."); } } -- cgit v1.2.3