You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2021/06/09 12:43:17 UTC

[isis] 01/09: ISIS-2727: just renames a var in SudoService

This is an automated email from the ASF dual-hosted git repository.

danhaywood pushed a commit to branch ISIS-2727
in repository https://gitbox.apache.org/repos/asf/isis.git

commit 277fc2d6c8e1209a023a87e61792bc182754e388
Author: danhaywood <da...@haywood-associates.co.uk>
AuthorDate: Wed Jun 9 12:11:47 2021 +0100

    ISIS-2727: just renames a var in SudoService
---
 .../isis/core/runtimeservices/sudo/SudoServiceDefault.java | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/core/runtimeservices/src/main/java/org/apache/isis/core/runtimeservices/sudo/SudoServiceDefault.java b/core/runtimeservices/src/main/java/org/apache/isis/core/runtimeservices/sudo/SudoServiceDefault.java
index 2ca9d9d..8fe1a86 100644
--- a/core/runtimeservices/src/main/java/org/apache/isis/core/runtimeservices/sudo/SudoServiceDefault.java
+++ b/core/runtimeservices/src/main/java/org/apache/isis/core/runtimeservices/sudo/SudoServiceDefault.java
@@ -73,19 +73,19 @@ public class SudoServiceDefault implements SudoService {
             final @NonNull Callable<T> callable) {
 
         val currentInteractionLayer = interactionTracker.currentInteractionLayerElseFail();
-        val currentExecutionContext = currentInteractionLayer.getInteractionContext();
-        val sudoExecutionContext = sudoMapper.apply(currentExecutionContext);
+        val currentInteractionContext = currentInteractionLayer.getInteractionContext();
+        val sudoInteractionContext = sudoMapper.apply(currentInteractionContext);
 
-        val sodoSession = currentInteractionLayer
+        val sudoAuthentication = currentInteractionLayer
                 .getAuthentication()
-                .withInteractionContext(sudoExecutionContext);
+                .withInteractionContext(sudoInteractionContext);
 
         try {
-            beforeCall(currentExecutionContext, sudoExecutionContext);
+            beforeCall(currentInteractionContext, sudoInteractionContext);
 
-            return interactionFactory.callAuthenticated(sodoSession, callable);
+            return interactionFactory.callAuthenticated(sudoAuthentication, callable);
         } finally {
-            afterCall(sudoExecutionContext, currentExecutionContext);
+            afterCall(sudoInteractionContext, currentInteractionContext);
         }
     }