Package org.openhab.core.thing.link
Class ManagedItemChannelLinkProvider
java.lang.Object
org.openhab.core.common.registry.AbstractProvider<ItemChannelLink>
org.openhab.core.common.registry.AbstractManagedProvider<ItemChannelLink,String,ItemChannelLink>
org.openhab.core.common.registry.DefaultAbstractManagedProvider<ItemChannelLink,String>
org.openhab.core.thing.link.ManagedItemChannelLinkProvider
- All Implemented Interfaces:
ManagedProvider<ItemChannelLink,
,String> Provider<ItemChannelLink>
,ItemChannelLinkProvider
@NonNullByDefault
public class ManagedItemChannelLinkProvider
extends DefaultAbstractManagedProvider<ItemChannelLink,String>
implements ItemChannelLinkProvider
ManagedItemChannelLinkProvider
is responsible for managed ItemChannelLink
s at runtime.- Author:
- Dennis Nobel - Initial contribution
-
Field Summary
Fields inherited from class org.openhab.core.common.registry.AbstractManagedProvider
logger
Fields inherited from class org.openhab.core.common.registry.AbstractProvider
listeners
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
Returns the name of storage, that is used to persist the elements.protected String
keyToString
(String key) Transforms the key into a string representation.int
removeLinksForItem
(String itemName) int
removeLinksForThing
(ThingUID thingUID) Methods inherited from class org.openhab.core.common.registry.DefaultAbstractManagedProvider
toElement, toPersistableElement
Methods inherited from class org.openhab.core.common.registry.AbstractManagedProvider
add, get, getAll, remove, update
Methods inherited from class org.openhab.core.common.registry.AbstractProvider
addProviderChangeListener, notifyListenersAboutAddedElement, notifyListenersAboutRemovedElement, notifyListenersAboutUpdatedElement, removeProviderChangeListener
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.openhab.core.common.registry.Provider
addProviderChangeListener, getAll, removeProviderChangeListener
-
Constructor Details
-
ManagedItemChannelLinkProvider
-
-
Method Details
-
getStorageName
Description copied from class:AbstractManagedProvider
Returns the name of storage, that is used to persist the elements.- Specified by:
getStorageName
in classAbstractManagedProvider<ItemChannelLink,
String, ItemChannelLink> - Returns:
- name of the storage
-
keyToString
Description copied from class:AbstractManagedProvider
Transforms the key into a string representation.- Specified by:
keyToString
in classAbstractManagedProvider<ItemChannelLink,
String, ItemChannelLink> - Parameters:
key
- key- Returns:
- string representation of the key
-
removeLinksForThing
-
removeLinksForItem
-