aboutsummaryrefslogtreecommitdiff
path: root/eidas_modules/authmodule-eIDAS-v2/src/main/java/at
diff options
context:
space:
mode:
authorAlexander Marsalek <amarsalek@iaik.tugraz.at>2021-01-12 16:10:10 +0100
committerAlexander Marsalek <amarsalek@iaik.tugraz.at>2021-01-12 16:10:10 +0100
commitc1b44dcd325e9e49ba38c384b9bfb981dca5a776 (patch)
treea985ef8dd44e6155bbd057d15ae6ee6ea5cc3b28 /eidas_modules/authmodule-eIDAS-v2/src/main/java/at
parentf74e02f9f0735ff9a1e897c5eba10f69ff720f8f (diff)
downloadNational_eIDAS_Gateway-c1b44dcd325e9e49ba38c384b9bfb981dca5a776.tar.gz
National_eIDAS_Gateway-c1b44dcd325e9e49ba38c384b9bfb981dca5a776.tar.bz2
National_eIDAS_Gateway-c1b44dcd325e9e49ba38c384b9bfb981dca5a776.zip
add task transitions
Diffstat (limited to 'eidas_modules/authmodule-eIDAS-v2/src/main/java/at')
-rw-r--r--eidas_modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/tasks/InitialSearchTask.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/eidas_modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/tasks/InitialSearchTask.java b/eidas_modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/tasks/InitialSearchTask.java
index a87be6c5..0812f55e 100644
--- a/eidas_modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/tasks/InitialSearchTask.java
+++ b/eidas_modules/authmodule-eIDAS-v2/src/main/java/at/asitplus/eidas/specific/modules/auth/eidas/v2/tasks/InitialSearchTask.java
@@ -73,6 +73,7 @@ public class InitialSearchTask extends AbstractAuthServletTask {
private IErnbClient ernbClient;
private IZmrClient zmrClient;
+ private ExecutionContext executionContext;
/*
* (non-Javadoc)
@@ -86,6 +87,7 @@ public class InitialSearchTask extends AbstractAuthServletTask {
public void execute(ExecutionContext executionContext, HttpServletRequest request, HttpServletResponse response)
throws TaskExecutionException {
try {
+ this.executionContext = executionContext;
final AuthProcessDataWrapper authProcessData = pendingReq.getSessionData(AuthProcessDataWrapper.class);
final ILightResponse eidasResponse = authProcessData
.getGenericDataFromSession(Constants.DATA_FULL_EIDAS_RESPONSE, ILightResponse.class);
@@ -254,7 +256,12 @@ public class InitialSearchTask extends AbstractAuthServletTask {
ernbClient.searchWithMds(eidData.getGivenName(), eidData.getFamilyName(), eidData.getDateOfBirth());
mdsSearchResult.setResultsErnb(resultsErnb);
- log.debug("Automerge " + initialSearchResult + " with " + eidData + " " + mdsSearchResult);
+ if (mdsSearchResult.getResultCount() == 0) {
+ executionContext.put("TASK_CreateNewErnpEntryTask", true);
+ } else {
+ executionContext.put("TASK_GenerateGuiTask", true);
+ }
+
//TODO implement next phase and return correct value
return "TODO-Temporary-Endnode-105";
}