Class ThingLinkManager

  • All Implemented Interfaces:
    EventSubscriber

    @NonNullByDefault
    public class ThingLinkManager
    extends AbstractTypedEventSubscriber<ThingStatusInfoChangedEvent>
    The ThingLinkManager manages links for channels.

    If a Thing is created, it can automatically create links for its non-advanced channels. Upon a Thing deletion, it removes all links of this Thing.

    Author:
    Dennis Nobel - Initial contribution, Markus Rathgeb - Handle item registry's all items changed notification, Kai Kreuzer - Refactored to make it a service and introduced the auto-linking (as a replacement for the ThingSetupManager), Markus Rathgeb - Send link notification if item and link exists and unlink on the first removal