From d9701885b9a69760021a0092f4cabe76cf6dcfb3 Mon Sep 17 00:00:00 2001 From: ayyoob Date: Sun, 13 Sep 2015 19:30:52 +0530 Subject: [PATCH] added das features --- modules/distribution/src/assembly/bin.xml | 123 +++++-- .../data-bridge/cassandra-datasink-config.xml | 24 -- .../conf/data-bridge/data-bridge-config.xml | 72 ---- .../conf/data-bridge/stream-definitions.xml | 23 ++ .../src/repository/conf/identity.xml | 318 +++++++++------- .../src/repository/conf/tomcat/context.xml | 43 ++- .../pom.xml | 144 ++++++++ modules/p2-profile-gen/pom.xml | 339 +++++++++++++++--- .../impl/ArduinoControllerService.java | 19 + pom.xml | 6 +- 10 files changed, 790 insertions(+), 321 deletions(-) delete mode 100755 modules/distribution/src/repository/conf/data-bridge/cassandra-datasink-config.xml delete mode 100755 modules/distribution/src/repository/conf/data-bridge/data-bridge-config.xml create mode 100644 modules/distribution/src/repository/conf/data-bridge/stream-definitions.xml create mode 100644 modules/feature/org.wso2.carbon.device.mgt.iot.util.feature/pom.xml diff --git a/modules/distribution/src/assembly/bin.xml b/modules/distribution/src/assembly/bin.xml index 0f0e732f..15ff35fa 100644 --- a/modules/distribution/src/assembly/bin.xml +++ b/modules/distribution/src/assembly/bin.xml @@ -197,12 +197,12 @@ - - src/repository/conf/data-bridge - ${pom.artifactId}-${pom.version}/repository/conf/data-bridge - - 755 - + + + + + + ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/dbscripts/service-provider @@ -718,9 +718,9 @@ - ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/security/application-authentication.xml + ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/identity/application-authentication.xml - ${pom.artifactId}-${pom.version}/repository/conf/security + ${pom.artifactId}-${pom.version}/repository/conf/identity true 644 @@ -729,9 +729,9 @@ - ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/thrift-authentication.xml + ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/identity/thrift-authentication.xml - ${pom.artifactId}-${pom.version}/repository/conf + ${pom.artifactId}-${pom.version}/repository/conf/identity true 644 @@ -749,7 +749,7 @@ src/repository/conf/identity.xml - ${pom.artifactId}-${pom.version}/repository/conf + ${pom.artifactId}-${pom.version}/repository/conf/identity 644 @@ -792,16 +792,16 @@ 644 - + - - - - - - - - + + + ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/etc/webapp-authenticator-config.xml + + ${pom.artifactId}-${pom.version}/repository/conf/etc + true + 644 + @@ -1020,25 +1020,98 @@ + + + + + + + + + + - ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/etc/bam.xml + ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/datasources/analytics-datasources.xml - ${pom.artifactId}-${pom.version}/repository/conf/etc + ${pom.artifactId}-${pom.version}/repository/conf/datasources true 644 - + + - ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/datasources/analytics-datasources.xml + ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/event-processor.xml - ${pom.artifactId}-${pom.version}/repository/conf/datasources + ${pom.artifactId}-${pom.version}/repository/conf/ + + true + + + + + ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/output-event-adapters.xml + + ${pom.artifactId}-${pom.version}/repository/conf + true 644 + + + ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/input-event-adapters.xml + + ${pom.artifactId}-${pom.version}/repository/conf + + true + 644 + + + + + ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/data-bridge/data-bridge-config.xml + ${pom.artifactId}-${pom.version}/repository/conf/data-bridge + true + 644 + + + src/repository/conf/data-bridge/stream-definitions.xml + ${pom.artifactId}-${pom.version}/repository/conf/data-bridge + + + + ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/data-bridge/data-agent-config.xml + + ${pom.artifactId}-${pom.version}/repository/conf/data-bridge + + true + 644 + + + + + + ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/spark/spark-udf-config.xml + + + ${pom.artifactId}-${pom.version}/repository/conf/spark/ + + 755 + + + + + ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/spark/spark-defaults.conf + + ${pom.artifactId}-${pom.version}/repository/conf/spark/ + + 755 + + + diff --git a/modules/distribution/src/repository/conf/data-bridge/cassandra-datasink-config.xml b/modules/distribution/src/repository/conf/data-bridge/cassandra-datasink-config.xml deleted file mode 100755 index 4c0845dd..00000000 --- a/modules/distribution/src/repository/conf/data-bridge/cassandra-datasink-config.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - * - rt_* - - 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 deleted file mode 100755 index d4b81aad..00000000 --- a/modules/distribution/src/repository/conf/data-bridge/data-bridge-config.xml +++ /dev/null @@ -1,72 +0,0 @@ - - - - - org.wso2.carbon.databridge.streamdefn.cassandra.datastore.CassandraStreamDefinitionStore - - 10 - 10000 - 30000 - EVENT_KS - - - - - 7611 - 7711 - - - - - diff --git a/modules/distribution/src/repository/conf/data-bridge/stream-definitions.xml b/modules/distribution/src/repository/conf/data-bridge/stream-definitions.xml new file mode 100644 index 00000000..5be0fb28 --- /dev/null +++ b/modules/distribution/src/repository/conf/data-bridge/stream-definitions.xml @@ -0,0 +1,23 @@ + + + + + + + \ No newline at end of file diff --git a/modules/distribution/src/repository/conf/identity.xml b/modules/distribution/src/repository/conf/identity.xml index 929d6ea6..e9af104a 100755 --- a/modules/distribution/src/repository/conf/identity.xml +++ b/modules/distribution/src/repository/conf/identity.xml @@ -1,66 +1,44 @@ - + - https://localhost:9443/openidserver - - https://localhost:9443/openid/ - - false - - 7200 - - + jdbc/WSO2AM_DB - - true + + + + + - 120 - 20160 - 20160 - 1140 + 120 + 20160 + 20160 + 1140 - + - - ${carbon.home}/repository/resources/security/userRP.jks - - JKS - - wso2carbon - - wso2carbon - - - + ${carbon.home}/conf/keystores @@ -76,8 +54,14 @@ - https://localhost:9443/openidserver - https://localhost:9443/openid/ + + + + false @@ -90,7 +74,42 @@ 36000 false - org.wso2.carbon.identity.provider.openid.claims.DefaultClaimsRetriever + org.wso2.carbon.identity.provider.openid.claims.DefaultClaimsRetriever + + + + + + + + + + + + + + + + + + + @@ -98,46 +117,42 @@ -1 -1 -1 - https://localhost:9443/oauth/request-token - https://localhost:9443/oauth/access-token - https://localhost:9443/oauth/authorize-url - - - - + + https://localhost:9443/oauth/request-token + https://localhost:9443/oauth/authorize-url + https://localhost:9443/oauth/access-token + + + 300 - + 3600 - - 3600 - + 3600 84600 300 - + true true org.wso2.carbon.identity.oauth.tokenprocessor.PlainTextPersistenceProcessor - + false - @@ -157,8 +172,7 @@ password - - + org.wso2.carbon.apimgt.keymgt.handlers.ExtendedPasswordGrantHandler @@ -184,48 +198,39 @@ + + + false + - - - - - - - - - false - - - - false - - - - - - false - org.wso2.carbon.identity.oauth2.authcontext.JWTTokenGenerator - org.wso2.carbon.identity.oauth2.authcontext.DefaultClaimsRetriever - http://wso2.org/claims - SHA256withRSA - 15 - - + + false + + + + false + org.wso2.carbon.identity.oauth2.authcontext.JWTTokenGenerator + org.wso2.carbon.identity.oauth2.authcontext.DefaultClaimsRetriever + http://wso2.org/claims + SHA256withRSA + 15 + - - - - + + + org.wso2.carbon.identity.openidconnect.DefaultIDTokenBuilder - https://localhost:9443/oauth2endpoints/token + + http://wso2.org/claims/givenname org.wso2.carbon.identity.openidconnect.SAMLAssertionClaimsCallback 3600 @@ -239,6 +244,7 @@ + gtalk @@ -255,11 +261,18 @@ 157680000 157680000 localhost - https://localhost:9443/samlsso + + 5 - 60000 + 60000 + false - 36000 + 36000 + org.wso2.carbon.identity.sso.saml.attributes.UserAttributeStatementBuilder http://wso2.org/claims @@ -276,12 +289,28 @@ false + + + + + + + + + + - + true 36000 @@ -290,7 +319,7 @@ true - true + false ${Ports.ThriftEntitlementReceivePort} 10000 @@ -302,23 +331,42 @@ - - - 5 - - - 10 - local://services - - - + + + + + + + 5 + + + 10 + local://services + + + + + - - false + + + + + + \ No newline at end of file diff --git a/modules/distribution/src/repository/conf/tomcat/context.xml b/modules/distribution/src/repository/conf/tomcat/context.xml index 96452af2..a41e5b6f 100644 --- a/modules/distribution/src/repository/conf/tomcat/context.xml +++ b/modules/distribution/src/repository/conf/tomcat/context.xml @@ -17,7 +17,7 @@ --> - + @@ -34,17 +34,40 @@ - - + + + + \ No newline at end of file diff --git a/modules/feature/org.wso2.carbon.device.mgt.iot.util.feature/pom.xml b/modules/feature/org.wso2.carbon.device.mgt.iot.util.feature/pom.xml new file mode 100644 index 00000000..b136896d --- /dev/null +++ b/modules/feature/org.wso2.carbon.device.mgt.iot.util.feature/pom.xml @@ -0,0 +1,144 @@ + + + + + + + org.wso2.iot + wso2iot-parent + 1.0.0-SNAPSHOT + ../../pom.xml + + + 4.0.0 + org.wso2.carbon.device.mgt.iot.util.feature + 1.0.0-SNAPSHOT + pom + WSO2 IoT Server - Util Featue + WSO2 IoT Server Util Feature + + + + + org.wso2.carbon.device.mgt.iot + org.wso2.carbon.device.mgt.iot.common + + + + + org.wso2.carbon.device.mgt.iot + org.wso2.carbon.device.mgt.iot.common.api + war + + + + org.json.wso2 + json + + + + + + + + maven-resources-plugin + + + copy-resources + generate-resources + + copy-resources + + + src/main/resources + + + resources + + build.properties + p2.inf + + + + + + + + + org.apache.maven.plugins + maven-dependency-plugin + + + copy + package + + copy + + + + + org.wso2.carbon.device.mgt.iot + org.wso2.carbon.device.mgt.iot.common.api + war + true + ${basedir}/src/main/resources/webapps/ + common.war + + + + + + + + org.wso2.maven + carbon-p2-plugin + + + p2-feature-generation + package + + p2-feature-gen + + + org.wso2.carbon.device.mgt.iot + ../../../features/etc/feature.properties + + + org.wso2.carbon.p2.category.type:server + org.eclipse.equinox.p2.type.group:false + + + + + org.wso2.carbon.device.mgt.iot:org.wso2.carbon.device.mgt.iot.common:${carbon.iot.device.mgt.version} + + + org.wso2.carbon.devicemgt:org.wso2.carbon.device.mgt.common:${carbon.device.mgt.version} + + + org.json.wso2:json:${commons-json.version} + + + + + + + + + diff --git a/modules/p2-profile-gen/pom.xml b/modules/p2-profile-gen/pom.xml index 91feb5e8..b9c940df 100644 --- a/modules/p2-profile-gen/pom.xml +++ b/modules/p2-profile-gen/pom.xml @@ -125,10 +125,9 @@ org.wso2.carbon.devicemgt:org.wso2.carbon.device.mgt.group.server.feature:${carbon.device.mgt.version} - - - - + + org.wso2.carbon.devicemgt:org.wso2.carbon.webapp.authenticator.framework.server.feature:${carbon.device.mgt.version} + @@ -150,10 +149,9 @@ org.jaggeryjs.modules:jaggery-test.feature:${jaggery.extensions.test.version} - - - - + + org.jaggeryjs.modules:i18n.feature:${jaggery.extensions.version} + @@ -245,9 +243,6 @@ org.wso2.carbon.identity:org.wso2.carbon.identity.authenticator.saml2.sso.ui.feature:${carbon.identity.version} - - org.wso2.carbon.identity:org.wso2.carbon.identity.sso.saml.feature:${carbon.identity.version} - @@ -257,6 +252,9 @@ org.wso2.carbon.identity:org.wso2.carbon.claim.mgt.feature:${carbon.identity.version} + + org.wso2.carbon.identity:org.wso2.carbon.identity.notification.mgt.feature:${carbon.identity.version} + @@ -285,6 +283,10 @@ org.wso2.carbon.identity:org.wso2.carbon.identity.application.mgt.feature:${carbon.identity.version} + + + 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} @@ -294,7 +296,7 @@ org.wso2.carbon.identity:org.wso2.carbon.identity.core.feature:${carbon.identity.version} - org.wso2.carbon.identity:org.wso2.carbon.identity.self.registration.server.feature:${carbon.identity.version} + org.wso2.carbon.identity:org.wso2.carbon.identity.user.registration.server.feature:${carbon.identity.version} org.wso2.carbon.identity:org.wso2.carbon.um.ws.service.server.feature:${carbon.identity.version} @@ -305,9 +307,9 @@ org.wso2.carbon.identity:org.wso2.carbon.identity.provider.server.feature:${carbon.identity.version} - - org.wso2.carbon.identity:org.wso2.carbon.identity.relying.party.server.feature:${carbon.identity.version} - + + + org.wso2.carbon.identity:org.wso2.carbon.um.ws.service.client.feature:${carbon.identity.version} @@ -428,9 +430,9 @@ org.wso2.carbon.deployment:org.wso2.carbon.module.mgt.server.feature:${carbon.deployment.version} - - org.wso2.carbon.deployment:org.wso2.carbon.webapp.mgt.server.feature:${carbon.deployment.version} - + + + @@ -585,9 +587,9 @@ - - org.wso2.carbon.analytics:org.wso2.carbon.analytics.lite.feature:${carbon.analytics.version} - + + + @@ -600,6 +602,108 @@ + + + + + + org.wso2.carbon.analytics:org.wso2.carbon.analytics.core.feature:${carbon.analytics.version} + + + org.wso2.carbon.analytics:org.wso2.carbon.analytics.datasource.feature:${carbon.analytics.version} + + + org.wso2.carbon.analytics:org.wso2.carbon.analytics.spark.feature:${carbon.analytics.version} + + + org.wso2.carbon.analytics:org.wso2.carbon.analytics.api.feature:${carbon.analytics.version} + + + org.wso2.carbon.analytics-common:org.wso2.carbon.spark.commons.feature:${carbon.analytics.common.version} + + + org.wso2.carbon.analytics:org.wso2.carbon.analytics.messageconsole.feature:${carbon.analytics.version} + + + + + + org.wso2.carbon.commons:org.wso2.carbon.application.mgt.feature:${carbon.commons.version} + + + + + + org.wso2.carbon.analytics-common:org.wso2.carbon.databridge.datareceiver.feature:${carbon.analytics.common.version} + + + org.wso2.carbon.analytics-common:org.wso2.carbon.databridge.streamdefn.filesystem.server.feature:${carbon.analytics.common.version} + + + org.wso2.carbon.analytics-common:org.wso2.carbon.databridge.datapublisher.feature:${carbon.analytics.common.version} + + + org.wso2.carbon.analytics:org.wso2.carbon.analytics.eventsink.feature:${carbon.analytics.version} + + + org.wso2.carbon.analytics:org.wso2.carbon.analytics.eventtable.feature:${carbon.analytics.version} + + + + + + org.wso2.carbon.analytics-common:org.wso2.carbon.event.receiver.feature:${carbon.analytics.common.version} + + + org.wso2.carbon.analytics-common:org.wso2.carbon.event.publisher.feature:${carbon.analytics.common.version} + + + org.wso2.carbon.event-processing:org.wso2.carbon.event.processor.feature:${carbon.event-processing.version} + + + org.wso2.carbon.analytics-common:org.wso2.carbon.event.tracer.feature:${carbon.analytics.common.version} + + + org.wso2.carbon.event-processing:org.wso2.carbon.event.flow.feature:${carbon.event-processing.version} + + + org.wso2.carbon.analytics-common:org.wso2.carbon.event.statistics.feature:${carbon.analytics.common.version} + + + org.wso2.carbon.analytics-common:org.wso2.carbon.event.stream.feature:${carbon.analytics.common.version} + + + org.wso2.carbon.event-processing:org.wso2.carbon.event.simulator.feature:${carbon.event-processing.version} + + + org.wso2.carbon.analytics-common:org.wso2.carbon.event.application.deployer.feature:${carbon.analytics.common.version} + + + org.wso2.carbon.analytics-common:org.wso2.carbon.event.processor.manager.core.feature:${carbon.analytics.common.version} + + + org.wso2.carbon.analytics-common:org.wso2.carbon.event.processor.manager.commons.feature:${carbon.analytics.common.version} + + + org.wso2.carbon.analytics:org.wso2.carbon.analytics.stream.persistence.server.feature:${carbon.analytics.version} + + + org.wso2.carbon.event-processing:org.wso2.carbon.event.execution.manager.feature:${carbon.event-processing.version} + + + + org.wso2.carbon.commons:org.wso2.carbon.tryit.feature:${carbon.commons.version} + + + org.wso2.carbon.event-processing:org.wso2.carbon.siddhi.tryit.feature:${carbon.event-processing.version} + + + org.wso2.ciphertool:org.wso2.ciphertool.feature:${cipher.tool.version} + + + + + @@ -647,11 +751,10 @@ org.wso2.carbon.device.mgt.group.server.feature.group ${carbon.device.mgt.version} - - - - - + + org.wso2.carbon.webapp.authenticator.framework.server.feature.group + ${carbon.device.mgt.version} + @@ -679,11 +782,10 @@ org.jaggeryjs.modules.jaggery-test.feature.group ${jaggery.extensions.test.version} - - - - - + + org.jaggeryjs.modules.i18n.feature.group + ${jaggery.extensions.version} + @@ -709,10 +811,10 @@ - - org.wso2.carbon.databridge.datapublisher.feature.group - ${carbon.commons.version} - + + + + org.wso2.carbon.event.server.feature.group ${carbon.commons.version} @@ -841,6 +943,10 @@ org.wso2.carbon.identity.application.mgt.server.feature.group ${carbon.identity.version} + + org.wso2.carbon.directory.service.mgr.feature.group + ${carbon.identity.version} + org.wso2.carbon.idp.mgt.server.feature.group ${carbon.identity.version} @@ -859,6 +965,10 @@ org.wso2.carbon.claim.mgt.server.feature.group ${carbon.identity.version} + + org.wso2.carbon.identity.notification.mgt.feature.group + ${carbon.identity.version} + org.wso2.carbon.claim.mgt.feature.group @@ -866,18 +976,18 @@ - + + + + org.wso2.carbon.identity.core.feature.group ${carbon.identity.version} - - org.wso2.carbon.identity.self.registration.server.feature.group - ${carbon.identity.version} - + + + + org.wso2.carbon.identity.oauth.feature.group ${carbon.identity.version} @@ -886,10 +996,10 @@ org.wso2.carbon.identity.provider.server.feature.group ${carbon.identity.version} - - org.wso2.carbon.identity.relying.party.server.feature.group - ${carbon.identity.version} - + + + + org.wso2.carbon.um.ws.service.server.feature.group ${carbon.identity.version} @@ -1134,20 +1244,145 @@ org.wso2.carbon.system.statistics.feature.group ${carbon.commons.version} - - org.wso2.carbon.bam.service.agent.feature.group - ${carbon.deployment.version} - + + + + + + + + + + + + org.wso2.carbon.analytics.core.feature.group + ${carbon.analytics.version} + + + org.wso2.carbon.analytics.datasource.feature.group + ${carbon.analytics.version} + + + org.wso2.carbon.analytics.spark.feature.group + ${carbon.analytics.version} + + + org.wso2.carbon.analytics.api.feature.group + ${carbon.analytics.version} + + + org.wso2.carbon.spark.commons.feature.group + ${carbon.analytics.common.version} + + + + + org.wso2.carbon.analytics.messageconsole.feature.group + ${carbon.analytics.version} + + + + + org.wso2.carbon.application.mgt.feature.group + ${carbon.commons.version} + + + + + + org.wso2.carbon.databridge.datareceiver.feature.group + ${carbon.analytics.common.version} + + + org.wso2.carbon.databridge.streamdefn.filesystem.server.feature.group + ${carbon.analytics.common.version} + + + org.wso2.carbon.databridge.datapublisher.feature.group + ${carbon.analytics.common.version} + + + org.wso2.carbon.analytics.eventsink.feature.group + ${carbon.analytics.version} + + + org.wso2.carbon.analytics.eventtable.feature.group + ${carbon.analytics.version} + + + + + + + org.wso2.carbon.event.receiver.feature.group + ${carbon.analytics.common.version} + + + org.wso2.carbon.event.publisher.feature.group + ${carbon.analytics.common.version} + - org.wso2.carbon.analytics.lite.feature.group + org.wso2.carbon.event.processor.feature.group + ${carbon.event-processing.version} + + + org.wso2.carbon.event.tracer.feature.group + ${carbon.analytics.common.version} + + + org.wso2.carbon.event.flow.feature.group + ${carbon.event-processing.version} + + + org.wso2.carbon.event.statistics.feature.group + ${carbon.analytics.common.version} + + + org.wso2.carbon.event.stream.feature.group + ${carbon.analytics.common.version} + + + org.wso2.carbon.event.simulator.feature.group + ${carbon.event-processing.version} + + + org.wso2.carbon.event.application.deployer.feature.group + ${carbon.analytics.common.version} + + + org.wso2.carbon.event.processor.manager.core.feature.group + ${carbon.analytics.common.version} + + + org.wso2.carbon.event.processor.manager.commons.feature.group + ${carbon.analytics.common.version} + + + org.wso2.carbon.analytics.stream.persistence.server.feature.group ${carbon.analytics.version} + + org.wso2.carbon.event.execution.manager.feature.group + ${carbon.event-processing.version} + + + + + + org.wso2.carbon.tryit.feature.group + ${carbon.commons.version} + + + org.wso2.carbon.siddhi.tryit.feature.group + ${carbon.event-processing.version} + + 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 926113ff..7bbfdbcd 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 @@ -161,6 +161,25 @@ public class ArduinoControllerService { response.setStatus(HttpStatus.SC_INTERNAL_SERVER_ERROR); } + } catch (UnauthorizedException e) { + response.setStatus(HttpStatus.SC_UNAUTHORIZED); + + } + } + + @Path("/test/{value}") + @POST + public void pushtData( @PathParam("value") String value,@Context HttpServletResponse response) { + + + 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); diff --git a/pom.xml b/pom.xml index ecee9a5b..d960fac3 100644 --- a/pom.xml +++ b/pom.xml @@ -852,7 +852,7 @@ 4.5.2 - 4.5.6 + 4.5.10-SNAPSHOT 4.4.1 @@ -892,13 +892,13 @@ 1.0.3-SNAPSHOT - 5.0.1-SNAPSHOT + 5.0.2-SNAPSHOT 3.0.0-SNAPSHOT 4.3.1-SNAPSHOT 1.0.0-wso2v3 1.0.0 1.0.1-SNAPSHOT - 2.0.4-SNAPSHOT + 2.0.4 3.1.0.wso2v2