Package org.openhab.core.ui.components
Interface UIComponentRegistry
- All Superinterfaces:
Registry<RootUIComponent,String>
A namespace-specific
Registry for UI components.
It is normally instantiated for a specific namespace by the UIComponentRegistryFactory.- Author:
- Yannick Schaus - Initial contribution
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanisEditable(String uid) Checks whether the component with the given UID is managed (i.e. editable via the REST API).Methods inherited from interface org.openhab.core.common.registry.Registry
add, addRegistryChangeListener, get, getAll, remove, removeRegistryChangeListener, stream, update
-
Method Details
-
isEditable
Checks whether the component with the given UID is managed (i.e. editable via the REST API). File-based components (e.g. loaded from YAML configuration files) are not managed and therefore read-only.- Parameters:
uid- the UID of the component- Returns:
trueif the component exists in the managed (jsondb) provider,falseotherwise
-