Class ControlPanelController

java.lang.Object
io.micronaut.controlpanel.ui.ControlPanelController
All Implemented Interfaces:
ControlPanelApi

@Controller("${micronaut.control-panel.path:/control-panel}") @ExecuteOn("blocking") public class ControlPanelController extends Object implements ControlPanelApi
Control panel web controller to render the UI.
Since:
1.0.0
Author:
Álvaro Sánchez-Mariscal
  • Constructor Details

    • ControlPanelController

      public ControlPanelController(ControlPanelRepository repository, io.micronaut.context.BeanContext beanContext, @Nullable @Nullable io.micronaut.management.endpoint.refresh.RefreshEndpoint refreshEndpoint, @Nullable @Nullable io.micronaut.management.endpoint.stop.ServerStopEndpoint stopEndpoint)
  • Method Details

    • index

      @View("layout") public Model index()
      Description copied from interface: ControlPanelApi
      Renders the index view.
      Specified by:
      index in interface ControlPanelApi
      Returns:
      the model
    • byCategory

      @View("layout") public Model byCategory(String categoryId)
      Description copied from interface: ControlPanelApi
      Renders the category view.
      Specified by:
      byCategory in interface ControlPanelApi
      Parameters:
      categoryId - the category id.
      Returns:
      the model
    • detail

      @View("layout") public Model detail(String controlPanelName)
      Description copied from interface: ControlPanelApi
      Renders the control panel detailed view.
      Specified by:
      detail in interface ControlPanelApi
      Parameters:
      controlPanelName - the control panel name.
      Returns:
      the model