From d08d7cb048ac42a685e5df4845f9d503bb9812d6 Mon Sep 17 00:00:00 2001 From: ayyoob Date: Tue, 22 Sep 2015 19:23:06 +0530 Subject: [PATCH] added analytics commons data publisher and used dal layer to capture the data --- modules/distribution/pom.xml | 1195 +++++++++-------- modules/distribution/src/assembly/bin.xml | 39 +- .../src/assembly/filter.properties | 8 +- .../src/repository/conf/carbon.xml | 685 ++++++++++ .../conf/data-bridge/data-bridge-config.xml | 72 + .../src/statistics/IOT_Sensor_Analytics.car | Bin 8596 -> 0 bytes .../IOT_Sensor_Analytics.tbox | Bin .../carbonapps/Temperature_Sensor.car | Bin 0 -> 8525 bytes modules/p2-profile-gen/pom.xml | 194 +-- .../impl/AndroidSenseManagerService.java | 15 + .../plugin/impl/ArduinoManagerService.java | 15 + .../pom.xml | 10 + .../impl/ArduinoControllerService.java | 33 +- .../src/main/webapp/WEB-INF/web.xml | 4 +- .../impl/DigitalDisplayManagerService.java | 15 + .../plugin/impl/FireAlarmManagerService.java | 16 + modules/samples/pom.xml | 6 + .../impl/RaspberrypiManagerService.java | 15 + .../plugin/impl/SensebotManagerService.java | 16 + pom.xml | 10 +- 20 files changed, 1603 insertions(+), 745 deletions(-) create mode 100644 modules/distribution/src/repository/conf/carbon.xml create mode 100644 modules/distribution/src/repository/conf/data-bridge/data-bridge-config.xml delete mode 100644 modules/distribution/src/statistics/IOT_Sensor_Analytics.car rename modules/distribution/src/statistics/{ => bamtoolbox}/IOT_Sensor_Analytics.tbox (100%) create mode 100644 modules/distribution/src/statistics/carbonapps/Temperature_Sensor.car diff --git a/modules/distribution/pom.xml b/modules/distribution/pom.xml index c15b7310..12f59031 100644 --- a/modules/distribution/pom.xml +++ b/modules/distribution/pom.xml @@ -17,585 +17,620 @@ ~ under the License. --> - - - - org.wso2.iot - wso2iot-parent - 1.0.0-SNAPSHOT - ../../pom.xml - - - 4.0.0 - wso2iot - 1.0.0-SNAPSHOT - pom - WSO2 IoT Server - Distribution - WSO2 IoT Server Distribution - - - - com.h2database.wso2 - h2-database-engine - - - - - - - org.codehaus.mojo - buildnumber-maven-plugin - ${maven-buildnumber-plugin.version} - - {0,date,dd MMM yyyy} - - timestamp - - false - false - - - - validate - - create - - - - - - - org.apache.maven.plugins - maven-dependency-plugin - false - - - 2-unpack-wso2carbon - package - - unpack - - - - - org.wso2.carbon - wso2carbon-core - ${carbon.kernel.version} - zip - true - target - - - - - - - - - org.apache.maven.plugins - maven-antrun-plugin - - - - - - social-h2-table-gen - package - - - - - - - - - - - - - - run - - - - - - - create-device-mgt-schema - package - - run - - - - - - - - - - - - - - - - - - - - - create-api-mgt-schema - package - - run - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3-extract-apps-from-components - package - - run - - - - - - - - - - - - - - - - - - - - - - - - og4j.logger.net.sf.ehcache=ERROR - - - - - - - - - copy_modules_apps - package - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - run - - - - - - install_samples - package - - - - - - - - - - - - - - - - - - - - - - - - run - - - - clean_target - install - - - - - - - - - - - - - - - - - - - run - - - - - - - org.apache.maven.plugins - maven-assembly-plugin - - - - 1-pre-dist - test - - - attached - - - false - - ${basedir}/src/assembly/filter.properties - - - ${basedir}/src/assembly/dist.xml - - - - - - 2-dist - package - - attached - - - false - - ${basedir}/src/assembly/filter.properties - - - ${basedir}/src/assembly/bin.xml - - - - - - - - - + + + + org.wso2.iot + wso2iot-parent + 1.0.0-SNAPSHOT + ../../pom.xml + + + 4.0.0 + wso2iot + 1.0.0-SNAPSHOT + pom + WSO2 IoT Server - Distribution + WSO2 IoT Server Distribution + + + + com.h2database.wso2 + h2-database-engine + + + + + + + org.codehaus.mojo + buildnumber-maven-plugin + ${maven-buildnumber-plugin.version} + + {0,date,dd MMM yyyy} + + timestamp + + false + false + + + + validate + + create + + + + + + + org.apache.maven.plugins + maven-dependency-plugin + false + + + 2-unpack-wso2carbon + package + + unpack + + + + + org.wso2.carbon + wso2carbon-core + ${carbon.kernel.version} + zip + true + target + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + org.apache.maven.plugins + maven-antrun-plugin + + + + + + social-h2-table-gen + package + + + + + + + + + + + + + + run + + + + + + + create-device-mgt-schema + package + + run + + + + + + + + + + + + + + + + + + + + + create-api-mgt-schema + package + + run + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 3-extract-apps-from-components + package + + run + + + + + + + + + + + + + + + + + + + + + + + + og4j.logger.net.sf.ehcache=ERROR + + + + + + + + + copy_modules_apps + package + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + run + + + + + + install_samples + package + + + + + + + + + + + + + + + + + + + + + + + + run + + + + clean_target + install + + + + + + + + + + + + + + + + + + + run + + + + + + + org.apache.maven.plugins + maven-assembly-plugin + + + + 1-pre-dist + test + + + attached + + + false + + ${basedir}/src/assembly/filter.properties + + + ${basedir}/src/assembly/dist.xml + + + + + + 2-dist + package + + attached + + + false + + ${basedir}/src/assembly/filter.properties + + + ${basedir}/src/assembly/bin.xml + + + + + + + + org.apache.maven.plugins + maven-clean-plugin + + + auto-clean + initialize + + clean + + + + + + diff --git a/modules/distribution/src/assembly/bin.xml b/modules/distribution/src/assembly/bin.xml index eb780e71..9d9b6232 100644 --- a/modules/distribution/src/assembly/bin.xml +++ b/modules/distribution/src/assembly/bin.xml @@ -278,14 +278,20 @@ + + + + + + + + + - - ../p2-profile-gen/target/wso2carbon-core-${carbon.mobile.device.mgt.version}/dbscripts/cdm/plugins - - ${pom.artifactId}-${pom.version}/dbscripts/cdm/plugins - - */** - + src/statistics/carbonapps/ + ${pom.artifactId}-${pom.version}/repository/deployment/server/carbonapps + + 755 @@ -885,7 +891,9 @@ - target/wso2carbon-core-${carbon.kernel.version}/repository/conf/carbon.xml + + + src/repository/conf/carbon.xml ${pom.artifactId}-${pom.version}/repository/conf/ true @@ -1081,7 +1089,9 @@ - ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/data-bridge/data-bridge-config.xml + + + src/repository/conf/data-bridge/data-bridge-config.xml ${pom.artifactId}-${pom.version}/repository/conf/data-bridge true 644 @@ -1120,6 +1130,17 @@ 755 + + + + ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/webapps/analytics.war + + ${pom.artifactId}-${pom.version}/repository/deployment/server/webapps + + + 644 + + diff --git a/modules/distribution/src/assembly/filter.properties b/modules/distribution/src/assembly/filter.properties index 9b5c9e59..c01b40bd 100644 --- a/modules/distribution/src/assembly/filter.properties +++ b/modules/distribution/src/assembly/filter.properties @@ -1,7 +1,9 @@ product.name=WSO2 IoT Server product.version=1.0.0-SNAPSHOT -product.key=DC +product.key=IOT hotdeployment=true hotupdate=true -carbon.version=4.4.0 -default.server.role=DeviceCloud +carbon.version=4.4.1 +default.server.role=IoTServer +cep.server.role=ComplexEventProcessor +das.server.role=DataAnalyticsServer diff --git a/modules/distribution/src/repository/conf/carbon.xml b/modules/distribution/src/repository/conf/carbon.xml new file mode 100644 index 00000000..59af020b --- /dev/null +++ b/modules/distribution/src/repository/conf/carbon.xml @@ -0,0 +1,685 @@ + + + + + + + + + ${product.name} + + + ${product.key} + + + ${product.version} + + + + + + + + + local:/${carbon.context}/services/ + + + + + + + ${default.server.role} + ${das.server.role} + ${cep.server.role} + + + + + + + org.wso2.carbon + + + / + + + + + + + + + 15 + + + + + + + + + 0 + + + + + 9999 + + 11111 + + + + + + 10389 + + 8000 + + + + + + 10500 + + + + + + + org.wso2.carbon.tomcat.jndi.CarbonJavaURLContextFactory + + + + + + + + + java + + + + + + + + + + false + + + false + + + 600 + + + + false + + + + + + + + 30 + + + + + + + + + 15 + + + + + + ${carbon.home}/repository/deployment/server/ + + + 15 + + + ${carbon.home}/repository/conf/axis2/axis2.xml + + + 30000 + + + ${carbon.home}/repository/deployment/client/ + + ${carbon.home}/repository/conf/axis2/axis2_client.xml + + true + + + + + + + + + + admin + Default Administrator Role + + + user + Default User Role + + + + + + + + + + + + ${carbon.home}/repository/resources/security/wso2carbon.jks + + JKS + + wso2carbon + + wso2carbon + + wso2carbon + + + + + + ${carbon.home}/repository/resources/security/client-truststore.jks + + JKS + + wso2carbon + + + + + + + + + + + + + + + + + + + UserManager + + + false + + + + + + + + + + ${carbon.home}/tmp/work + + + + + + true + + + 10 + + + 30 + + + + + + 100 + + + + keystore + certificate + * + + org.wso2.carbon.ui.transports.fileupload.AnyFileUploadExecutor + + + + + jarZip + + org.wso2.carbon.ui.transports.fileupload.JarZipUploadExecutor + + + + dbs + + org.wso2.carbon.ui.transports.fileupload.DBSFileUploadExecutor + + + + tools + + org.wso2.carbon.ui.transports.fileupload.ToolsFileUploadExecutor + + + + toolsAny + + org.wso2.carbon.ui.transports.fileupload.ToolsAnyFileUploadExecutor + + + + + + + info + org.wso2.carbon.core.transports.util.InfoProcessor + + + wsdl + org.wso2.carbon.core.transports.util.Wsdl11Processor + + + wsdl2 + org.wso2.carbon.core.transports.util.Wsdl20Processor + + + xsd + org.wso2.carbon.core.transports.util.XsdProcessor + + + + + + false + false + true + svn + http://svnrepo.example.com/repos/ + username + password + true + + + + + + + + + + + + + + + ${require.carbon.servlet} + + + + + true + + + + + + + default repository + http://dist.wso2.org/p2/carbon/releases/4.4.1-SNAPSHOT + + + + + + + + true + + + + + + true + + diff --git a/modules/distribution/src/repository/conf/data-bridge/data-bridge-config.xml b/modules/distribution/src/repository/conf/data-bridge/data-bridge-config.xml new file mode 100644 index 00000000..067101f7 --- /dev/null +++ b/modules/distribution/src/repository/conf/data-bridge/data-bridge-config.xml @@ -0,0 +1,72 @@ + + + + + 10 + 10000 + 30 + + + 7611 + 7711 + + + + 9611 + 9711 + 100 + 100 + + + + + \ No newline at end of file diff --git a/modules/distribution/src/statistics/IOT_Sensor_Analytics.car b/modules/distribution/src/statistics/IOT_Sensor_Analytics.car deleted file mode 100644 index 311489daf1dc2aa24ab727f01c0d7466d6bd2a0e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 8596 zcmb_g2{e@b7am*oB}>_g$WoTZmh4NiZ`t>;O?JcB6|#rW7qZJ*AzP%skdQ2q6xq{i z`IIG!tp9nNeBPO+^qupWGiS~mXP)2h-uv9=z4y`8ARwfNkf2_cv2-dB&>tm)24aKs zb~Y4F>o@#@M-OSds-@8?PZQPKQ(-b`RUl5SroKqfz@Xo2 zGo}gm6shmlj{UYW{<4;r!z$J*lls*Z+`qJ~{dLc^qje9(#w;wukJRS*Z5XvaS@R4g zkGpY8x8LoVvol%J>=?`AP-lO#*=t9icnf%vUAeCuy-DW{ zEQHt8vbC-!3buP@EzEvKVUzlRcW_EX`(`Sn8K_(I>O%n zRZNSpHate_vJQC`WmJ+(YfyAah`K|nd3cNbj1yOyS#!|UFT-kcNGn?@NVmt5KLI@i zsl+ldeER82&OCiKR;1>${AT8*`oNI#q}IXUC_MGz&ER`mH!=o#C~VBm@jnQrj<`jx z`JwoL27jTk8sehyZQYQ>*0RK;YtT6|&IaoQo*2eBKBp%hZ~+9OjZZqd&p??4)*0H3 z=*|+Z&gYHI-=L>Uxz2Wv;>=lXn(d&98!tM1xF2T3Bt(`am+nhlwl748fahhh(?;Vn0UUrloLN zN8jXo9ZMb#7y@sg4R%?9{WGAB|NQJv=z$H3n;xS7238REOQzUaGuSy;+gdMZX&Nn1 z8(q@9h<}BVfQNL4Wg(v@JGFO zN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_(?SV&L;Xt`)J9B zWKSb~JYQr{M2L$k1U;R5ZebfmdkQ%`XkKGY;k)vn=7Eeq-@#+euUnoq<-HCqv>3*O z+fpp7-j{u(LKAM+$y};c-SmUV5}SGD zkT8wt{;rK}h+J~h`2s-Xp6JH;Ih=7k;aj42T#<<_ zPvh#NP6PSvU67f~mX?E1*9$6-D^!`D29e3^BecT(; zIE_7btsGU3OxziUajJi1XQyvoEqXX0m~fe)4w^d^bn8)-pH>CqR~PGWn#T5Oo*5Gn zAJnlbNrXbpcZ}-;)W_%Z5wg}(df_H+~e-MSiz#kjb|LL<+{_@$^VSZ;i{{u6L6vhYM+GC{rWkG`v2pG^{ zCscsofIizm20bAtf7#LC!xMX>RG<(mNE&>_euE(QEDXNxORdW?e7VqW}gfxVeBe2{zE= z38Kj3*R-vwwf6q+jmq_~fKdtV7V%dkdqH6*kyYeB!~V|E07$U$Z3#FVz`X%`MZ6%` z!rv|P0Uj;{t7Y$f2dzPT`S9<&c7MMfb)YHCQfkvv2EiM(TgyZb$S6V z64+V+-qGz?8*rnD`NaVW zJ&82KOXJVbzg;vb*LDct>o{;qz?uo(YWYC8g~7#J;u0`yW77m5oS0$Y04qo}`hPR* z4;gGmF(3ml#UuzaxVrrSL>wbbW}Rce!V6vi1qos)GHlfaVv=pFzu=Alt0Z{;Q6Y$- z3EL_Lo@Lu#EZ0c^ESBJ&{d>^@KYFWoLN;H!)|m^eUEq9xIUT$U>>#3XHmf^kf3jYLi{y-_P9j{sLzOa|uk=!r-PYP>Bdcc9(C1hhD*HYVof7C!AZ1`U+UP%pEfdBpnGWlG^ literal 0 HcmV?d00001 diff --git a/modules/p2-profile-gen/pom.xml b/modules/p2-profile-gen/pom.xml index b9c940df..e123bddb 100644 --- a/modules/p2-profile-gen/pom.xml +++ b/modules/p2-profile-gen/pom.xml @@ -99,9 +99,7 @@ true - + @@ -128,6 +126,15 @@ org.wso2.carbon.devicemgt:org.wso2.carbon.webapp.authenticator.framework.server.feature:${carbon.device.mgt.version} + + org.wso2.carbon.devicemgt:org.wso2.carbon.certificate.mgt.server.feature:${carbon.device.mgt.version} + + + org.wso2.carbon.devicemgt:org.wso2.carbon.device.mgt.server.feature:${carbon.device.mgt.version} + + + org.wso2.carbon.devicemgt:org.wso2.carbon.device.mgt.analytics.server.feature:${carbon.device.mgt.version} + @@ -163,10 +170,6 @@ - - - - org.wso2.carbon.commons:org.wso2.carbon.databridge.datapublisher.feature:${carbon.commons.version} @@ -183,11 +186,7 @@ org.wso2.carbon.commons:org.wso2.carbon.ntask.core.feature:${carbon.commons.version} - - - - - + @@ -258,11 +257,9 @@ - org.wso2.carbon.identity:org.wso2.carbon.identity.authenticator.saml2.sso.feature:${carbon.identity.version} - org.wso2.carbon.identity:org.wso2.carbon.identity.sso.saml.feature:${carbon.identity.version} @@ -279,7 +276,6 @@ org.wso2.carbon.identity:org.wso2.carbon.identity.mgt.feature:${carbon.identity.version} - org.wso2.carbon.identity:org.wso2.carbon.identity.application.mgt.feature:${carbon.identity.version} @@ -287,7 +283,6 @@ org.wso2.carbon.identity:org.wso2.carbon.directory.service.mgr.feature:${carbon.identity.version} - org.wso2.carbon.identity:org.wso2.carbon.claim.mgt.server.feature:${carbon.identity.version} @@ -409,20 +404,6 @@ org.jaggeryjs.modules:markdown.feature:${markdown.feature.version} - - - - - - - - - - - - - - @@ -438,11 +419,6 @@ - - - - - org.wso2.carbon.store:org.wso2.carbon.store.feature:${carbon.store.version} @@ -505,69 +481,12 @@ org.wso2.carbon.registry:org.wso2.carbon.registry.contentsearch.server.feature:${carbon.registry.version} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - org.wso2.carbon.commons:org.wso2.carbon.event.feature:${carbon.commons.version} - - - - - - - - - - - - - - - - - @@ -586,10 +505,6 @@ org.wso2.carbon.mediation:org.apache.synapse.wso2.feature:${carbon.mediation.version} - - - - @@ -598,9 +513,6 @@ org.wso2.carbon.deployment:org.wso2.carbon.bam.service.agent.feature:${carbon.deployment.version} - - - @@ -624,8 +536,25 @@ org.wso2.carbon.analytics:org.wso2.carbon.analytics.messageconsole.feature:${carbon.analytics.version} + + org.wso2.carbon.analytics:org.wso2.carbon.analytics.dashboard.feature:${carbon.analytics.version} + + + org.wso2.carbon.analytics:org.wso2.carbon.analytics.activitydashboard.feature:${carbon.analytics.version} + + + org.wso2.carbon.analytics:org.wso2.carbon.analytics.webservice.feature:${carbon.analytics.version} + + + org.wso2.carbon.analytics:org.wso2.carbon.analytics.jsservice.feature:${carbon.analytics.version} + + + org.wso2.carbon.analytics:org.wso2.carbon.analytics.restapi.feature:${carbon.analytics.version} + + + org.wso2.carbon.commons:org.wso2.carbon.application.mgt.feature:${carbon.commons.version} @@ -701,8 +630,6 @@ org.wso2.ciphertool:org.wso2.ciphertool.feature:${cipher.tool.version} - - @@ -755,6 +682,14 @@ org.wso2.carbon.webapp.authenticator.framework.server.feature.group ${carbon.device.mgt.version} + + org.wso2.carbon.certificate.mgt.server.feature.group + ${carbon.device.mgt.version} + + + org.wso2.carbon.device.mgt.analytics.server.feature.group + ${carbon.device.mgt.version} + @@ -1051,11 +986,6 @@ org.wso2.carbon.registry.community.features.ui.feature.group ${carbon.registry.version} - - - - - @@ -1111,16 +1041,13 @@ ${axis2-transports.wso2.version} - - - + org.wso2.carbon.device.mgt.enterprise.store.feature.group ${carbon.device.mgt.version} - org.jaggeryjs.modules.caramel.feature.group ${caramel.feature.version} @@ -1129,16 +1056,13 @@ org.jaggeryjs.modules.handlebars.feature.group ${handlebars.feature.version} - - org.wso2.carbon.webapp.mgt.server.feature.group ${carbon.deployment.version} - @@ -1230,34 +1154,12 @@ org.wso2.ciphertool.feature.group ${ciphertool.version} - - - - - - - - - + org.wso2.carbon.system.statistics.feature.group ${carbon.commons.version} - - - - - - - - - - - - - - @@ -1286,6 +1188,26 @@ org.wso2.carbon.analytics.messageconsole.feature.group ${carbon.analytics.version} + + org.wso2.carbon.analytics.dashboard.feature.group + ${carbon.analytics.version} + + + org.wso2.carbon.analytics.activitydashboard.feature.group + ${carbon.analytics.version} + + + org.wso2.carbon.analytics.webservice.feature.group + ${carbon.analytics.version} + + + org.wso2.carbon.analytics.jsservice.feature.group + ${carbon.analytics.version} + + + org.wso2.carbon.analytics.restapi.feature.group + ${carbon.analytics.version} + diff --git a/modules/samples/android_sense/src/org.wso2.carbon.device.mgt.iot.sample.android.sense.plugin.impl/src/main/java/org/wso2/carbon/device/mgt/iot/sample/android/sense/plugin/impl/AndroidSenseManagerService.java b/modules/samples/android_sense/src/org.wso2.carbon.device.mgt.iot.sample.android.sense.plugin.impl/src/main/java/org/wso2/carbon/device/mgt/iot/sample/android/sense/plugin/impl/AndroidSenseManagerService.java index d33dddc7..edeadc48 100644 --- a/modules/samples/android_sense/src/org.wso2.carbon.device.mgt.iot.sample.android.sense.plugin.impl/src/main/java/org/wso2/carbon/device/mgt/iot/sample/android/sense/plugin/impl/AndroidSenseManagerService.java +++ b/modules/samples/android_sense/src/org.wso2.carbon.device.mgt.iot.sample.android.sense.plugin.impl/src/main/java/org/wso2/carbon/device/mgt/iot/sample/android/sense/plugin/impl/AndroidSenseManagerService.java @@ -19,6 +19,21 @@ public class AndroidSenseManagerService implements DeviceManagementService { return AndroidSenseConstants.DEVICE_TYPE; } + @Override + public String getProviderTenantDomain() { + return "carbon.super"; + } + + @Override + public boolean isSharedWithAllTenants() { + return true; + } + + @Override + public String[] getSharedTenantsDomain() { + return new String[0]; + } + @Override public void init() throws DeviceManagementException { deviceManager=new AndroidSenseManager(); diff --git a/modules/samples/arduino/src/org.wso2.carbon.device.mgt.iot.sample.arduino.plugin.impl/src/main/java/org/wso2/carbon/device/mgt/iot/sample/arduino/plugin/impl/ArduinoManagerService.java b/modules/samples/arduino/src/org.wso2.carbon.device.mgt.iot.sample.arduino.plugin.impl/src/main/java/org/wso2/carbon/device/mgt/iot/sample/arduino/plugin/impl/ArduinoManagerService.java index 2bf8ed58..d52390f7 100644 --- a/modules/samples/arduino/src/org.wso2.carbon.device.mgt.iot.sample.arduino.plugin.impl/src/main/java/org/wso2/carbon/device/mgt/iot/sample/arduino/plugin/impl/ArduinoManagerService.java +++ b/modules/samples/arduino/src/org.wso2.carbon.device.mgt.iot.sample.arduino.plugin.impl/src/main/java/org/wso2/carbon/device/mgt/iot/sample/arduino/plugin/impl/ArduinoManagerService.java @@ -20,6 +20,21 @@ public class ArduinoManagerService implements DeviceManagementService { return ArduinoConstants.DEVICE_TYPE; } + @Override + public String getProviderTenantDomain() { + return "carbon.super"; + } + + @Override + public boolean isSharedWithAllTenants() { + return true; + } + + @Override + public String[] getSharedTenantsDomain() { + return new String[0]; + } + @Override public void init() throws DeviceManagementException { deviceManager=new ArduinoManager(); diff --git a/modules/samples/arduino/src/org.wso2.carbon.device.mgt.iot.sample.arduino.service.impl/pom.xml b/modules/samples/arduino/src/org.wso2.carbon.device.mgt.iot.sample.arduino.service.impl/pom.xml index 802b3b46..81fb07ea 100644 --- a/modules/samples/arduino/src/org.wso2.carbon.device.mgt.iot.sample.arduino.service.impl/pom.xml +++ b/modules/samples/arduino/src/org.wso2.carbon.device.mgt.iot.sample.arduino.service.impl/pom.xml @@ -17,6 +17,12 @@ WSO2 Carbon - IoT Server API - Arduino API + + org.wso2.carbon + org.wso2.carbon.utils + provided + + org.wso2.carbon.devicemgt @@ -78,6 +84,10 @@ javax.ws.rs jsr311-api + + org.wso2.carbon.devicemgt + org.wso2.carbon.device.mgt.analytics + diff --git a/modules/samples/arduino/src/org.wso2.carbon.device.mgt.iot.sample.arduino.service.impl/src/main/java/org/wso2/carbon/device/mgt/iot/sample/arduino/service/impl/ArduinoControllerService.java b/modules/samples/arduino/src/org.wso2.carbon.device.mgt.iot.sample.arduino.service.impl/src/main/java/org/wso2/carbon/device/mgt/iot/sample/arduino/service/impl/ArduinoControllerService.java index 7bbfdbcd..952154c1 100644 --- a/modules/samples/arduino/src/org.wso2.carbon.device.mgt.iot.sample.arduino.service.impl/src/main/java/org/wso2/carbon/device/mgt/iot/sample/arduino/service/impl/ArduinoControllerService.java +++ b/modules/samples/arduino/src/org.wso2.carbon.device.mgt.iot.sample.arduino.service.impl/src/main/java/org/wso2/carbon/device/mgt/iot/sample/arduino/service/impl/ArduinoControllerService.java @@ -19,6 +19,9 @@ package org.wso2.carbon.device.mgt.iot.sample.arduino.service.impl; import org.apache.commons.httpclient.HttpStatus; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; +import org.wso2.carbon.context.PrivilegedCarbonContext; +import org.wso2.carbon.device.mgt.analytics.exception.DataPublisherConfigurationException; +import org.wso2.carbon.device.mgt.analytics.service.DeviceAnalyticsService; import org.wso2.carbon.device.mgt.common.DeviceManagementException; import org.wso2.carbon.device.mgt.iot.sample.arduino.service.impl.util.DeviceJSON; import org.wso2.carbon.device.mgt.iot.sample.arduino.service.impl.util.MqttArduinoSubscriber; @@ -169,20 +172,26 @@ public class ArduinoControllerService { @Path("/test/{value}") @POST - public void pushtData( @PathParam("value") String value,@Context HttpServletResponse response) { - - + public void pushtData(@PathParam("value") double value, @Context HttpServletResponse + response) { + + + PrivilegedCarbonContext.startTenantFlow(); + PrivilegedCarbonContext ctx = PrivilegedCarbonContext.getThreadLocalCarbonContext(); + ctx.setTenantDomain("carbon.super", true); + DeviceAnalyticsService deviceAnalyticsService = (DeviceAnalyticsService) ctx + .getOSGiService( + DeviceAnalyticsService.class, null); + Object metdaData[] = {"ayyoob", "firealarm", "123", System.currentTimeMillis()}; + Object payloadData[] = {value}; try { - DeviceController deviceController = new DeviceController(); - deviceController.pushBamData("ayyoob", "firealarm", "deviceID1", - System.currentTimeMillis(), "DeviceData" ,value, DataStreamDefinitions.StreamTypeLabel - .TEMPERATURE); - - - - } catch (UnauthorizedException e) { - response.setStatus(HttpStatus.SC_UNAUTHORIZED); + deviceAnalyticsService.publishEvent("org.wso2.iot.devices.temperature", "1.0.0", + metdaData, new Object[0], payloadData); + } catch (DataPublisherConfigurationException e) { + response.setStatus(HttpStatus.SC_INTERNAL_SERVER_ERROR); + } finally { + PrivilegedCarbonContext.endTenantFlow(); } } } diff --git a/modules/samples/arduino/src/org.wso2.carbon.device.mgt.iot.sample.arduino.service.impl/src/main/webapp/WEB-INF/web.xml b/modules/samples/arduino/src/org.wso2.carbon.device.mgt.iot.sample.arduino.service.impl/src/main/webapp/WEB-INF/web.xml index 7dbfdaaa..2175bbda 100755 --- a/modules/samples/arduino/src/org.wso2.carbon.device.mgt.iot.sample.arduino.service.impl/src/main/webapp/WEB-INF/web.xml +++ b/modules/samples/arduino/src/org.wso2.carbon.device.mgt.iot.sample.arduino.service.impl/src/main/webapp/WEB-INF/web.xml @@ -4,8 +4,8 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" metadata-complete="true"> - DigitalDisplay - DigitalDisplay + Arduino + Arduino CXFServlet diff --git a/modules/samples/digital_display/src/org.wso2.carbon.device.mgt.iot.sample.digitaldisplay.plugin.impl/src/main/java/org/wso2/carbon/device/mgt/iot/sample/digitaldisplay/plugin/impl/DigitalDisplayManagerService.java b/modules/samples/digital_display/src/org.wso2.carbon.device.mgt.iot.sample.digitaldisplay.plugin.impl/src/main/java/org/wso2/carbon/device/mgt/iot/sample/digitaldisplay/plugin/impl/DigitalDisplayManagerService.java index 9c29010f..d6909054 100644 --- a/modules/samples/digital_display/src/org.wso2.carbon.device.mgt.iot.sample.digitaldisplay.plugin.impl/src/main/java/org/wso2/carbon/device/mgt/iot/sample/digitaldisplay/plugin/impl/DigitalDisplayManagerService.java +++ b/modules/samples/digital_display/src/org.wso2.carbon.device.mgt.iot.sample.digitaldisplay.plugin.impl/src/main/java/org/wso2/carbon/device/mgt/iot/sample/digitaldisplay/plugin/impl/DigitalDisplayManagerService.java @@ -19,6 +19,21 @@ public class DigitalDisplayManagerService implements DeviceManagementService{ return DigitalDisplayConstants.DEVICE_TYPE; } + @Override + public String getProviderTenantDomain() { + return "carbon.super"; + } + + @Override + public boolean isSharedWithAllTenants() { + return true; + } + + @Override + public String[] getSharedTenantsDomain() { + return new String[0]; + } + @Override public void init() throws DeviceManagementException { deviceManager= new DigitalDisplayManager(); diff --git a/modules/samples/firealarm/src/org.wso2.carbon.device.mgt.iot.sample.firealarm.plugin.impl/src/main/java/org/wso2/carbon/device/mgt/iot/sample/firealarm/plugin/impl/FireAlarmManagerService.java b/modules/samples/firealarm/src/org.wso2.carbon.device.mgt.iot.sample.firealarm.plugin.impl/src/main/java/org/wso2/carbon/device/mgt/iot/sample/firealarm/plugin/impl/FireAlarmManagerService.java index 3853a021..22392f1e 100644 --- a/modules/samples/firealarm/src/org.wso2.carbon.device.mgt.iot.sample.firealarm.plugin.impl/src/main/java/org/wso2/carbon/device/mgt/iot/sample/firealarm/plugin/impl/FireAlarmManagerService.java +++ b/modules/samples/firealarm/src/org.wso2.carbon.device.mgt.iot.sample.firealarm.plugin.impl/src/main/java/org/wso2/carbon/device/mgt/iot/sample/firealarm/plugin/impl/FireAlarmManagerService.java @@ -19,6 +19,22 @@ public class FireAlarmManagerService implements DeviceManagementService{ return FireAlarmConstants.DEVICE_TYPE; } + + @Override + public String getProviderTenantDomain() { + return "carbon.super"; + } + + @Override + public boolean isSharedWithAllTenants() { + return true; + } + + @Override + public String[] getSharedTenantsDomain() { + return new String[0]; + } + @Override public void init() throws DeviceManagementException { this.deviceManager=new FireAlarmManager(); diff --git a/modules/samples/pom.xml b/modules/samples/pom.xml index b1683f02..33d20475 100644 --- a/modules/samples/pom.xml +++ b/modules/samples/pom.xml @@ -89,6 +89,12 @@ ${carbon.device.mgt.version} provided + + org.wso2.carbon.devicemgt + org.wso2.carbon.device.mgt.analytics + ${carbon.device.mgt.version} + provided + diff --git a/modules/samples/raspberrypi/src/org.wso2.carbon.device.mgt.iot.sample.raspberrypi.plugin.impl/src/main/java/org/wso2/carbon/device/mgt/iot/sample/raspberrypi/plugin/impl/RaspberrypiManagerService.java b/modules/samples/raspberrypi/src/org.wso2.carbon.device.mgt.iot.sample.raspberrypi.plugin.impl/src/main/java/org/wso2/carbon/device/mgt/iot/sample/raspberrypi/plugin/impl/RaspberrypiManagerService.java index 0f0cddaa..41272c9a 100644 --- a/modules/samples/raspberrypi/src/org.wso2.carbon.device.mgt.iot.sample.raspberrypi.plugin.impl/src/main/java/org/wso2/carbon/device/mgt/iot/sample/raspberrypi/plugin/impl/RaspberrypiManagerService.java +++ b/modules/samples/raspberrypi/src/org.wso2.carbon.device.mgt.iot.sample.raspberrypi.plugin.impl/src/main/java/org/wso2/carbon/device/mgt/iot/sample/raspberrypi/plugin/impl/RaspberrypiManagerService.java @@ -21,6 +21,21 @@ public class RaspberrypiManagerService implements DeviceManagementService { return RaspberrypiConstants.DEVICE_TYPE; } + @Override + public String getProviderTenantDomain() { + return "carbon.super"; + } + + @Override + public boolean isSharedWithAllTenants() { + return true; + } + + @Override + public String[] getSharedTenantsDomain() { + return new String[0]; + } + @Override public void init() throws DeviceManagementException { deviceManager = new RaspberrypiManager(); diff --git a/modules/samples/sensebot/src/org.wso2.carbon.device.mgt.iot.sample.sensebot.plugin.impl/src/main/java/org/wso2/carbon/device/mgt/iot/sample/sensebot/plugin/impl/SensebotManagerService.java b/modules/samples/sensebot/src/org.wso2.carbon.device.mgt.iot.sample.sensebot.plugin.impl/src/main/java/org/wso2/carbon/device/mgt/iot/sample/sensebot/plugin/impl/SensebotManagerService.java index 323ecbf7..ebd2568b 100644 --- a/modules/samples/sensebot/src/org.wso2.carbon.device.mgt.iot.sample.sensebot.plugin.impl/src/main/java/org/wso2/carbon/device/mgt/iot/sample/sensebot/plugin/impl/SensebotManagerService.java +++ b/modules/samples/sensebot/src/org.wso2.carbon.device.mgt.iot.sample.sensebot.plugin.impl/src/main/java/org/wso2/carbon/device/mgt/iot/sample/sensebot/plugin/impl/SensebotManagerService.java @@ -14,6 +14,22 @@ import java.util.List; public class SensebotManagerService implements DeviceManagementService { private DeviceManager deviceManager; + + @Override + public String getProviderTenantDomain() { + return "carbon.super"; + } + + @Override + public boolean isSharedWithAllTenants() { + return true; + } + + @Override + public String[] getSharedTenantsDomain() { + return new String[0]; + } + @Override public String getType() { return SensebotConstants.DEVICE_TYPE; diff --git a/pom.xml b/pom.xml index d960fac3..61c9005d 100644 --- a/pom.xml +++ b/pom.xml @@ -407,7 +407,11 @@ org.wso2.carbon.policy.mgt.core ${carbon.device.mgt.version} - + + org.wso2.carbon.devicemgt + org.wso2.carbon.device.mgt.analytics + ${carbon.device.mgt.version} + @@ -892,13 +896,13 @@ 1.0.3-SNAPSHOT - 5.0.2-SNAPSHOT + 5.0.2 3.0.0-SNAPSHOT 4.3.1-SNAPSHOT 1.0.0-wso2v3 1.0.0 1.0.1-SNAPSHOT - 2.0.4 + 2.0.5 3.1.0.wso2v2