Class ObjectStorageControlPanel
java.lang.Object
io.micronaut.controlpanel.core.AbstractControlPanel<ObjectStorageControlPanel.Body>
io.micronaut.controlpanel.panels.objectstorage.ObjectStorageControlPanel
- All Implemented Interfaces:
ConfigurableControlPanel,ControlPanel<ObjectStorageControlPanel.Body>,io.micronaut.core.naming.Named,io.micronaut.core.order.Ordered,io.micronaut.core.util.Toggleable
@EachBean(io.micronaut.objectstorage.configuration.AbstractObjectStorageConfiguration.class)
public class ObjectStorageControlPanel
extends AbstractControlPanel<ObjectStorageControlPanel.Body>
A control panel for managing object storage.
This control panel provides a user interface for viewing and managing object storage entries.
It is configured using an
AbstractObjectStorageConfiguration instance.- Since:
- 1.10.0
- Author:
- Álvaro Sánchez-Mariscal
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordA record representing the body of this control panel, containing a list of object storage entries and metadata.Nested classes/interfaces inherited from interface io.micronaut.controlpanel.core.ControlPanel
ControlPanel.Category, ControlPanel.View -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class io.micronaut.controlpanel.core.AbstractControlPanel
configuration, controlPanelNameFields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionObjectStorageControlPanel(io.micronaut.objectstorage.ObjectStorageOperations<?, ?, ?> operations, io.micronaut.objectstorage.configuration.AbstractObjectStorageConfiguration objectStorageConfiguration, ControlPanelConfiguration configuration) -
Method Summary
Modifier and TypeMethodDescriptiongetBadge()Badge text to be displayed in the header of the card UI element.getBody()Used to render the body of the control panel.ControlPanel.Viewthat will be used to render the body of the control panel.The category of the control panel.ControlPanel.Viewthat will be used to render the body of the control panel when it has been selected.getIcon()Icon CSS class of the card UI element.getName()getTitle()The title is displayed in the header of the card UI element.Methods inherited from class io.micronaut.controlpanel.core.AbstractControlPanel
getOrder, isEnabled
-
Field Details
-
NAME
- See Also:
-
ENABLED_PROPERTY
- See Also:
-
DEFAULT_ICON_CLASS
- See Also:
-
BUCKET
- See Also:
-
-
Constructor Details
-
ObjectStorageControlPanel
public ObjectStorageControlPanel(@Parameter io.micronaut.objectstorage.ObjectStorageOperations<?, ?, ?> operations, @Parameter io.micronaut.objectstorage.configuration.AbstractObjectStorageConfiguration objectStorageConfiguration, @Named("object-storage") ControlPanelConfiguration configuration)
-
-
Method Details
-
getBody
Description copied from interface:ControlPanelUsed to render the body of the control panel.- Returns:
- the body of the control panel.
-
getTitle
Description copied from interface:ConfigurableControlPanelThe title is displayed in the header of the card UI element.- Specified by:
getTitlein interfaceConfigurableControlPanel- Overrides:
getTitlein classAbstractControlPanel<ObjectStorageControlPanel.Body>- Returns:
- the title of the control panel.
-
getName
- Specified by:
getNamein interfaceio.micronaut.core.naming.Named- Overrides:
getNamein classAbstractControlPanel<ObjectStorageControlPanel.Body>
-
getBodyView
Description copied from interface:ControlPanelControlPanel.Viewthat will be used to render the body of the control panel.- Returns:
- the view of the control panel.
-
getDetailedView
Description copied from interface:ControlPanelControlPanel.Viewthat will be used to render the body of the control panel when it has been selected.- Returns:
- the view of the control panel.
-
getBadge
Description copied from interface:ControlPanelBadge text to be displayed in the header of the card UI element.- Returns:
- the badge text of the control panel.
-
getIcon
Description copied from interface:ConfigurableControlPanelIcon CSS class of the card UI element.- Specified by:
getIconin interfaceConfigurableControlPanel- Overrides:
getIconin classAbstractControlPanel<ObjectStorageControlPanel.Body>- Returns:
- the icon class of the control panel.
-
getCategory
Description copied from interface:ControlPanelThe category of the control panel.- Returns:
- the category of the control panel.
-