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
ConstructorsConstructorDescriptionDefaultControlPanelRepository(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:
 findAllin interfaceControlPanelRepository- Returns:
 - all the available 
ControlPanelinstances. 
 - 
findAllByCategory
- Specified by:
 findAllByCategoryin interfaceControlPanelRepository- Parameters:
 categoryId- the category id- Returns:
 - all the available 
ControlPanelinstances for the given category. 
 - 
findByName
- Specified by:
 findByNamein interfaceControlPanelRepository- Parameters:
 name- the name of theControlPanelinstance to find.- Returns:
 - the 
ControlPanelinstance with the given name. 
 - 
findAllCategories
- Specified by:
 findAllCategoriesin interfaceControlPanelRepository- Returns:
 - all the available 
ControlPanel.Categoryinstances. 
 - 
findCategoryById
- Specified by:
 findCategoryByIdin interfaceControlPanelRepository- Parameters:
 categoryId- the category id- Returns:
 - the 
ControlPanel.Categoryinstance with the given id. 
 
 -