Skip to content

Commit a971de0

Browse files
peuterTobias Bräutigam
authored and
Tobias Bräutigam
committed
initial contribution of an SSE based CometVisu backend
Signed-off-by: Tobias Bräutigam <[email protected]>
1 parent dc52b6e commit a971de0

File tree

121 files changed

+21984
-5
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+21984
-5
lines changed

.gitmodules

Whitespace-only changes.

addons/binding/org.openhab.binding.network/.classpath

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<classpath>
3+
<classpathentry exported="true" kind="lib" path="lib/jackson-annotations-2.5.0.jar"/>
4+
<classpathentry exported="true" kind="lib" path="lib/jackson-databind-2.5.0.jar"/>
5+
<classpathentry exported="true" kind="lib" path="lib/jackson-core-2.5.0.jar"/>
6+
<classpathentry exported="true" kind="lib" path="lib/quercus.jar" sourcepath="C:/Users/tobiasb/Downloads/quercus-4.0.39-src.jar"/>
7+
<classpathentry exported="true" kind="lib" path="lib/rrd4j-2.2.jar"/>
38
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
49
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
510
<classpathentry kind="src" path="src/main/java"/>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry exported="true" kind="lib" path="lib/sqlite-jdbc-3.8.7.jar"/>
4+
<classpathentry exported="true" kind="lib" path="lib/quercus.jar"/>
5+
<classpathentry exported="true" kind="lib" path="lib/rrd4j-2.2.jar"/>
6+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
7+
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
8+
<classpathentry kind="src" path="src/main/java"/>
9+
<classpathentry kind="output" path="target/classes"/>
10+
</classpath>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>org.openhab.ui.cometvisu</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.pde.ManifestBuilder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
<buildCommand>
19+
<name>org.eclipse.pde.SchemaBuilder</name>
20+
<arguments>
21+
</arguments>
22+
</buildCommand>
23+
<buildCommand>
24+
<name>org.eclipse.pde.ds.core.builder</name>
25+
<arguments>
26+
</arguments>
27+
</buildCommand>
28+
</buildSpec>
29+
<natures>
30+
<nature>org.eclipse.pde.PluginNature</nature>
31+
<nature>org.eclipse.jdt.core.javanature</nature>
32+
</natures>
33+
</projectDescription>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
Manifest-Version: 1.0
2+
Bundle-ManifestVersion: 2
3+
Bundle-Name: CometVisu backend
4+
Bundle-SymbolicName: org.openhab.ui.cometvisu
5+
Bundle-Version: 2.0.0.qualifier
6+
Bundle-Vendor: openHAB
7+
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
8+
Bundle-Activator: org.openhab.ui.cometvisu.internal.CvActivator
9+
Import-Package:
10+
com.google.gson,
11+
javax.inject,
12+
javax.servlet,
13+
javax.servlet.annotation,
14+
javax.servlet.http,
15+
javax.ws.rs,
16+
javax.ws.rs.container,
17+
javax.ws.rs.core,
18+
javax.ws.rs.ext,
19+
org.apache.commons.io,
20+
org.apache.commons.lang,
21+
org.eclipse.emf.common.util,
22+
org.eclipse.emf.ecore,
23+
org.eclipse.smarthome.config.core,
24+
org.eclipse.smarthome.config.discovery,
25+
org.eclipse.smarthome.config.discovery.inbox,
26+
org.eclipse.smarthome.core.common.registry,
27+
org.eclipse.smarthome.core.events,
28+
org.eclipse.smarthome.core.items,
29+
org.eclipse.smarthome.core.items.events,
30+
org.eclipse.smarthome.core.library.items,
31+
org.eclipse.smarthome.core.library.types,
32+
org.eclipse.smarthome.core.persistence,
33+
org.eclipse.smarthome.core.thing,
34+
org.eclipse.smarthome.core.thing.link,
35+
org.eclipse.smarthome.core.types,
36+
org.eclipse.smarthome.io.rest,
37+
org.eclipse.smarthome.model.items,
38+
org.eclipse.smarthome.model.sitemap,
39+
org.eclipse.smarthome.ui.icon,
40+
org.eclipse.smarthome.ui.items,
41+
org.glassfish.hk2.utilities.binding,
42+
org.glassfish.jersey.internal.inject,
43+
org.glassfish.jersey.media.sse,
44+
org.glassfish.jersey.server,
45+
org.glassfish.jersey.servlet.spi,
46+
org.openhab.core.types,
47+
org.openhab.ui.dashboard,
48+
org.osgi.framework,
49+
org.osgi.service.cm,
50+
org.osgi.service.component,
51+
org.osgi.service.event,
52+
org.osgi.service.http,
53+
org.slf4j
54+
Service-Component: OSGI-INF/*.xml
55+
Bundle-ActivationPolicy: lazy
56+
Bundle-ClassPath: .,
57+
lib/rrd4j-2.2.jar,
58+
lib/quercus.jar,
59+
lib/sqlite-jdbc-3.8.7.jar
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
4+
Copyright (c) 2014-2015 openHAB UG (haftungsbeschraenkt) and others.
5+
All rights reserved. This program and the accompanying materials
6+
are made available under the terms of the Eclipse Public License v1.0
7+
which accompanies this distribution, and is available at
8+
http://www.eclipse.org/legal/epl-v10.html
9+
10+
-->
11+
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" immediate="true" name="org.openhab.ui.cometvisu.backend.ChartResource">
12+
<implementation class="org.openhab.ui.cometvisu.backend.ChartResource"/>
13+
<service>
14+
<provide interface="org.openhab.ui.cometvisu.backend.ChartResource"/>
15+
<provide interface="org.eclipse.smarthome.io.rest.RESTResource"/>
16+
</service>
17+
<reference bind="setItemRegistry" cardinality="1..1" interface="org.eclipse.smarthome.core.items.ItemRegistry" name="ItemRegistry" policy="static" unbind="unsetItemRegistry"/>
18+
<reference bind="addPersistenceService" cardinality="0..n" interface="org.eclipse.smarthome.core.persistence.PersistenceService" name="PersistenceService" policy="dynamic" unbind="removePersistenceService"/>
19+
</scr:component>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
4+
Copyright (c) 2014-2015 openHAB UG (haftungsbeschraenkt) and others.
5+
All rights reserved. This program and the accompanying materials
6+
are made available under the terms of the Eclipse Public License v1.0
7+
which accompanies this distribution, and is available at
8+
http://www.eclipse.org/legal/epl-v10.html
9+
10+
-->
11+
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" immediate="true" name="org.openhab.ui.cometvisu.backend.LoginResource">
12+
<implementation class="org.openhab.ui.cometvisu.backend.LoginResource"/>
13+
<service>
14+
<provide interface="org.openhab.ui.cometvisu.backend.LoginResource"/>
15+
<provide interface="org.eclipse.smarthome.io.rest.RESTResource"/>
16+
</service>
17+
</scr:component>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
4+
Copyright (c) 2014-2015 openHAB UG (haftungsbeschraenkt) and others.
5+
All rights reserved. This program and the accompanying materials
6+
are made available under the terms of the Eclipse Public License v1.0
7+
which accompanies this distribution, and is available at
8+
http://www.eclipse.org/legal/epl-v10.html
9+
10+
-->
11+
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" immediate="true" name="org.openhab.ui.cometvisu.backend.ReadResource">
12+
<implementation class="org.openhab.ui.cometvisu.backend.ReadResource"/>
13+
<service>
14+
<provide interface="org.openhab.ui.cometvisu.backend.EventBroadcaster"/>
15+
<provide interface="org.eclipse.smarthome.io.rest.RESTResource"/>
16+
</service>
17+
<reference bind="setItemRegistry" cardinality="1..1" interface="org.eclipse.smarthome.core.items.ItemRegistry" name="ItemRegistry" policy="static" unbind="unsetItemRegistry"/>
18+
</scr:component>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
4+
Copyright (c) 2014-2015 openHAB UG (haftungsbeschraenkt) and others.
5+
All rights reserved. This program and the accompanying materials
6+
are made available under the terms of the Eclipse Public License v1.0
7+
which accompanies this distribution, and is available at
8+
http://www.eclipse.org/legal/epl-v10.html
9+
10+
-->
11+
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" immediate="true" name="org.openhab.ui.cometvisu.backend.WriteResource">
12+
<implementation class="org.openhab.ui.cometvisu.backend.WriteResource"/>
13+
<service>
14+
<provide interface="org.openhab.ui.cometvisu.backend.WriteResource"/>
15+
<provide interface="org.eclipse.smarthome.io.rest.RESTResource"/>
16+
</service>
17+
<reference bind="setItemRegistry" cardinality="1..1" interface="org.eclipse.smarthome.core.items.ItemRegistry" name="ItemRegistry" policy="static" unbind="unsetItemRegistry"/>
18+
<reference bind="setEventPublisher" cardinality="1..1" interface="org.eclipse.smarthome.core.events.EventPublisher" name="EventPublisher" policy="static" unbind="unsetEventPublisher"/>
19+
</scr:component>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
4+
Copyright (c) 2014 openHAB UG (haftungsbeschraenkt) and others.
5+
All rights reserved. This program and the accompanying materials
6+
are made available under the terms of the Eclipse Public License v1.0
7+
which accompanies this distribution, and is available at
8+
http://www.eclipse.org/legal/epl-v10.html
9+
10+
-->
11+
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" configuration-policy="optional" name="org.openhab.cometvisu">
12+
<implementation class="org.openhab.ui.cometvisu.servlet.CometVisuApp"/>
13+
<service>
14+
<provide interface="org.openhab.ui.cometvisu.servlet.CometVisuApp"/>
15+
</service>
16+
<reference bind="setHttpService" cardinality="1..1" interface="org.osgi.service.http.HttpService" name="HttpService" policy="static" unbind="unsetHttpService"/>
17+
<reference bind="setItemUIRegistry" cardinality="1..1" interface="org.eclipse.smarthome.ui.items.ItemUIRegistry" name="ItemUIRegistry" policy="static" unbind="unsetItemUIRegistry"/>
18+
<reference bind="setItemRegistry" cardinality="1..1" interface="org.eclipse.smarthome.core.items.ItemRegistry" name="ItemRegistry" policy="static" unbind="unsetItemRegistry"/>
19+
<reference bind="addSitemapProvider" cardinality="0..n" interface="org.eclipse.smarthome.model.sitemap.SitemapProvider" name="SitemapProvider" policy="dynamic" unbind="removeSitemapProvider"/>
20+
<reference bind="addIconProvider" cardinality="1..n" interface="org.eclipse.smarthome.ui.icon.IconProvider" name="IconProvider" policy="dynamic" unbind="removeIconProvider"/>
21+
<reference bind="addPersistenceService" cardinality="0..n" interface="org.eclipse.smarthome.core.persistence.PersistenceService" name="PersistenceService" policy="dynamic" unbind="removePersistenceService"/>
22+
<reference bind="setEventPublisher" cardinality="1..1" interface="org.eclipse.smarthome.core.events.EventPublisher" name="EventPublisher" policy="static" unbind="unsetEventPublisher"/>
23+
<property name="service.pid" type="String" value="org.openhab.cometvisu"/>
24+
</scr:component>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
Copyright (c) 2014-2015 openHAB UG (haftungsbeschraenkt) and others.
4+
All rights reserved. This program and the accompanying materials
5+
are made available under the terms of the Eclipse Public License v1.0
6+
which accompanies this distribution, and is available at
7+
http://www.eclipse.org/legal/epl-v10.html
8+
-->
9+
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" immediate="true" name="org.openhab.ui.cometvisu.dashboardtile">
10+
<implementation class="org.openhab.ui.cometvisu.internal.CometVisuDashboardTile"/>
11+
<service>
12+
<provide interface="org.openhab.ui.dashboard.DashboardTile"/>
13+
</service>
14+
</scr:component>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
4+
Copyright (c) 2014-2015 openHAB UG (haftungsbeschraenkt) and others.
5+
All rights reserved. This program and the accompanying materials
6+
are made available under the terms of the Eclipse Public License v1.0
7+
which accompanies this distribution, and is available at
8+
http://www.eclipse.org/legal/epl-v10.html
9+
10+
-->
11+
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" immediate="true" name="org.openhab.ui.cometvisu.listeners.item">
12+
<implementation class="org.openhab.ui.cometvisu.internal.listeners.ItemRegistryEventListener"/>
13+
<reference bind="setItemRegistry" cardinality="1..1" interface="org.eclipse.smarthome.core.items.ItemRegistry" name="ItemRegistry" policy="static" unbind="unsetItemRegistry"/>
14+
<reference bind="setEventBroadcaster" cardinality="1..1" interface="org.openhab.ui.cometvisu.backend.EventBroadcaster" name="SseResource" policy="static" unbind="unsetEventBroadcaster"/>
15+
</scr:component>

0 commit comments

Comments
 (0)