]> git.basschouten.com Git - openhab-addons.git/blob
b65f96ccf93b88a06ac483446baf4a721de8c0f8
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2020 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
7  * This program and the accompanying materials are made available under the
8  * terms of the Eclipse Public License 2.0 which is available at
9  * http://www.eclipse.org/legal/epl-2.0
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.zoneminder.internal.handler;
14
15 import java.io.IOException;
16 import java.security.GeneralSecurityException;
17
18 import org.openhab.core.thing.ChannelUID;
19
20 import name.eskildsen.zoneminder.IZoneMinderConnectionInfo;
21 import name.eskildsen.zoneminder.exception.ZoneMinderUrlNotFoundException;
22
23 /**
24  * Interface for ZoneMinder handlers.
25  *
26  * @author Martin S. Eskildsen - Initial contribution
27  */
28 public interface ZoneMinderHandler {
29
30     String getZoneMinderId();
31
32     /**
33      * Method used to relate a log entry to a thing
34      */
35     String getLogIdentifier();
36
37     void updateAvaliabilityStatus(IZoneMinderConnectionInfo connection);
38
39     void updateChannel(ChannelUID channel);
40
41     void onBridgeConnected(ZoneMinderServerBridgeHandler bridge, IZoneMinderConnectionInfo connection)
42             throws IllegalArgumentException, GeneralSecurityException, IOException, ZoneMinderUrlNotFoundException;
43
44     void onBridgeDisconnected(ZoneMinderServerBridgeHandler bridge);
45 }