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/05/14 08:05:55 UTC

[isis-app-helloworld] 05/07: updates 'associateWith' change

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

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

commit 1c546e7c67db96ae66548e92b54bd964c762d190
Author: danhaywood <da...@haywood-associates.co.uk>
AuthorDate: Fri May 14 06:59:40 2021 +0100

    updates 'associateWith' change
---
 .../java/domainapp/modules/hello/dom/hwo/HelloWorldObject.java | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/main/java/domainapp/modules/hello/dom/hwo/HelloWorldObject.java b/src/main/java/domainapp/modules/hello/dom/hwo/HelloWorldObject.java
index b05c13c..8679280 100644
--- a/src/main/java/domainapp/modules/hello/dom/hwo/HelloWorldObject.java
+++ b/src/main/java/domainapp/modules/hello/dom/hwo/HelloWorldObject.java
@@ -18,7 +18,7 @@ import org.apache.isis.applib.annotation.Where;
 import org.apache.isis.applib.services.message.MessageService;
 import org.apache.isis.applib.services.repository.RepositoryService;
 import org.apache.isis.applib.services.title.TitleService;
-import org.apache.isis.extensions.secman.api.tenancy.HasAtPath;
+import org.apache.isis.extensions.secman.api.tenancy.dom.HasAtPath;
 
 import domainapp.modules.hello.types.AtPath;
 import domainapp.modules.hello.types.Name;
@@ -82,11 +82,13 @@ public class HelloWorldObject implements Comparable<HelloWorldObject>, HasAtPath
     }
 
     @Action(
-            semantics = SemanticsOf.IDEMPOTENT,
             executionPublishing = Publishing.ENABLED,
-            associateWith = "name"
+            semantics = SemanticsOf.IDEMPOTENT
+    )
+    @ActionLayout(
+            associateWith = "name",
+            describedAs = "Updates the object's name"
     )
-    @ActionLayout(describedAs = "Updates the object's name")
     public HelloWorldObject updateName(
             @Name final String name) {
         setName(name);