You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@causeway.apache.org by da...@apache.org on 2023/10/18 09:21:35 UTC

[causeway] 01/02: CAUSEWAY-3636: initial scaffolding

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

danhaywood pushed a commit to branch CAUSEWAY-3636
in repository https://gitbox.apache.org/repos/asf/causeway.git

commit 083474e470a2961d18ded286fa9387d71ee44b83
Author: danhaywood <da...@haywood-associates.co.uk>
AuthorDate: Wed Oct 18 07:12:20 2023 +0100

    CAUSEWAY-3636: initial scaffolding
---
 bom/pom.xml                                        | 18 +++-
 extensions/core/layoutgithub/adoc/antora.yml       | 19 +++++
 .../adoc/modules/layoutgithub/nav.adoc             |  4 +
 .../adoc/modules/layoutgithub/pages/about.adoc     | 98 ++++++++++++++++++++++
 .../modules/layoutgithub/partials/module-nav.adoc  |  4 +
 extensions/core/layoutgithub/gridloader/pom.xml    | 57 +++++++++++++
 .../CausewayModuleExtLayoutGithubGridLoader.java   | 42 ++++++++++
 .../gridloader/menu/GridLoaderMenu.java            | 78 +++++++++++++++++
 extensions/core/layoutgithub/pom.xml               | 45 ++++++++++
 extensions/pom.xml                                 |  1 +
 .../CausewayExtLayoutGithubRoleAndPermissions.java | 51 +++++++++++
 ...ewayExtSecmanRegularUserRoleAndPermissions.java |  5 ++
 .../scripts/SeedUsersAndRolesFixtureScript.java    |  3 +
 13 files changed, 424 insertions(+), 1 deletion(-)

diff --git a/bom/pom.xml b/bom/pom.xml
index 2c2599477b..d8e944f725 100644
--- a/bom/pom.xml
+++ b/bom/pom.xml
@@ -934,7 +934,23 @@ It is therefore a copy of org.apache:apache, with customisations clearly identif
 				<scope>compile</scope>
 			</dependency>
 
-			<!-- org.apache.causeway.extensions (audittrail) -->
+            <!-- org.apache.causeway.extensions (layoutgithub) -->
+            <dependency>
+                <groupId>org.apache.causeway.extensions</groupId>
+                <artifactId>causeway-extensions-layoutgithub</artifactId>
+                <version>2.0.0-SNAPSHOT</version>
+                <type>pom</type>
+                <scope>compile</scope>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.causeway.extensions</groupId>
+                <artifactId>causeway-extensions-layoutgithub-gridloader</artifactId>
+                <version>2.0.0-SNAPSHOT</version>
+                <type>jar</type>
+                <scope>compile</scope>
+            </dependency>
+
+            <!-- org.apache.causeway.extensions (audittrail) -->
 			<dependency>
 				<groupId>org.apache.causeway.extensions</groupId>
 				<artifactId>causeway-extensions-audittrail</artifactId>
diff --git a/extensions/core/layoutgithub/adoc/antora.yml b/extensions/core/layoutgithub/adoc/antora.yml
new file mode 100644
index 0000000000..448d819e20
--- /dev/null
+++ b/extensions/core/layoutgithub/adoc/antora.yml
@@ -0,0 +1,19 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+name: userguide
+version: latest
diff --git a/extensions/core/layoutgithub/adoc/modules/layoutgithub/nav.adoc b/extensions/core/layoutgithub/adoc/modules/layoutgithub/nav.adoc
new file mode 100644
index 0000000000..35b7262129
--- /dev/null
+++ b/extensions/core/layoutgithub/adoc/modules/layoutgithub/nav.adoc
@@ -0,0 +1,4 @@
+
+:Notice: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at. http://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law or ag [...]
+
+include::userguide:ROOT:partial$component-nav.adoc[]
diff --git a/extensions/core/layoutgithub/adoc/modules/layoutgithub/pages/about.adoc b/extensions/core/layoutgithub/adoc/modules/layoutgithub/pages/about.adoc
new file mode 100644
index 0000000000..80b9b5e6d3
--- /dev/null
+++ b/extensions/core/layoutgithub/adoc/modules/layoutgithub/pages/about.adoc
@@ -0,0 +1,98 @@
+= Layout from GitHub
+
+:Notice: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at. http://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law or ag [...]
+
+The _LayoutGitHub_ module allows layouts to be read dynamically from a github source repository, by providing an implementation of xref:refguide:applib:index/services/grid/GridLoaderService.adoc[].
+
+It is intended as a development tool to allow layouts to be updated dynamically in an application running on an app server or in a container.
+
+
+== Setup
+
+=== Dependency Management
+
+[source,xml,subs="attributes+"]
+.pom.xml
+----
+<dependencyManagement>
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.causeway.extensions</groupId>
+            <artifactId>causeway-extensions-layoutgithub</artifactId>
+            <scope>import</scope>
+            <type>pom</type>
+            <version>{page-causewayprev}</version>
+        </dependency>
+    </dependencies>
+</dependencyManagement>
+----
+
+[#dependencies]
+=== Dependencies
+
+In the webapp module of your application, add the following dependency:
+
+[source,xml]
+.pom.xml
+----
+<dependencies>
+    <dependency>
+        <groupId>org.apache.causeway.extensions</groupId>
+        <artifactId>causeway-extensions-layoutgithub-gridloader</artifactId>
+        <version>{page-causewayprev}</version>
+    </dependency>
+</dependencies>
+----
+
+
+[#appmanifest]
+=== AppManifest
+
+In your application's `AppManifest` (top-level Spring `@Configuration` used to bootstrap the app), import the `CausewayModuleExtLayoutGitHubGridLoader` module.
+
+[source,java]
+.AppManifest.java
+----
+@Configuration
+@Import({
+        ...
+        CausewayModuleExtLayoutGitHubGridLoader.class,
+        ...
+})
+public class AppManifest {
+}
+----
+
+[#menubar-layout-xml]
+=== menubar.layout.xml
+
+The extension provides its own menu.
+You can use `menubars.layout.xml` to arrange as you see fit, for example in the tertiary menu:
+
+[source,xml]
+.menubars.layout.xml
+----
+<mb:tertiary>
+    <mb:menu>
+        <mb:named/>
+        <mb:section>
+            <mb:named>Layouts</mb:named>
+            <mb:serviceAction objectType="causeway.ext.layoutgithub.gridloader.Menu" id="dynamicLayoutLoading"/>
+        </mb:section>
+    </mb:menu>
+    ...
+</mb:tertiary>
+----
+
+
+== Usage
+
+Once setup, the extension provides a "dynamicLayoutLoading" action for the end-user to click on.
+This returns a view model that allows the end-user to toggle dynamic loading on and off.
+
+
+
+== See also
+
+* xref:refguide:applib:index/services/grid/GridLoaderService.adoc[]
+
diff --git a/extensions/core/layoutgithub/adoc/modules/layoutgithub/partials/module-nav.adoc b/extensions/core/layoutgithub/adoc/modules/layoutgithub/partials/module-nav.adoc
new file mode 100644
index 0000000000..1453ff70bf
--- /dev/null
+++ b/extensions/core/layoutgithub/adoc/modules/layoutgithub/partials/module-nav.adoc
@@ -0,0 +1,4 @@
+
+** xref:userguide:layoutgithub:about.adoc[]
+
+
diff --git a/extensions/core/layoutgithub/gridloader/pom.xml b/extensions/core/layoutgithub/gridloader/pom.xml
new file mode 100644
index 0000000000..f7274a5afa
--- /dev/null
+++ b/extensions/core/layoutgithub/gridloader/pom.xml
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+         http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.causeway.extensions</groupId>
+        <artifactId>causeway-extensions-layoutgithub</artifactId>
+        <version>2.0.0-SNAPSHOT</version>
+    </parent>
+
+
+    <artifactId>causeway-extensions-layoutgithub-gridloader</artifactId>
+    <name>Apache Causeway Ext - LayoutGitHub GridLoader</name>
+
+    <description>
+        Allows layout.xml files to be dynamically loaded from a github repo.
+    </description>
+
+    <properties>
+        <jar-plugin.automaticModuleName>org.apache.causeway.extensions.layoutgithub.gridloader</jar-plugin.automaticModuleName>
+        <git-plugin.propertiesDir>org/apache/causeway/extensions/layoutgithub/gridloader</git-plugin.propertiesDir>
+    </properties>
+
+    <dependencies>
+		<dependency>
+			<groupId>org.apache.causeway.core</groupId>
+			<artifactId>causeway-core-metamodel</artifactId>
+		</dependency>
+        <dependency>
+			<groupId>org.apache.causeway.valuetypes</groupId>
+			<artifactId>causeway-valuetypes-asciidoc-applib</artifactId>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.causeway.valuetypes</groupId>
+			<artifactId>causeway-valuetypes-asciidoc-builder</artifactId>
+		</dependency>
+    </dependencies>
+
+</project>
diff --git a/extensions/core/layoutgithub/gridloader/src/main/java/org/apache/causeway/extensions/layoutgithub/gridloader/CausewayModuleExtLayoutGithubGridLoader.java b/extensions/core/layoutgithub/gridloader/src/main/java/org/apache/causeway/extensions/layoutgithub/gridloader/CausewayModuleExtLayoutGithubGridLoader.java
new file mode 100644
index 0000000000..5033592494
--- /dev/null
+++ b/extensions/core/layoutgithub/gridloader/src/main/java/org/apache/causeway/extensions/layoutgithub/gridloader/CausewayModuleExtLayoutGithubGridLoader.java
@@ -0,0 +1,42 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+package org.apache.causeway.extensions.layoutgithub.gridloader;
+
+import org.springframework.context.annotation.Configuration;
+import org.springframework.context.annotation.Import;
+
+import org.apache.causeway.applib.layout.menubars.Menu;
+import org.apache.causeway.extensions.layoutgithub.gridloader.menu.GridLoaderMenu;
+
+/**
+ * Adds the {@link Menu} with its auto-configured menu entries.
+ * @since 2.0 {@index}
+ */
+@Configuration
+@Import({
+    // menu providers
+    GridLoaderMenu.class,
+
+})
+// keep class-name in sync with CausewayExtSecmanRegularUserRoleAndPermissions
+public class CausewayModuleExtLayoutGithubGridLoader {
+
+    // keep in sync with CausewayExtLayoutGithubRoleAndPermissions.NAMESPACE
+    public static final String NAMESPACE = "causeway.ext.layoutGithub";
+}
diff --git a/extensions/core/layoutgithub/gridloader/src/main/java/org/apache/causeway/extensions/layoutgithub/gridloader/menu/GridLoaderMenu.java b/extensions/core/layoutgithub/gridloader/src/main/java/org/apache/causeway/extensions/layoutgithub/gridloader/menu/GridLoaderMenu.java
new file mode 100644
index 0000000000..b441d4adaf
--- /dev/null
+++ b/extensions/core/layoutgithub/gridloader/src/main/java/org/apache/causeway/extensions/layoutgithub/gridloader/menu/GridLoaderMenu.java
@@ -0,0 +1,78 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+package org.apache.causeway.extensions.layoutgithub.gridloader.menu;
+
+import javax.inject.Inject;
+import javax.inject.Named;
+
+import org.apache.causeway.applib.CausewayModuleApplib;
+import org.apache.causeway.applib.annotation.Action;
+import org.apache.causeway.applib.annotation.ActionLayout;
+import org.apache.causeway.applib.annotation.DomainService;
+import org.apache.causeway.applib.annotation.DomainServiceLayout;
+import org.apache.causeway.applib.annotation.MemberSupport;
+import org.apache.causeway.applib.annotation.NatureOfService;
+import org.apache.causeway.applib.annotation.PriorityPrecedence;
+import org.apache.causeway.applib.annotation.Publishing;
+import org.apache.causeway.applib.annotation.SemanticsOf;
+import org.apache.causeway.extensions.layoutgithub.gridloader.CausewayModuleExtLayoutGithubGridLoader;
+
+import lombok.RequiredArgsConstructor;
+
+/**
+ * Provides actions to managed the dynamic loading of layouts from a github source code repository.
+ * <p>
+ *
+ * @since 2.x {@index}
+ */
+@Named(CausewayModuleExtLayoutGithubGridLoader.NAMESPACE + ".GridLoaderMenu")
+@DomainService(nature = NatureOfService.VIEW)
+@DomainServiceLayout(
+        menuBar = DomainServiceLayout.MenuBar.TERTIARY
+)
+@javax.annotation.Priority(PriorityPrecedence.EARLY)
+@RequiredArgsConstructor(onConstructor_ = {@Inject})
+public class GridLoaderMenu {
+
+    public static abstract class ActionDomainEvent<T> extends CausewayModuleApplib.ActionDomainEvent<T> {}
+
+
+    /** Returns a view-model that represents the application's primary help page. */
+    @Action(
+            commandPublishing = Publishing.DISABLED,
+            domainEvent = dynamicLayoutLoading.ActionDomainEvent.class,
+            executionPublishing = Publishing.DISABLED,
+            semantics = SemanticsOf.NON_IDEMPOTENT //disable client-side caching
+    )
+    @ActionLayout(
+            cssClassFa = "fa-regular fa-circle-question",
+            named = "Dynamic Layout Loading",
+            sequence = "100"
+    )
+    public class dynamicLayoutLoading {
+
+        public class ActionDomainEvent extends GridLoaderMenu.ActionDomainEvent<dynamicLayoutLoading> {}
+
+        @MemberSupport public void act() {
+            throw new RuntimeException("Not yet implemented");
+        }
+
+    }
+
+}
diff --git a/extensions/core/layoutgithub/pom.xml b/extensions/core/layoutgithub/pom.xml
new file mode 100644
index 0000000000..f59473b95f
--- /dev/null
+++ b/extensions/core/layoutgithub/pom.xml
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+         http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+	<modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.causeway.extensions</groupId>
+        <artifactId>causeway-extensions</artifactId>
+        <version>2.0.0-SNAPSHOT</version>
+        <relativePath>../../pom.xml</relativePath>
+    </parent>
+
+    <artifactId>causeway-extensions-layoutgithub</artifactId>
+    <name>Apache Causeway Ext - LayoutGitHub</name>
+
+    <description>
+        Allows layouts to be dynamically loaded from a github repo.
+    </description>
+
+	<packaging>pom</packaging>
+
+	<modules>
+		<module>gridloader</module>
+	</modules>
+
+</project>
diff --git a/extensions/pom.xml b/extensions/pom.xml
index 7ee6f5a5b1..9c966bdf19 100644
--- a/extensions/pom.xml
+++ b/extensions/pom.xml
@@ -105,6 +105,7 @@
 		<module>core/executionoutbox</module>
 		<module>core/executionrepublisher</module>
 		<module>core/flyway</module>
+		<module>core/layoutgithub</module>
 
 		<module>security/audittrail</module>
 
diff --git a/extensions/security/secman/applib/src/main/java/org/apache/causeway/extensions/secman/applib/role/seed/CausewayExtLayoutGithubRoleAndPermissions.java b/extensions/security/secman/applib/src/main/java/org/apache/causeway/extensions/secman/applib/role/seed/CausewayExtLayoutGithubRoleAndPermissions.java
new file mode 100644
index 0000000000..cdbbc9c3d3
--- /dev/null
+++ b/extensions/security/secman/applib/src/main/java/org/apache/causeway/extensions/secman/applib/role/seed/CausewayExtLayoutGithubRoleAndPermissions.java
@@ -0,0 +1,51 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+package org.apache.causeway.extensions.secman.applib.role.seed;
+
+import org.apache.causeway.applib.services.appfeat.ApplicationFeatureId;
+import org.apache.causeway.commons.collections.Can;
+import org.apache.causeway.extensions.secman.applib.permission.dom.ApplicationPermissionMode;
+import org.apache.causeway.extensions.secman.applib.permission.dom.ApplicationPermissionRule;
+import org.apache.causeway.extensions.secman.applib.role.fixtures.AbstractRoleAndPermissionsFixtureScript;
+
+/**
+ * Sets up a role with access to the menu actions contributed by the <i>LayoutGithub</i> extension.
+ *
+ * @since 2.0 {@index}
+ */
+public class CausewayExtLayoutGithubRoleAndPermissions extends AbstractRoleAndPermissionsFixtureScript {
+
+    public static final String NAMESPACE = "causeway.ext.layoutGithub";
+
+    public static final String ROLE_NAME = NAMESPACE.replace(".","-");
+
+    public CausewayExtLayoutGithubRoleAndPermissions() {
+        super(ROLE_NAME, "Access to dynamic layout loading");
+    }
+
+    @Override
+    protected void execute(final ExecutionContext executionContext) {
+        newPermissions(
+                ApplicationPermissionRule.ALLOW,
+                ApplicationPermissionMode.CHANGING,
+                Can.ofSingleton(
+                        ApplicationFeatureId.newNamespace(NAMESPACE)));
+
+    }
+}
diff --git a/extensions/security/secman/applib/src/main/java/org/apache/causeway/extensions/secman/applib/role/seed/CausewayExtSecmanRegularUserRoleAndPermissions.java b/extensions/security/secman/applib/src/main/java/org/apache/causeway/extensions/secman/applib/role/seed/CausewayExtSecmanRegularUserRoleAndPermissions.java
index 11cdb79308..34817cd4f7 100644
--- a/extensions/security/secman/applib/src/main/java/org/apache/causeway/extensions/secman/applib/role/seed/CausewayExtSecmanRegularUserRoleAndPermissions.java
+++ b/extensions/security/secman/applib/src/main/java/org/apache/causeway/extensions/secman/applib/role/seed/CausewayExtSecmanRegularUserRoleAndPermissions.java
@@ -103,6 +103,11 @@ public class CausewayExtSecmanRegularUserRoleAndPermissions extends AbstractRole
                 // optionally allow access to documentation menu and pages, based on module presence
                 env.getIocContainer().containsBean("org.apache.causeway.extensions.docgen.help.CausewayModuleExtDocgenHelp")
                     ? ApplicationFeatureId.newNamespace(CausewayExtDocgenRoleAndPermissions.NAMESPACE)
+                    : null,
+
+                // optionally allow access to layout menu and pages, based on module presence
+                env.getIocContainer().containsBean("org.apache.causeway.extensions.layoutgithub.gridloader.CausewayModuleExtLayoutGithubGridLoader")
+                    ? ApplicationFeatureId.newNamespace(CausewayExtLayoutGithubRoleAndPermissions.NAMESPACE)
                     : null
         );
 
diff --git a/extensions/security/secman/applib/src/main/java/org/apache/causeway/extensions/secman/applib/seed/scripts/SeedUsersAndRolesFixtureScript.java b/extensions/security/secman/applib/src/main/java/org/apache/causeway/extensions/secman/applib/seed/scripts/SeedUsersAndRolesFixtureScript.java
index e76961d5cc..cf2909b02b 100644
--- a/extensions/security/secman/applib/src/main/java/org/apache/causeway/extensions/secman/applib/seed/scripts/SeedUsersAndRolesFixtureScript.java
+++ b/extensions/security/secman/applib/src/main/java/org/apache/causeway/extensions/secman/applib/seed/scripts/SeedUsersAndRolesFixtureScript.java
@@ -23,6 +23,8 @@ import java.util.function.Supplier;
 
 import javax.inject.Inject;
 
+import org.apache.causeway.extensions.secman.applib.role.seed.CausewayExtLayoutGithubRoleAndPermissions;
+
 import org.springframework.lang.Nullable;
 
 import org.apache.causeway.applib.services.appfeat.ApplicationFeatureId;
@@ -123,6 +125,7 @@ public class SeedUsersAndRolesFixtureScript extends FixtureScript {
                 new CausewayExtDocgenRoleAndPermissions(),
                 new CausewayExtExecutionLogRoleAndPermissions(),
                 new CausewayExtExecutionOutboxRoleAndPermissions(),
+                new CausewayExtLayoutGithubRoleAndPermissions(),
                 new CausewayExtSessionLogRoleAndPermissions(),
                 new CausewayExtH2ConsoleRoleAndPermissions(),
                 new CausewayViewerRestfulObjectsSwaggerRoleAndPermissions(),