Class AdminLayoutFactory

java.lang.Object
ai.mindconnect.adminui.ui.AdminLayoutFactory

@Component public class AdminLayoutFactory extends Object
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 Details

    • AdminLayoutFactory

      public AdminLayoutFactory(@Value("${mindconnect.auth.enabled:false}") boolean authEnabled)
  • Method Details

    • current

      public AdminLayout current()
      Layout for the user currently in the SecurityContextHolder.