Interface ConfigStatusProvider
- All Known Implementing Classes:
ConfigStatusBridgeHandler,ConfigStatusThingHandler
@NonNullByDefault
public interface ConfigStatusProvider
The
ConfigStatusProvider can be implemented and registered as an OSGi service to provide status
information for Configurations of entities. The ConfigStatusService tracks each
ConfigStatusProvider and provides the corresponding ConfigStatusInfo by the operation
ConfigStatusService.getConfigStatus(String, Locale).- Author:
- Thomas Höfer - Initial contribution
-
Method Summary
Modifier and TypeMethodDescriptionReturns the configuration status in form of a collection ofConfigStatusMessages for theConfigurationof the entity that is supported by thisConfigStatusProvider.voidsetConfigStatusCallback(@Nullable ConfigStatusCallback configStatusCallback) Sets the givenConfigStatusCallbackfor theConfigStatusProvider.booleansupportsEntity(String entityId) Determines if theConfigStatusProviderinstance can provide the configuration status information for the given entity.
-
Method Details
-
getConfigStatus
Collection<ConfigStatusMessage> getConfigStatus()Returns the configuration status in form of a collection ofConfigStatusMessages for theConfigurationof the entity that is supported by thisConfigStatusProvider.- Returns:
- the requested configuration status (not null)
-
supportsEntity
Determines if theConfigStatusProviderinstance can provide the configuration status information for the given entity.- Parameters:
entityId- the id of the entity whose configuration status information is to be provided- Returns:
- true, if the
ConfigStatusProviderinstance supports the given entity, otherwise false
-
setConfigStatusCallback
Sets the givenConfigStatusCallbackfor theConfigStatusProvider.- Parameters:
configStatusCallback- the configuration status callback to be set
-