From 90dcc43ed1677f27d2418c10a83f6a0a27ac35d7 Mon Sep 17 00:00:00 2001 From: charithag Date: Tue, 2 Feb 2016 16:02:25 +0530 Subject: [PATCH] Updated connected cup component structure --- .../connectedcup/component/agent/pom.xml | 22 ++++- .../component/analytics/build.xml | 43 ++++++++ .../connectedcup/component/analytics/pom.xml | 92 ++++++++++++++++++ .../component/analytics/src/assembly/src.xml | 36 +++++++ .../EventReceiver_coffeelevel.xml | 27 +++++ .../artifact.xml | 22 +++++ .../Eventstore_coffeelevel_1.0.0/artifact.xml | 22 +++++ .../org_wso2_iot_devices_coffeelevel.xml | 18 ++++ .../artifact.xml | 23 +++++ ...rg.wso2.iot.devices.coffeelevel_1.0.0.json | 0 .../CoffeeLevel_Sensor_Script.xml | 18 ++++ .../Sparkscripts_1.0.0/artifact.xml | 22 +++++ .../CoffeeLevel_Sensor/artifacts.xml | 30 ++++++ .../EventReceiver_temperature.xml | 26 +++++ .../artifact.xml | 22 +++++ .../Eventstore_temperature_1.0.0/artifact.xml | 22 +++++ .../org_wso2_iot_devices_temperature.xml | 18 ++++ .../artifact.xml | 23 +++++ ...rg.wso2.iot.devices.temperature_1.0.0.json | 0 .../Temperature_Sensor_Script.xml | 18 ++++ .../Sparkscripts_1.0.0/artifact.xml | 22 +++++ .../Temperature_Sensor/artifacts.xml | 29 ++++++ .../connectedcup/component/controller/pom.xml | 6 +- .../connectedcup/component/manager/pom.xml | 6 +- .../samples/connectedcup/component/pom.xml | 17 ++-- .../samples/connectedcup/component/ui/pom.xml | 62 ++++++++++++ .../component/ui/src/assembly/src.xml | 36 +++++++ .../device-view.hbs | 0 .../device-view.js | 4 +- .../device-view.json | 0 .../public/images/thumb.png | Bin .../policy-edit.hbs | 1 + .../policy-edit.json} | 0 .../policy-view.hbs | 1 + .../policy-view.json | 3 + .../policy-wizard.hbs | 1 + .../policy-wizard.json | 3 + .../public/images/coffee_stats.png | Bin .../public/images/coffeecup.png | Bin .../public/images/thumb.png | Bin .../public/js/download.js | 0 .../public/js/jquery.validate.js | 21 ++-- .../type-view.hbs | 0 .../type-view.json | 3 + .../EventReceiver_coffeelevel.xml | 9 -- .../artifact.xml | 4 - .../Eventstore_coffeelevel_1.0.0/artifact.xml | 4 - .../artifact.xml | 5 - .../Sparkscripts_1.0.0/artifact.xml | 4 - .../CoffeeLevel_Sensor/artifacts.xml | 12 --- .../EventReceiver_temperature.xml | 8 -- .../artifact.xml | 4 - .../Eventstore_temperature_1.0.0/artifact.xml | 4 - .../artifact.xml | 5 - .../Sparkscripts_1.0.0/artifact.xml | 4 - .../Temperature_Sensor/artifacts.xml | 11 --- .../connectedcup/feature/analytics/build.xml | 25 ----- .../connectedcup/feature/analytics/pom.xml | 72 -------------- .../feature/connectedcup-feature/pom.xml | 82 +++++++++------- .../carbonapps/CoffeeLevel_Sensor.car | Bin 4158 -> 0 bytes .../carbonapps/Temperature_Sensor.car | Bin 4138 -> 0 bytes .../database/ConnectedCupDM_DB.h2.db | Bin 20480 -> 0 bytes modules/samples/connectedcup/feature/pom.xml | 5 +- modules/samples/connectedcup/pom.xml | 4 +- 64 files changed, 746 insertions(+), 235 deletions(-) create mode 100644 modules/samples/connectedcup/component/analytics/build.xml create mode 100644 modules/samples/connectedcup/component/analytics/pom.xml create mode 100644 modules/samples/connectedcup/component/analytics/src/assembly/src.xml create mode 100644 modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/CoffeeLevel_Sensor/Eventreceiver_coffeelevel_1.0.0/EventReceiver_coffeelevel.xml create mode 100644 modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/CoffeeLevel_Sensor/Eventreceiver_coffeelevel_1.0.0/artifact.xml create mode 100644 modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/CoffeeLevel_Sensor/Eventstore_coffeelevel_1.0.0/artifact.xml rename modules/samples/connectedcup/{feature/analytics => component/analytics/src/main/resources/carbonapps}/CoffeeLevel_Sensor/Eventstore_coffeelevel_1.0.0/org_wso2_iot_devices_coffeelevel.xml (65%) create mode 100644 modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/CoffeeLevel_Sensor/Eventstream_coffeelevel_1.0.0/artifact.xml rename modules/samples/connectedcup/{feature/analytics => component/analytics/src/main/resources/carbonapps}/CoffeeLevel_Sensor/Eventstream_coffeelevel_1.0.0/org.wso2.iot.devices.coffeelevel_1.0.0.json (100%) rename modules/samples/connectedcup/{feature/analytics => component/analytics/src/main/resources/carbonapps}/CoffeeLevel_Sensor/Sparkscripts_1.0.0/CoffeeLevel_Sensor_Script.xml (58%) create mode 100644 modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/CoffeeLevel_Sensor/Sparkscripts_1.0.0/artifact.xml create mode 100644 modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/CoffeeLevel_Sensor/artifacts.xml create mode 100644 modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/Temperature_Sensor/Eventreceiver_temperature_1.0.0/EventReceiver_temperature.xml create mode 100644 modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/Temperature_Sensor/Eventreceiver_temperature_1.0.0/artifact.xml create mode 100644 modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/Temperature_Sensor/Eventstore_temperature_1.0.0/artifact.xml rename modules/samples/connectedcup/{feature/analytics => component/analytics/src/main/resources/carbonapps}/Temperature_Sensor/Eventstore_temperature_1.0.0/org_wso2_iot_devices_temperature.xml (65%) create mode 100644 modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/Temperature_Sensor/Eventstream_temperature_1.0.0/artifact.xml rename modules/samples/connectedcup/{feature/analytics => component/analytics/src/main/resources/carbonapps}/Temperature_Sensor/Eventstream_temperature_1.0.0/org.wso2.iot.devices.temperature_1.0.0.json (100%) rename modules/samples/connectedcup/{feature/analytics => component/analytics/src/main/resources/carbonapps}/Temperature_Sensor/Sparkscripts_1.0.0/Temperature_Sensor_Script.xml (57%) create mode 100644 modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/Temperature_Sensor/Sparkscripts_1.0.0/artifact.xml create mode 100644 modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/Temperature_Sensor/artifacts.xml create mode 100644 modules/samples/connectedcup/component/ui/pom.xml create mode 100644 modules/samples/connectedcup/component/ui/src/assembly/src.xml rename modules/samples/connectedcup/{feature/connectedcup-feature => component/ui}/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.connectedcup.device-view/device-view.hbs (100%) rename modules/samples/connectedcup/{feature/connectedcup-feature => component/ui}/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.connectedcup.device-view/device-view.js (91%) rename modules/samples/connectedcup/{feature/connectedcup-feature => component/ui}/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.connectedcup.device-view/device-view.json (100%) rename modules/samples/connectedcup/{feature/connectedcup-feature => component/ui}/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.connectedcup.device-view/public/images/thumb.png (100%) create mode 100644 modules/samples/connectedcup/component/ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.connectedcup.policy-edit/policy-edit.hbs rename modules/samples/connectedcup/{feature/connectedcup-feature/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.connectedcup.type-view/type-view.json => component/ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.connectedcup.policy-edit/policy-edit.json} (100%) create mode 100644 modules/samples/connectedcup/component/ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.connectedcup.policy-view/policy-view.hbs create mode 100644 modules/samples/connectedcup/component/ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.connectedcup.policy-view/policy-view.json create mode 100644 modules/samples/connectedcup/component/ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.connectedcup.policy-wizard/policy-wizard.hbs create mode 100644 modules/samples/connectedcup/component/ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.connectedcup.policy-wizard/policy-wizard.json rename modules/samples/connectedcup/{feature/connectedcup-feature => component/ui}/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.connectedcup.type-view/public/images/coffee_stats.png (100%) rename modules/samples/connectedcup/{feature/connectedcup-feature => component/ui}/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.connectedcup.type-view/public/images/coffeecup.png (100%) rename modules/samples/connectedcup/{feature/connectedcup-feature => component/ui}/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.connectedcup.type-view/public/images/thumb.png (100%) rename modules/samples/connectedcup/{feature/connectedcup-feature => component/ui}/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.connectedcup.type-view/public/js/download.js (100%) rename modules/samples/connectedcup/{feature/connectedcup-feature => component/ui}/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.connectedcup.type-view/public/js/jquery.validate.js (98%) rename modules/samples/connectedcup/{feature/connectedcup-feature => component/ui}/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.connectedcup.type-view/type-view.hbs (100%) create mode 100644 modules/samples/connectedcup/component/ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.connectedcup.type-view/type-view.json delete mode 100644 modules/samples/connectedcup/feature/analytics/CoffeeLevel_Sensor/Eventreceiver_coffeelevel_1.0.0/EventReceiver_coffeelevel.xml delete mode 100644 modules/samples/connectedcup/feature/analytics/CoffeeLevel_Sensor/Eventreceiver_coffeelevel_1.0.0/artifact.xml delete mode 100644 modules/samples/connectedcup/feature/analytics/CoffeeLevel_Sensor/Eventstore_coffeelevel_1.0.0/artifact.xml delete mode 100644 modules/samples/connectedcup/feature/analytics/CoffeeLevel_Sensor/Eventstream_coffeelevel_1.0.0/artifact.xml delete mode 100644 modules/samples/connectedcup/feature/analytics/CoffeeLevel_Sensor/Sparkscripts_1.0.0/artifact.xml delete mode 100644 modules/samples/connectedcup/feature/analytics/CoffeeLevel_Sensor/artifacts.xml delete mode 100644 modules/samples/connectedcup/feature/analytics/Temperature_Sensor/Eventreceiver_temperature_1.0.0/EventReceiver_temperature.xml delete mode 100644 modules/samples/connectedcup/feature/analytics/Temperature_Sensor/Eventreceiver_temperature_1.0.0/artifact.xml delete mode 100644 modules/samples/connectedcup/feature/analytics/Temperature_Sensor/Eventstore_temperature_1.0.0/artifact.xml delete mode 100644 modules/samples/connectedcup/feature/analytics/Temperature_Sensor/Eventstream_temperature_1.0.0/artifact.xml delete mode 100644 modules/samples/connectedcup/feature/analytics/Temperature_Sensor/Sparkscripts_1.0.0/artifact.xml delete mode 100644 modules/samples/connectedcup/feature/analytics/Temperature_Sensor/artifacts.xml delete mode 100644 modules/samples/connectedcup/feature/analytics/build.xml delete mode 100644 modules/samples/connectedcup/feature/analytics/pom.xml delete mode 100644 modules/samples/connectedcup/feature/connectedcup-feature/src/main/resources/carbonapps/CoffeeLevel_Sensor.car delete mode 100644 modules/samples/connectedcup/feature/connectedcup-feature/src/main/resources/carbonapps/Temperature_Sensor.car delete mode 100644 modules/samples/connectedcup/feature/connectedcup-feature/src/main/resources/database/ConnectedCupDM_DB.h2.db diff --git a/modules/samples/connectedcup/component/agent/pom.xml b/modules/samples/connectedcup/component/agent/pom.xml index 035dff03..b30f6967 100644 --- a/modules/samples/connectedcup/component/agent/pom.xml +++ b/modules/samples/connectedcup/component/agent/pom.xml @@ -1,3 +1,21 @@ + + @@ -7,10 +25,10 @@ ../pom.xml 4.0.0 - org.coffeeking.agent + org.coffeeking.connectedcup.agent war 1.9.2-SNAPSHOT - connected-cup-agent Maven Webapp + WSO2 IoTS(Device Types) - Connected Cup Agent Web app http://maven.apache.org diff --git a/modules/samples/connectedcup/component/analytics/build.xml b/modules/samples/connectedcup/component/analytics/build.xml new file mode 100644 index 00000000..15ff3ff0 --- /dev/null +++ b/modules/samples/connectedcup/component/analytics/build.xml @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/modules/samples/connectedcup/component/analytics/pom.xml b/modules/samples/connectedcup/component/analytics/pom.xml new file mode 100644 index 00000000..8526b568 --- /dev/null +++ b/modules/samples/connectedcup/component/analytics/pom.xml @@ -0,0 +1,92 @@ + + + + + + + + org.wso2.carbon.devicemgt-plugins + device-mgt-iot-connectedcup + 1.9.2-SNAPSHOT + ../pom.xml + + + 4.0.0 + org.coffeeking.connectedcup.analytics + WSO2 IoTS(Device Types) - Connected Cup Analytics capp + pom + + + + + maven-clean-plugin + 2.4.1 + + + auto-clean + initialize + + clean + + + + + + maven-antrun-plugin + 1.7 + + + process-resources + + + + + + + run + + + + + + maven-assembly-plugin + 2.5.5 + + ${project.artifactId}-${carbon.device.mgt.version} + false + + src/assembly/src.xml + + + + + create-archive + package + + single + + + + + + + + \ No newline at end of file diff --git a/modules/samples/connectedcup/component/analytics/src/assembly/src.xml b/modules/samples/connectedcup/component/analytics/src/assembly/src.xml new file mode 100644 index 00000000..a5a37501 --- /dev/null +++ b/modules/samples/connectedcup/component/analytics/src/assembly/src.xml @@ -0,0 +1,36 @@ + + + + src + + zip + + false + ${basedir}/src + + + ${basedir}/target/carbonapps + / + true + + + \ No newline at end of file diff --git a/modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/CoffeeLevel_Sensor/Eventreceiver_coffeelevel_1.0.0/EventReceiver_coffeelevel.xml b/modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/CoffeeLevel_Sensor/Eventreceiver_coffeelevel_1.0.0/EventReceiver_coffeelevel.xml new file mode 100644 index 00000000..f61865c5 --- /dev/null +++ b/modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/CoffeeLevel_Sensor/Eventreceiver_coffeelevel_1.0.0/EventReceiver_coffeelevel.xml @@ -0,0 +1,27 @@ + + + + + + false + + + + diff --git a/modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/CoffeeLevel_Sensor/Eventreceiver_coffeelevel_1.0.0/artifact.xml b/modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/CoffeeLevel_Sensor/Eventreceiver_coffeelevel_1.0.0/artifact.xml new file mode 100644 index 00000000..ab46c07d --- /dev/null +++ b/modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/CoffeeLevel_Sensor/Eventreceiver_coffeelevel_1.0.0/artifact.xml @@ -0,0 +1,22 @@ + + + + + EventReceiver_coffeelevel.xml + diff --git a/modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/CoffeeLevel_Sensor/Eventstore_coffeelevel_1.0.0/artifact.xml b/modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/CoffeeLevel_Sensor/Eventstore_coffeelevel_1.0.0/artifact.xml new file mode 100644 index 00000000..74bd1698 --- /dev/null +++ b/modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/CoffeeLevel_Sensor/Eventstore_coffeelevel_1.0.0/artifact.xml @@ -0,0 +1,22 @@ + + + + + org_wso2_iot_devices_coffeelevel.xml + diff --git a/modules/samples/connectedcup/feature/analytics/CoffeeLevel_Sensor/Eventstore_coffeelevel_1.0.0/org_wso2_iot_devices_coffeelevel.xml b/modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/CoffeeLevel_Sensor/Eventstore_coffeelevel_1.0.0/org_wso2_iot_devices_coffeelevel.xml similarity index 65% rename from modules/samples/connectedcup/feature/analytics/CoffeeLevel_Sensor/Eventstore_coffeelevel_1.0.0/org_wso2_iot_devices_coffeelevel.xml rename to modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/CoffeeLevel_Sensor/Eventstore_coffeelevel_1.0.0/org_wso2_iot_devices_coffeelevel.xml index 580b17a3..1253864f 100644 --- a/modules/samples/connectedcup/feature/analytics/CoffeeLevel_Sensor/Eventstore_coffeelevel_1.0.0/org_wso2_iot_devices_coffeelevel.xml +++ b/modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/CoffeeLevel_Sensor/Eventstore_coffeelevel_1.0.0/org_wso2_iot_devices_coffeelevel.xml @@ -1,4 +1,22 @@ + + org.wso2.iot.devices.coffeelevel:1.0.0 diff --git a/modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/CoffeeLevel_Sensor/Eventstream_coffeelevel_1.0.0/artifact.xml b/modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/CoffeeLevel_Sensor/Eventstream_coffeelevel_1.0.0/artifact.xml new file mode 100644 index 00000000..5af619c1 --- /dev/null +++ b/modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/CoffeeLevel_Sensor/Eventstream_coffeelevel_1.0.0/artifact.xml @@ -0,0 +1,23 @@ + + + + + org.wso2.iot.devices.coffeelevel_1.0.0.json + + diff --git a/modules/samples/connectedcup/feature/analytics/CoffeeLevel_Sensor/Eventstream_coffeelevel_1.0.0/org.wso2.iot.devices.coffeelevel_1.0.0.json b/modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/CoffeeLevel_Sensor/Eventstream_coffeelevel_1.0.0/org.wso2.iot.devices.coffeelevel_1.0.0.json similarity index 100% rename from modules/samples/connectedcup/feature/analytics/CoffeeLevel_Sensor/Eventstream_coffeelevel_1.0.0/org.wso2.iot.devices.coffeelevel_1.0.0.json rename to modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/CoffeeLevel_Sensor/Eventstream_coffeelevel_1.0.0/org.wso2.iot.devices.coffeelevel_1.0.0.json diff --git a/modules/samples/connectedcup/feature/analytics/CoffeeLevel_Sensor/Sparkscripts_1.0.0/CoffeeLevel_Sensor_Script.xml b/modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/CoffeeLevel_Sensor/Sparkscripts_1.0.0/CoffeeLevel_Sensor_Script.xml similarity index 58% rename from modules/samples/connectedcup/feature/analytics/CoffeeLevel_Sensor/Sparkscripts_1.0.0/CoffeeLevel_Sensor_Script.xml rename to modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/CoffeeLevel_Sensor/Sparkscripts_1.0.0/CoffeeLevel_Sensor_Script.xml index 992d0b6d..3b2eebf9 100644 --- a/modules/samples/connectedcup/feature/analytics/CoffeeLevel_Sensor/Sparkscripts_1.0.0/CoffeeLevel_Sensor_Script.xml +++ b/modules/samples/connectedcup/component/analytics/src/main/resources/carbonapps/CoffeeLevel_Sensor/Sparkscripts_1.0.0/CoffeeLevel_Sensor_Script.xml @@ -1,4 +1,22 @@ + + CoffeeLevel_Sensor_Script