Package ai.mindconnect.adminui.ui
Class AdminLayoutFactory
java.lang.Object
ai.mindconnect.adminui.ui.AdminLayoutFactory
Builds a per-request
AdminLayout from the current security context.
Controllers call current() and wrap their page:
layoutFactory.current().withLayout(page). This keeps the header
(brand, nav, user widget, optional logout) consistent across every page
without threading the OidcUser through page constructors.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncurrent()Layout for the user currently in theSecurityContextHolder.
-
Constructor Details
-
AdminLayoutFactory
public AdminLayoutFactory(@Value("${mindconnect.auth.enabled:false}") boolean authEnabled)
-
-
Method Details
-
current
Layout for the user currently in theSecurityContextHolder.
-