diff options
author | Christof Rabensteiner <christof.rabensteiner@iaik.tugraz.at> | 2019-10-04 14:32:41 +0200 |
---|---|---|
committer | Christof Rabensteiner <christof.rabensteiner@iaik.tugraz.at> | 2019-10-04 14:32:41 +0200 |
commit | b4890b8ba2db283c662268a4f14a788c702b54e5 (patch) | |
tree | f17111384c96bb351ecdc6cf028eb6335416d125 /src/main | |
parent | ff47866920e7c51a824f6e98c40d8fd4ca380940 (diff) | |
download | moa-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.java | 6 |
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."); + } + } } |