diff options
author | Christof Rabensteiner <christof.rabensteiner@iaik.tugraz.at> | 2019-08-30 13:36:20 +0200 |
---|---|---|
committer | Christof Rabensteiner <christof.rabensteiner@iaik.tugraz.at> | 2019-08-30 13:36:20 +0200 |
commit | c048d2ee787197b963dc1e8fa9297cf1cd3a4307 (patch) | |
tree | da6e35c3876c2c6b0cb7a42ae00bfef29a2525a6 /src/main/java/at/gv/egiz/moazs/client | |
parent | fce637395dc821611f33b54aeaefa26e0b2c4175 (diff) | |
download | moa-zs-c048d2ee787197b963dc1e8fa9297cf1cd3a4307.tar.gz moa-zs-c048d2ee787197b963dc1e8fa9297cf1cd3a4307.tar.bz2 moa-zs-c048d2ee787197b963dc1e8fa9297cf1cd3a4307.zip |
Fix Tnvz Typo
- sed 's/tvnz/tnvz/'
Diffstat (limited to 'src/main/java/at/gv/egiz/moazs/client')
-rw-r--r-- | src/main/java/at/gv/egiz/moazs/client/TnvzHelper.java | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/main/java/at/gv/egiz/moazs/client/TnvzHelper.java b/src/main/java/at/gv/egiz/moazs/client/TnvzHelper.java index ded83ff..5cc4954 100644 --- a/src/main/java/at/gv/egiz/moazs/client/TnvzHelper.java +++ b/src/main/java/at/gv/egiz/moazs/client/TnvzHelper.java @@ -53,27 +53,27 @@ public class TnvzHelper { /** * Performs all tasks related to making a request to the tnvz service: * Derives a tnvz:QueryPersonRequest from the {@code mzsRequest}, sends the QueryPersonRequest to - * {@code tvnzPort}, validates the tnvz's response and extracts the {@code Identification} Element. + * {@code tnvzPort}, validates the tnvz's response and extracts the {@code Identification} Element. * @param mzsRequest Data source for the QueryPersonRequest - * @param tvnzPort Client for communicating with the tnvz service + * @param tnvzPort Client for communicating with the tnvz service * @throws MoaZSException in case of an error. * @return */ public IdentificationType performQueryPersonRequest(DeliveryRequestType mzsRequest, - TNVZServicePort tvnzPort) { + TNVZServicePort tnvzPort) { log.info("Perform Query Person Request for mzs:DeliveryRequest with AppDeliveryID={}", mzsRequest.getMetaData().getAppDeliveryID()); - var tvnzQuery = buildQuery(mzsRequest); - var tvnzResponse = tvnzPort.queryPerson(tvnzQuery); - verifyResponse(tvnzResponse); + var tnvzQuery = buildQuery(mzsRequest); + var tnvzResponse = tnvzPort.queryPerson(tnvzQuery); + verifyResponse(tnvzResponse); - var tvnzResult = getResult(tvnzResponse); + var tnvzResult = getResult(tnvzResponse); var typesInRequest = extractListOfMimemtypesIn(mzsRequest); - checkMimetypes(tvnzResult, typesInRequest); + checkMimetypes(tnvzResult, typesInRequest); - return tvnzResult.getSuccess().getIdentification(); + return tnvzResult.getSuccess().getIdentification(); } private QueryPersonRequest buildQuery(DeliveryRequestType mzsRequest) { @@ -173,14 +173,14 @@ public class TnvzHelper { .collect(toSet()); } - private void verifyResponse(QueryPersonResponse tvnzResponse) { + private void verifyResponse(QueryPersonResponse tnvzResponse) { - var error = tvnzResponse.getError(); + var error = tnvzResponse.getError(); if (error != null) { throw MoaZSException.moaZSException(error.getText(), error.getCode()); } - var results = tvnzResponse.getQueryResultList().getQueryResult(); + var results = tnvzResponse.getQueryResultList().getQueryResult(); if (results.isEmpty()) { throw MoaZSException.moaZSException(MZS_NO_TNVZ_PERSON_QUERY_RESULTS_ERROR_MSG, MoaZSException.ERROR_MZS_NO_TNVZ_PERSON_QUERY_RESULTS); @@ -196,8 +196,8 @@ public class TnvzHelper { } } - private PersonResultType getResult(QueryPersonResponse tvnzResponse) { - return tvnzResponse.getQueryResultList().getQueryResult().get(0); + private PersonResultType getResult(QueryPersonResponse tnvzResponse) { + return tnvzResponse.getQueryResultList().getQueryResult().get(0); } private void checkMimetypes(PersonResultType tnvzResult, Set<String> typesInRequest) { |