aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-10-04 14:32:41 +0200
committerChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-10-04 14:32:41 +0200
commitb4890b8ba2db283c662268a4f14a788c702b54e5 (patch)
treef17111384c96bb351ecdc6cf028eb6335416d125 /src/main
parentff47866920e7c51a824f6e98c40d8fd4ca380940 (diff)
downloadmoa-zs-b4890b8ba2db283c662268a4f14a788c702b54e5.tar.gz
moa-zs-b4890b8ba2db283c662268a4f14a788c702b54e5.tar.bz2
moa-zs-b4890b8ba2db283c662268a4f14a788c702b54e5.zip
Add Validation for TNVZ QueryPersonRequest
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/at/gv/egiz/moazs/preprocess/MzsDeliveryRequestValidator.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/at/gv/egiz/moazs/preprocess/MzsDeliveryRequestValidator.java b/src/main/java/at/gv/egiz/moazs/preprocess/MzsDeliveryRequestValidator.java
index 061bbdd..af8b34c 100644
--- a/src/main/java/at/gv/egiz/moazs/preprocess/MzsDeliveryRequestValidator.java
+++ b/src/main/java/at/gv/egiz/moazs/preprocess/MzsDeliveryRequestValidator.java
@@ -64,6 +64,12 @@ public class MzsDeliveryRequestValidator {
if (request.getSender().getCorporateBody() == null)
throw mzse(MZS_DELIVERY_REQUEST, MZS_DELIVERY_REQUEST + "/Sender/CorporateBody is missing.");
+
+ if (request.getSender().getCorporateBody().getIdentification() == null
+ || request.getSender().getCorporateBody().getIdentification().size() < 1) {
+ throw mzse(MZS_DELIVERY_REQUEST, MZS_DELIVERY_REQUEST + "/Sender/CorporateBody/Identification is missing.");
+ }
+
}
}