You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by ah...@apache.org on 2020/12/05 17:21:00 UTC

[isis] branch master updated: ISIS-2464: updates migration notes

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

ahuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git


The following commit(s) were added to refs/heads/master by this push:
     new aea4499  ISIS-2464: updates migration notes
aea4499 is described below

commit aea4499ddcb6419092291faf1acfd565ff96bedd
Author: Andi Huber <ah...@apache.org>
AuthorDate: Sat Dec 5 18:20:43 2020 +0100

    ISIS-2464: updates migration notes
---
 .../modules/ROOT/pages/2020/2.0.0-M5/mignotes.adoc | 49 ++++++++++++++++++++++
 .../adoc/modules/quartz/examples/DemoJob.java      |  5 ++-
 2 files changed, 53 insertions(+), 1 deletion(-)

diff --git a/antora/components/relnotes/modules/ROOT/pages/2020/2.0.0-M5/mignotes.adoc b/antora/components/relnotes/modules/ROOT/pages/2020/2.0.0-M5/mignotes.adoc
index ccff51b..fec17c8 100644
--- a/antora/components/relnotes/modules/ROOT/pages/2020/2.0.0-M5/mignotes.adoc
+++ b/antora/components/relnotes/modules/ROOT/pages/2020/2.0.0-M5/mignotes.adoc
@@ -180,6 +180,55 @@ PublisherDispatchServiceDefault -> ExecutionPublisherDefault & EntityChangesPubl
 CommandServiceInternal -> CommandPublisher
 ----
 
+== Changes to Applib and Services
+
+[cols="3m,3m", options="header"]
+
+|===
+
+| was
+| new
+
+| AuthenticationSession
+| Authentication (no longer holds MessageBroker or session attributes, is now immutable) 
+
+| AuthenticationSessionStrategy 
+| AuthenticationStrategy
+
+| AuthenticationSessionStrategyBasicAuth (*1*)  
+| AuthenticationStrategyBasicAuth 
+
+| AuthenticationSessionStrategyDefault (*1*) 
+| AuthenticationStrategyDefault
+
+| Clock (moved from applib module to fixture-applib module)
+| VirtualClock (introduced)
+
+| TestClock (removed)
+| use factories of VirtualClock.frozenTestClock() instead
+
+| IsisInteractionFactory
+| InteractionFactory
+
+| InteractionClosure
+| AuthenticationLayer
+
+| IsisInteractionTracker
+| InteractionTracker
+
+| MessageBroker is held by Authentication(Session)
+| MessageBroker is held by InteractionSession
+
+| UserMemento UserService.getUser();
+| *Optional*<UserMemento> UserService.getUser();
+
+| SudoService
+| redefined, see java doc for details
+
+|===
+
+<1> These might be in use with configuration files, check yours!
+
 == Deprecations
 
 .RepositoryService
diff --git a/extensions/core/quartz/adoc/modules/quartz/examples/DemoJob.java b/extensions/core/quartz/adoc/modules/quartz/examples/DemoJob.java
index ecb6346..13127e2 100644
--- a/extensions/core/quartz/adoc/modules/quartz/examples/DemoJob.java
+++ b/extensions/core/quartz/adoc/modules/quartz/examples/DemoJob.java
@@ -49,7 +49,10 @@ public class DemoJob implements Job {
 
     protected Authentication newAuthentication(JobExecutionContext context) {
         
-        val user = UserMemento.ofNameAndRoleNames("isisModuleExtQuartzDemoUser", Arrays.asList("isisModuleExtQuartzDemoRole")); 
+        val user = UserMemento.ofNameAndRoleNames(
+                "isisModuleExtQuartzDemoUser", 
+                Stream.of("isisModuleExtQuartzDemoRole")); 
+        
         return SimpleAuthentication.ofValid(user);
     }