aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/gv/egiz/moazs
diff options
context:
space:
mode:
authorChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-08-30 13:36:20 +0200
committerChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-08-30 13:36:20 +0200
commitc048d2ee787197b963dc1e8fa9297cf1cd3a4307 (patch)
treeda6e35c3876c2c6b0cb7a42ae00bfef29a2525a6 /src/main/java/at/gv/egiz/moazs
parentfce637395dc821611f33b54aeaefa26e0b2c4175 (diff)
downloadmoa-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')
-rw-r--r--src/main/java/at/gv/egiz/moazs/backend/DeliveryRequestBackend.java4
-rw-r--r--src/main/java/at/gv/egiz/moazs/client/TnvzHelper.java28
2 files changed, 16 insertions, 16 deletions
diff --git a/src/main/java/at/gv/egiz/moazs/backend/DeliveryRequestBackend.java b/src/main/java/at/gv/egiz/moazs/backend/DeliveryRequestBackend.java
index c4207f0..e08b335 100644
--- a/src/main/java/at/gv/egiz/moazs/backend/DeliveryRequestBackend.java
+++ b/src/main/java/at/gv/egiz/moazs/backend/DeliveryRequestBackend.java
@@ -134,8 +134,8 @@ public class DeliveryRequestBackend implements Consumer<String> {
if (mzsRequest.getConfig().isPerformQueryPersonRequest()) {
log.trace("Perform QueryPersonRequest. ");
var tnvzClientParams = mzsRequest.getConfig().getTNVZClient();
- TNVZServicePort tvnzPort = clientFactory.create(tnvzClientParams, TNVZServicePort.class);
- var identification = tnvzHelper.performQueryPersonRequest(mzsRequest, tvnzPort);
+ TNVZServicePort tnvzPort = clientFactory.create(tnvzClientParams, TNVZServicePort.class);
+ var identification = tnvzHelper.performQueryPersonRequest(mzsRequest, tnvzPort);
return converter.convert(mzsRequest, identification);
} else {
return converter.convert(mzsRequest);
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) {