Package io.micronaut.controlpanel.core
Class DefaultControlPanelRepository
java.lang.Object
io.micronaut.controlpanel.core.DefaultControlPanelRepository
- All Implemented Interfaces:
ControlPanelRepository
@Singleton
public class DefaultControlPanelRepository
extends Object
implements ControlPanelRepository
Default implementation of
ControlPanelRepository
that gets the control panels injected
as beans.- Since:
- 1.0.0
- Author:
- Álvaro Sánchez-Mariscal
-
Constructor Summary
ConstructorDescriptionDefaultControlPanelRepository
(List<ControlPanel> controlPanels) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionfindAll()
findAllByCategory
(String categoryId) findByName
(String name) findCategoryById
(String categoryId)
-
Constructor Details
-
DefaultControlPanelRepository
Default constructor.- Parameters:
controlPanels
- the control panels available in the application context.
-
-
Method Details
-
findAll
- Specified by:
findAll
in interfaceControlPanelRepository
- Returns:
- all the available
ControlPanel
instances.
-
findAllByCategory
- Specified by:
findAllByCategory
in interfaceControlPanelRepository
- Parameters:
categoryId
- the category id- Returns:
- all the available
ControlPanel
instances for the given category.
-
findByName
- Specified by:
findByName
in interfaceControlPanelRepository
- Parameters:
name
- the name of theControlPanel
instance to find.- Returns:
- the
ControlPanel
instance with the given name.
-
findAllCategories
- Specified by:
findAllCategories
in interfaceControlPanelRepository
- Returns:
- all the available
ControlPanel.Category
instances.
-
findCategoryById
- Specified by:
findCategoryById
in interfaceControlPanelRepository
- Parameters:
categoryId
- the category id- Returns:
- the
ControlPanel.Category
instance with the given id.
-