refactored package and removed unused dependency

This commit is contained in:
ayyoob 2015-08-13 01:50:42 +05:30
parent 7d44f2ae19
commit e5972d1a03
64 changed files with 1292 additions and 774 deletions

View File

@ -1 +1 @@
# product-device-cloud # product-iot-server

View File

@ -21,18 +21,22 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent> <parent>
<groupId>org.wso2.dc</groupId> <groupId>org.wso2.iot</groupId>
<artifactId>wso2dc-parent</artifactId> <artifactId>wso2iot-parent</artifactId>
<version>1.0.0-SNAPSHOT</version> <version>1.0.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath> <relativePath>../../pom.xml</relativePath>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>wso2dc</artifactId> <artifactId>wso2iot</artifactId>
<version>1.0.0-SNAPSHOT</version> <version>1.0.0-SNAPSHOT</version>
<packaging>pom</packaging> <packaging>pom</packaging>
<name>WSO2 Device Cloud (DC) - Distribution</name> <name>WSO2 IoT Server - Distribution</name>
<description>WSO2 Device Cloud (DC) Distribution</description> <description>WSO2 IoT Server Distribution</description>
<modules>
<module>src/samples</module>
</modules>
<dependencies> <dependencies>
<dependency> <dependency>
@ -364,17 +368,17 @@
<!--<property name="shindig.version" value="2.5.0-beta5" />--> <!--<property name="shindig.version" value="2.5.0-beta5" />-->
<mkdir dir="${tempdir}"/> <mkdir dir="${tempdir}"/>
<mkdir dir="${tempdir}/wso2dc-${project.version}/repository/components"/> <mkdir dir="${tempdir}/wso2iot-${project.version}/repository/components"/>
<mkdir dir="${tempdir}/wso2dc-${project.version}/repository/deployment/server"/> <mkdir dir="${tempdir}/wso2iot-${project.version}/repository/deployment/server"/>
<mkdir dir="${tempdir}/wso2dc-${project.version}/repository/deployment/server/webapps"/> <mkdir dir="${tempdir}/wso2iot-${project.version}/repository/deployment/server/webapps"/>
<unzip dest="${tempdir}"> <unzip dest="${tempdir}">
<fileset dir="target"> <fileset dir="target">
<include name="wso2dc-${project.version}.zip"/> <include name="wso2iot-${project.version}.zip"/>
</fileset> </fileset>
</unzip> </unzip>
<copy todir="target/wso2carbon-core-${carbon.kernel.version}/repository/components" <copy todir="target/wso2carbon-core-${carbon.kernel.version}/repository/components"
overwrite="true"> overwrite="true">
<fileset dir="${tempdir}/wso2dc-${project.version}/repository/components"/> <fileset dir="${tempdir}/wso2iot-${project.version}/repository/components"/>
</copy> </copy>
<!--testing --> <!--testing -->
<!--<unzip src="target/shindig/WEB-INF/lib/shindig-common-${shindig.version}.jar" dest="${jardir}/shindig-common-${shindig.version}"> <!--<unzip src="target/shindig/WEB-INF/lib/shindig-common-${shindig.version}.jar" dest="${jardir}/shindig-common-${shindig.version}">
@ -394,7 +398,7 @@
og4j.logger.net.sf.ehcache=ERROR og4j.logger.net.sf.ehcache=ERROR
</concat> </concat>
<delete file="target/wso2dc-${project.version}.zip"/> <delete file="target/wso2iot-${project.version}.zip"/>
<delete dir="${tempdir}"/> <delete dir="${tempdir}"/>
</tasks> </tasks>
</configuration> </configuration>
@ -513,7 +517,7 @@
<delete dir="target/dependency-maven-plugin-markers"/> <delete dir="target/dependency-maven-plugin-markers"/>
<delete dir="target/maven-archiver"/> <delete dir="target/maven-archiver"/>
<delete dir="target/wso2carbon-core-${carbon.kernel.version}"/> <delete dir="target/wso2carbon-core-${carbon.kernel.version}"/>
<delete file="target/wso2dc-${project.version}.jar"/> <delete file="target/wso2iot-${project.version}.jar"/>
<delete dir="target/sources"/> <delete dir="target/sources"/>
<delete dir="target/site"/> <delete dir="target/site"/>
<delete dir="target/antrun"/> <delete dir="target/antrun"/>

View File

@ -277,7 +277,7 @@
</directory> </directory>
<outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/webapps</outputDirectory> <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/webapps</outputDirectory>
<includes> <includes>
<include>devicecloud.war</include> <include>common.war</include>
</includes> </includes>
</fileSet> </fileSet>

View File

@ -26,7 +26,7 @@
<!-- Copying p2 profile and osgi bundles--> <!-- Copying p2 profile and osgi bundles-->
<fileSet> <fileSet>
<directory>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/components</directory> <directory>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/components</directory>
<outputDirectory>wso2dc-${pom.version}/repository/components</outputDirectory> <outputDirectory>wso2iot-${pom.version}/repository/components</outputDirectory>
<excludes> <excludes>
<exclude>**/eclipse.ini</exclude> <exclude>**/eclipse.ini</exclude>
<exclude>**/*.lock</exclude> <exclude>**/*.lock</exclude>

View File

@ -25,11 +25,11 @@
<fileSets> <fileSets>
<fileSet> <fileSet>
<directory>target/site</directory> <directory>target/site</directory>
<outputDirectory>wso2dc-${pom.version}-docs</outputDirectory> <outputDirectory>wso2iot-${pom.version}-docs</outputDirectory>
</fileSet> </fileSet>
<fileSet> <fileSet>
<directory>../../modules/documentation/src/site/xdoc/user-core</directory> <directory>../../modules/documentation/src/site/xdoc/user-core</directory>
<outputDirectory>wso2dc-${pom.version}-docs/user-core</outputDirectory> <outputDirectory>wso2iot-${pom.version}-docs/user-core</outputDirectory>
<fileMode>755</fileMode> <fileMode>755</fileMode>
<includes> <includes>
<include>user-mgt-actdir.xml</include> <include>user-mgt-actdir.xml</include>

View File

@ -1,4 +1,4 @@
product.name=WSO2 Device Cloud product.name=WSO2 IoT Server
product.version=1.0.0-SNAPSHOT product.version=1.0.0-SNAPSHOT
product.key=DC product.key=DC
hotdeployment=true hotdeployment=true

View File

@ -118,13 +118,13 @@ if (uriMatcher.match("/{context}/api/device/sketch/download/{downloadId}")) {
} }
//URL: https://localhost:9443/devicecloud/manager/devices/username/{username} //URL: https://localhost:9443/devicecloud/manager/devices/username/{username}
deviceCloudService = carbonHttpsServletTransport + "/devicecloud/device_manager"; deviceCloudService = carbonHttpsServletTransport + "/common/device_manager";
listAllDevicesEndPoint = deviceCloudService + "/devices/username/" + user.username; listAllDevicesEndPoint = deviceCloudService + "/devices/username/" + user.username;
result = get(listAllDevicesEndPoint, {}, "json"); result = get(listAllDevicesEndPoint, {}, "json");
var ownDevices = result.data; var ownDevices = result.data;
var allDevices = []; var allDevices = [];
deviceCloudService = carbonHttpsServletTransport + "/devicecloud/group_manager"; deviceCloudService = carbonHttpsServletTransport + "/common/group_manager";
var endPoint = deviceCloudService + "/group/all"; var endPoint = deviceCloudService + "/group/all";
var data = {"username": user.username}; var data = {"username": user.username};
var groups = get(endPoint, data, "json").data; var groups = get(endPoint, data, "json").data;
@ -161,13 +161,13 @@ if (uriMatcher.match("/{context}/api/device/sketch/download/{downloadId}")) {
} }
//URL: https://localhost:9443/devicecloud/manager/devices/username/{username} //URL: https://localhost:9443/devicecloud/manager/devices/username/{username}
deviceCloudService = carbonHttpsServletTransport + "/devicecloud/device_manager"; deviceCloudService = carbonHttpsServletTransport + "/common/device_manager";
listAllDevicesEndPoint = deviceCloudService + "/devices/username/" + user.username; listAllDevicesEndPoint = deviceCloudService + "/devices/username/" + user.username;
result = get(listAllDevicesEndPoint, {}, "json"); result = get(listAllDevicesEndPoint, {}, "json");
var ownDevices = result.data; var ownDevices = result.data;
var allDevices = []; var allDevices = [];
deviceCloudService = carbonHttpsServletTransport + "/devicecloud/group_manager"; deviceCloudService = carbonHttpsServletTransport + "/common/group_manager";
var endPoint = deviceCloudService + "/group/all"; var endPoint = deviceCloudService + "/group/all";
var data = {"username": user.username}; var data = {"username": user.username};
var groups = get(endPoint, data, "json").data; var groups = get(endPoint, data, "json").data;

View File

@ -27,7 +27,7 @@ var dcProps = require('/config/dc-props.js').config();
var carbon = require('carbon'); var carbon = require('carbon');
var carbonHttpsServletTransport = carbon.server.address('https'); var carbonHttpsServletTransport = carbon.server.address('https');
var deviceCloudService = carbonHttpsServletTransport + "/devicecloud/group_manager"; var deviceCloudService = carbonHttpsServletTransport + "/common/group_manager";
var user = session.get(constants.USER_SESSION_KEY); var user = session.get(constants.USER_SESSION_KEY);
if (!user) { if (!user) {

View File

@ -38,7 +38,7 @@ if (!user) {
var carbon = require('carbon'); var carbon = require('carbon');
var carbonHttpsServletTransport = carbon.server.address('https'); var carbonHttpsServletTransport = carbon.server.address('https');
var deviceCloudService = carbonHttpsServletTransport + "/devicecloud/group_manager"; var deviceCloudService = carbonHttpsServletTransport + "/common/group_manager";
var statsClient = new Packages.org.wso2.carbon.device.mgt.iot.common.analytics.statistics.IoTUsageStatisticsClient; var statsClient = new Packages.org.wso2.carbon.device.mgt.iot.common.analytics.statistics.IoTUsageStatisticsClient;
var stats = {}; var stats = {};

View File

@ -16,7 +16,7 @@
* under the License. * under the License.
*/ */
var WEB_APP_TITLE = "WSO2 DC - Device Cloud"; var WEB_APP_TITLE = "WSO2 IoT - IoT Server";
var WEB_APP_CONTEXT = "/iotserver"; var WEB_APP_CONTEXT = "/iotserver";
var USER_SESSION_KEY = "USER"; var USER_SESSION_KEY = "USER";
var UNSPECIFIED = "Unspecified"; var UNSPECIFIED = "Unspecified";

View File

@ -1,7 +1,7 @@
{{authorized}} {{authorized}}
{{layout "fluid"}} {{layout "fluid"}}
{{#zone "title"}} {{#zone "title"}}
WSO2 DC | Device Cloud WSO2 IoT | IoT Server
{{/zone}} {{/zone}}
{{#zone "body"}} {{#zone "body"}}
{{unit "appbar" title="Dashboard"}} {{unit "appbar" title="Dashboard"}}

View File

@ -1,6 +1,6 @@
{{layout "fluid"}} {{layout "fluid"}}
{{#zone "title"}} {{#zone "title"}}
WSO2 DC | Device Cloud WSO2 IoT | IoT Server
{{/zone}} {{/zone}}
{{#zone "body"}} {{#zone "body"}}
{{unit "appbar" link="dashboard" title="Device Management"}} {{unit "appbar" link="dashboard" title="Device Management"}}

View File

@ -1,6 +1,6 @@
{{layout "fluid"}} {{layout "fluid"}}
{{#zone "title"}} {{#zone "title"}}
WSO2 Device Cloud | Login WSO2 IoT Server | Login
{{/zone}} {{/zone}}
{{#zone "body"}} {{#zone "body"}}
{{unit "login"}} {{unit "login"}}

View File

@ -1,6 +1,6 @@
{{layout "fluid"}} {{layout "fluid"}}
{{#zone "title"}} {{#zone "title"}}
WSO2 Device Cloud | Register WSO2 IoT Server | Register
{{/zone}} {{/zone}}
{{#zone "body"}} {{#zone "body"}}
{{unit "register"}} {{unit "register"}}

View File

@ -6,7 +6,7 @@
<h1 class="grey ">Android</h1> <h1 class="grey ">Android</h1>
<hr> <hr>
<p class="margin-bottom-double light-grey ">Connect your Android <p class="margin-bottom-double light-grey ">Connect your Android
to the WSO2 device cloud. </p> to the WSO2 IoT server. </p>
</div> </div>
<div class="col-xs-12 col-sm-6 col-md-4 col-lg-4 padding-top"> <div class="col-xs-12 col-sm-6 col-md-4 col-lg-4 padding-top">
<img src="{{self.publicURL}}/images/android.png" class="img-responsive"> <img src="{{self.publicURL}}/images/android.png" class="img-responsive">

View File

@ -1,4 +1,4 @@
{ {
"title" : "Android", "title" : "Android",
"description":"Connect Your Android mobile into the WSO2 Device Cloud Platform" "description":"Connect Your Android mobile into the WSO2 IoT Server"
} }

View File

@ -38,7 +38,7 @@ function loadDeviceTypes() {
//setting defaults //setting defaults
var storeTitle = deviceType.name; var storeTitle = deviceType.name;
var storeDescription = "Connect your " + deviceType.name + " into the WSO2 Device Cloud Platform."; var storeDescription = "Connect your " + deviceType.name + " into the WSO2 IoT Server.";
if (deviceType.storeTitle != null) { if (deviceType.storeTitle != null) {
storeTitle = deviceType.storeTitle; storeTitle = deviceType.storeTitle;

View File

@ -38,7 +38,7 @@ function loadDeviceTypes() {
//setting defaults //setting defaults
var storeTitle = deviceType.name; var storeTitle = deviceType.name;
var storeDescription = "Connect your " + deviceType.name + " into the WSO2 Device Cloud Platform."; var storeDescription = "Connect your " + deviceType.name + " into the WSO2 IoT Server.";
if (deviceType.storeTitle != null) { if (deviceType.storeTitle != null) {
storeTitle = deviceType.storeTitle; storeTitle = deviceType.storeTitle;

View File

@ -1,4 +1,4 @@
{ {
"title" : "Windows", "title" : "Windows",
"description":"Connect Your Windows mobile into the WSO2 Device Cloud Platform" "description":"Connect Your Windows mobile into the WSO2 IoT Server"
} }

View File

@ -6,7 +6,7 @@
<h1 class="grey ">Windows</h1> <h1 class="grey ">Windows</h1>
<hr> <hr>
<p class="margin-bottom-double light-grey ">Connect your Windows Mobile <p class="margin-bottom-double light-grey ">Connect your Windows Mobile
to the WSO2 device cloud. </p> to the WSO2 IoT server. </p>
</div> </div>
</div> </div>
<div class="row margin-bottom-double"> <div class="row margin-bottom-double">

View File

@ -11,17 +11,17 @@
~ under the License. --> ~ under the License. -->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent> <parent>
<artifactId>devicecloud-mgt</artifactId> <artifactId>iot-server-samples</artifactId>
<groupId>org.wso2.carbon.device.mgt.iot</groupId> <groupId>org.wso2.carbon.device.mgt.iot.server.sample</groupId>
<version>1.0.0-SNAPSHOT</version> <version>${carbon.iot.device.mgt.version}</version>
<relativePath>../pom.xml</relativePath> <relativePath>../../../pom.xml</relativePath>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>org.wso2.carbon.device.mgt.iot.android.sense.impl</artifactId> <artifactId>org.wso2.carbon.device.mgt.iot.sample.android.sense.plugin.impl</artifactId>
<version>1.0.0-SNAPSHOT</version> <version>${carbon.iot.device.mgt.version}</version>
<packaging>bundle</packaging> <packaging>bundle</packaging>
<name>WSO2 Carbon - Android Sense Management Impl</name> <name>WSO2 Carbon - Android Sense Management Impl</name>
<description>WSO2 Carbon - Android Sense Management and Control Implementation</description> <description>WSO2 Carbon - Android Sense Management and Control Implementation</description>
@ -51,8 +51,8 @@
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName> <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
<Bundle-Name>${project.artifactId}</Bundle-Name> <Bundle-Name>${project.artifactId}</Bundle-Name>
<Bundle-Version>${carbon.iot.device.mgt.version}</Bundle-Version> <Bundle-Version>${carbon.iot.device.mgt.version}</Bundle-Version>
<Bundle-Description>Device Cloud Impl Bundle</Bundle-Description> <Bundle-Description>IoT Server Impl Bundle</Bundle-Description>
<Private-Package>org.wso2.carbon.device.mgt.iot.android.sense.internal</Private-Package> <Private-Package>org.wso2.carbon.device.mgt.iot.sample.android.sense.plugin.internal</Private-Package>
<Import-Package> <Import-Package>
org.osgi.framework, org.osgi.framework,
org.osgi.service.component, org.osgi.service.component,
@ -69,31 +69,16 @@
org.wso2.carbon.device.mgt.common, org.wso2.carbon.device.mgt.common,
org.wso2.carbon.context.*, org.wso2.carbon.context.*,
org.wso2.carbon.ndatasource.core, org.wso2.carbon.ndatasource.core,
org.wso2.carbon.device.mgt.iot.common.* org.wso2.carbon.device.mgt.iot.common.*,
</Import-Package> </Import-Package>
<Export-Package> <Export-Package>
!org.wso2.carbon.device.mgt.iot.android.sense.internal, !org.wso2.carbon.device.mgt.iot.sample.android.sense.plugin.internal,
org.wso2.carbon.device.mgt.iot.android.sense.* org.wso2.carbon.device.mgt.iot.sample.android.sense.plugin.*
</Export-Package> </Export-Package>
</instructions> </instructions>
</configuration> </configuration>
</plugin> </plugin>
<!--<plugin>-->
<!--<groupId>org.apache.maven.plugins</groupId>-->
<!--<artifactId>maven-surefire-plugin</artifactId>-->
<!--<version>2.18</version>-->
<!--<configuration>-->
<!--<systemPropertyVariables>-->
<!--<log4j.configuration>file:src/test/resources/log4j.properties-->
<!--</log4j.configuration>-->
<!--</systemPropertyVariables>-->
<!--<suiteXmlFiles>-->
<!--<suiteXmlFile>src/test/resources/testng.xml</suiteXmlFile>-->
<!--</suiteXmlFiles>-->
<!--</configuration>-->
<!--</plugin>-->
</plugins> </plugins>
</build> </build>
@ -120,22 +105,15 @@
<groupId>org.wso2.carbon</groupId> <groupId>org.wso2.carbon</groupId>
<artifactId>org.wso2.carbon.ndatasource.core</artifactId> <artifactId>org.wso2.carbon.ndatasource.core</artifactId>
</dependency> </dependency>
<!--<dependency>-->
<!--<groupId>org.testng</groupId>-->
<!--<artifactId>testng</artifactId>-->
<!--</dependency>-->
<!--<dependency>-->
<!--<groupId>com.h2database.wso2</groupId>-->
<!--<artifactId>h2-database-engine</artifactId>-->
<!--<scope>test</scope>-->
<!--</dependency>-->
<dependency> <dependency>
<groupId>org.wso2.carbon.device.mgt.iot</groupId> <groupId>org.wso2.carbon.device.mgt.iot</groupId>
<artifactId>org.wso2.carbon.device.mgt.iot.common</artifactId> <artifactId>org.wso2.carbon.device.mgt.iot.common</artifactId>
</dependency> </dependency>
</dependencies> </dependencies>
</project>
</project>

View File

@ -26,6 +26,8 @@ import org.wso2.carbon.device.mgt.common.DeviceManager;
import org.wso2.carbon.device.mgt.common.EnrolmentInfo; import org.wso2.carbon.device.mgt.common.EnrolmentInfo;
import org.wso2.carbon.device.mgt.common.FeatureManager; import org.wso2.carbon.device.mgt.common.FeatureManager;
import org.wso2.carbon.device.mgt.common.configuration.mgt.TenantConfiguration; import org.wso2.carbon.device.mgt.common.configuration.mgt.TenantConfiguration;
import org.wso2.carbon.device.mgt.common.license.mgt.License;
import org.wso2.carbon.device.mgt.common.license.mgt.LicenseManagementException;
import org.wso2.carbon.device.mgt.iot.sample.android.sense.plugin.impl.dao.AndroidSenseDAO; import org.wso2.carbon.device.mgt.iot.sample.android.sense.plugin.impl.dao.AndroidSenseDAO;
import org.wso2.carbon.device.mgt.iot.common.util.iotdevice.dao.IotDeviceManagementDAOException; import org.wso2.carbon.device.mgt.iot.common.util.iotdevice.dao.IotDeviceManagementDAOException;
import org.wso2.carbon.device.mgt.iot.common.util.iotdevice.dao.IotDeviceManagementDAOFactory; import org.wso2.carbon.device.mgt.iot.common.util.iotdevice.dao.IotDeviceManagementDAOFactory;
@ -208,6 +210,16 @@ public class AndroidSenseManager implements DeviceManager {
return false; return false;
} }
@Override
public License getLicense(String s) throws LicenseManagementException {
return null;
}
@Override
public void addLicense(License license) throws LicenseManagementException {
}
@Override @Override
public boolean updateDeviceInfo(DeviceIdentifier deviceIdentifier, Device device) throws DeviceManagementException { public boolean updateDeviceInfo(DeviceIdentifier deviceIdentifier, Device device) throws DeviceManagementException {
boolean status; boolean status;

View File

@ -1,105 +1,107 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" <project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent> <parent>
<artifactId>devicecloud-api</artifactId> <artifactId>iot-server-samples</artifactId>
<groupId>org.wso2.carbon.device.mgt.iot</groupId> <groupId>org.wso2.carbon.device.mgt.iot.server.sample</groupId>
<version>1.0.0</version> <version>${carbon.iot.device.mgt.version}</version>
<relativePath>../pom.xml</relativePath> <relativePath>../../../pom.xml</relativePath>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>org.wso2.carbon.device.mgt.iot.android.sense.api</artifactId> <artifactId>org.wso2.carbon.device.mgt.iot.sample.android.sense.service.impl</artifactId>
<version>1.0.0</version> <version>${carbon.iot.device.mgt.version}</version>
<packaging>war</packaging> <packaging>war</packaging>
<name>WSO2 Carbon - Device Cloud API - Android SenseAPI</name> <name>WSO2 Carbon - Android Sense API - Android Sense API</name>
<dependencies> <dependencies>
<!-- CDM --> <!-- CDM -->
<dependency> <dependency>
<groupId>org.wso2.carbon.devicemgt</groupId> <groupId>org.wso2.carbon.devicemgt</groupId>
<artifactId>org.wso2.carbon.device.mgt.common</artifactId> <artifactId>org.wso2.carbon.device.mgt.common</artifactId>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<!--CXF -->
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxws</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxrs</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-http</artifactId>
<scope>provided</scope>
</dependency>
<!--MQTT -->
<dependency>
<groupId>org.eclipse.paho</groupId>
<artifactId>mqtt-client</artifactId>
<scope>provided</scope>
</dependency>
<!--IOT -->
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpasyncclient</artifactId>
<version>4.1</version>
</dependency>
<dependency>
<groupId>org.wso2.carbon.device.mgt.iot</groupId>
<artifactId>org.wso2.carbon.device.mgt.iot.common</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.wso2.carbon.device.mgt.iot.server.sample</groupId>
<artifactId>org.wso2.carbon.device.mgt.iot.sample.android.sense.plugin.impl</artifactId>
<scope>provided</scope>
</dependency>
<!--JAX-RS -->
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-core-asl</artifactId>
</dependency>
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-jaxrs</artifactId>
</dependency>
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-web-api</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.ws.rs</groupId>
<artifactId>jsr311-api</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
<!--CXF --> <build>
<dependency> <plugins>
<groupId>org.apache.cxf</groupId> <plugin>
<artifactId>cxf-rt-frontend-jaxws</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<scope>provided</scope> <configuration>
</dependency> <encoding>UTF-8</encoding>
<dependency> <source>${wso2.maven.compiler.source}</source>
<groupId>org.apache.cxf</groupId> <target>${wso2.maven.compiler.target}</target>
<artifactId>cxf-rt-frontend-jaxrs</artifactId> </configuration>
<scope>provided</scope> </plugin>
</dependency> <plugin>
<dependency> <artifactId>maven-war-plugin</artifactId>
<groupId>org.apache.cxf</groupId> <configuration>
<artifactId>cxf-rt-transports-http</artifactId> <warName>android_sense</warName>
<scope>provided</scope> </configuration>
</dependency> </plugin>
<!--MQTT --> </plugins>
<dependency> </build>
<groupId>org.eclipse.paho</groupId>
<artifactId>mqtt-client</artifactId>
<scope>provided</scope>
</dependency>
<!--IOT -->
<dependency>
<groupId>org.wso2.carbon.device.mgt.iot</groupId>
<artifactId>org.wso2.carbon.device.mgt.iot.common</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.wso2.carbon.device.mgt.iot</groupId>
<artifactId>org.wso2.carbon.device.mgt.iot.android.sense.impl</artifactId>
<version>1.0.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<!--JAX-RS -->
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-core-asl</artifactId>
</dependency>
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-jaxrs</artifactId>
</dependency>
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-web-api</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.ws.rs</groupId>
<artifactId>jsr311-api</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<encoding>UTF-8</encoding>
<source>${wso2.maven.compiler.source}</source>
<target>${wso2.maven.compiler.target}</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<warName>android_sense</warName>
</configuration>
</plugin>
</plugins>
</build>
</project> </project>

View File

@ -6,7 +6,7 @@
<h1 class="grey ">Android Sense</h1> <h1 class="grey ">Android Sense</h1>
<hr> <hr>
<p class="margin-bottom-double light-grey ">Connect your Android Sense <p class="margin-bottom-double light-grey ">Connect your Android Sense
to the WSO2 device cloud. </p> to the WSO2 IoT server. </p>
</div> </div>
<div class="col-xs-12 col-sm-6 col-md-4 col-lg-4 padding-top"> <div class="col-xs-12 col-sm-6 col-md-4 col-lg-4 padding-top">
<img src="{{self.publicURL}}/images/android_sense.png" class="img-responsive"> <img src="{{self.publicURL}}/images/android_sense.png" class="img-responsive">

View File

@ -1,4 +1,4 @@
{ {
"title" : "Android Sense", "title" : "Android Sense",
"description":"Connect Your Android Sense into the WSO2 Device Cloud Platform" "description":"Connect Your Android Sense into the WSO2 IoT Server"
} }

View File

@ -11,131 +11,109 @@
~ under the License. --> ~ under the License. -->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent> <parent>
<artifactId>devicecloud-mgt</artifactId> <artifactId>iot-server-samples</artifactId>
<groupId>org.wso2.carbon.device.mgt.iot</groupId> <groupId>org.wso2.carbon.device.mgt.iot.server.sample</groupId>
<version>1.0.0-SNAPSHOT</version> <version>${carbon.iot.device.mgt.version}</version>
<relativePath>../pom.xml</relativePath> <relativePath>../../../pom.xml</relativePath>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>org.wso2.carbon.device.mgt.iot.arduino.impl</artifactId> <artifactId>org.wso2.carbon.device.mgt.iot.sample.arduino.plugin.impl</artifactId>
<version>1.0.0-SNAPSHOT</version> <version>${carbon.iot.device.mgt.version}</version>
<packaging>bundle</packaging> <packaging>bundle</packaging>
<name>WSO2 Carbon - Arduino Management Impl</name> <name>WSO2 Carbon - Arduino Management Impl</name>
<description>WSO2 Carbon - Arduino Management and Control Implementation</description> <description>WSO2 Carbon - Arduino Management and Control Implementation</description>
<url>http://wso2.org</url> <url>http://wso2.org</url>
<build> <build>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.apache.felix</groupId> <groupId>org.apache.felix</groupId>
<artifactId>maven-scr-plugin</artifactId> <artifactId>maven-scr-plugin</artifactId>
</plugin> </plugin>
<plugin> <plugin>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<configuration> <configuration>
<source>1.7</source> <source>1.7</source>
<target>1.7</target> <target>1.7</target>
</configuration> </configuration>
<version>2.3.2</version> <version>2.3.2</version>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.felix</groupId> <groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId> <artifactId>maven-bundle-plugin</artifactId>
<version>1.4.0</version> <version>1.4.0</version>
<extensions>true</extensions> <extensions>true</extensions>
<configuration> <configuration>
<instructions> <instructions>
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName> <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
<Bundle-Name>${project.artifactId}</Bundle-Name> <Bundle-Name>${project.artifactId}</Bundle-Name>
<Bundle-Version>${carbon.iot.device.mgt.version}</Bundle-Version> <Bundle-Version>${carbon.iot.device.mgt.version}</Bundle-Version>
<Bundle-Description>Device Cloud Impl Bundle</Bundle-Description> <Bundle-Description>IoT Server Impl Bundle</Bundle-Description>
<Private-Package>org.wso2.carbon.device.mgt.iot.arduino.internal</Private-Package> <Private-Package>org.wso2.carbon.device.mgt.iot.sample.arduino.plugin.internal</Private-Package>
<Import-Package> <Import-Package>
org.osgi.framework, org.osgi.framework,
org.osgi.service.component, org.osgi.service.component,
org.apache.commons.logging, org.apache.commons.logging,
javax.xml.bind.*, javax.xml.bind.*,
javax.naming, javax.naming,
javax.sql, javax.sql,
javax.xml.bind.annotation.*, javax.xml.bind.annotation.*,
javax.xml.parsers, javax.xml.parsers,
javax.net, javax.net,
javax.net.ssl, javax.net.ssl,
org.w3c.dom, org.w3c.dom,
org.wso2.carbon.device.mgt.common.*, org.wso2.carbon.device.mgt.common.*,
org.wso2.carbon.device.mgt.common, org.wso2.carbon.device.mgt.common,
org.wso2.carbon.context.*, org.wso2.carbon.context.*,
org.wso2.carbon.ndatasource.core, org.wso2.carbon.ndatasource.core,
org.wso2.carbon.device.mgt.iot.common.* org.wso2.carbon.device.mgt.iot.common.*,
</Import-Package> </Import-Package>
<Export-Package> <Export-Package>
!org.wso2.carbon.device.mgt.iot.arduino.internal, !org.wso2.carbon.device.mgt.iot.sample.arduino.plugin.internal,
org.wso2.carbon.device.mgt.iot.arduino.* org.wso2.carbon.device.mgt.iot.sample.arduino.plugin.*
</Export-Package> </Export-Package>
</instructions>
</configuration>
</plugin>
</plugins>
</build>
</instructions> <dependencies>
</configuration> <dependency>
</plugin> <groupId>org.eclipse.osgi</groupId>
<!--<plugin>--> <artifactId>org.eclipse.osgi</artifactId>
<!--<groupId>org.apache.maven.plugins</groupId>--> </dependency>
<!--<artifactId>maven-surefire-plugin</artifactId>--> <dependency>
<!--<version>2.18</version>--> <groupId>org.eclipse.osgi</groupId>
<!--<configuration>--> <artifactId>org.eclipse.osgi.services</artifactId>
<!--<systemPropertyVariables>--> </dependency>
<!--<log4j.configuration>file:src/test/resources/log4j.properties-->
<!--</log4j.configuration>-->
<!--</systemPropertyVariables>-->
<!--<suiteXmlFiles>-->
<!--<suiteXmlFile>src/test/resources/testng.xml</suiteXmlFile>-->
<!--</suiteXmlFiles>-->
<!--</configuration>-->
<!--</plugin>-->
</plugins>
</build>
<dependencies> <dependency>
<dependency> <groupId>org.wso2.carbon</groupId>
<groupId>org.eclipse.osgi</groupId> <artifactId>org.wso2.carbon.logging</artifactId>
<artifactId>org.eclipse.osgi</artifactId> </dependency>
</dependency>
<dependency>
<groupId>org.eclipse.osgi</groupId>
<artifactId>org.eclipse.osgi.services</artifactId>
</dependency>
<dependency> <dependency>
<groupId>org.wso2.carbon</groupId> <groupId>org.wso2.carbon.devicemgt</groupId>
<artifactId>org.wso2.carbon.logging</artifactId> <artifactId>org.wso2.carbon.device.mgt.common</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.wso2.carbon</groupId>
<artifactId>org.wso2.carbon.ndatasource.core</artifactId>
</dependency>
<dependency>
<groupId>org.wso2.carbon.device.mgt.iot</groupId>
<artifactId>org.wso2.carbon.device.mgt.iot.common</artifactId>
</dependency>
<dependency>
<groupId>org.wso2.carbon.devicemgt</groupId>
<artifactId>org.wso2.carbon.device.mgt.common</artifactId>
</dependency>
<dependency>
<groupId>org.wso2.carbon</groupId>
<artifactId>org.wso2.carbon.ndatasource.core</artifactId>
</dependency>
<!--<dependency>-->
<!--<groupId>org.testng</groupId>-->
<!--<artifactId>testng</artifactId>-->
<!--</dependency>-->
<!--<dependency>--> </dependencies>
<!--<groupId>com.h2database.wso2</groupId>-->
<!--<artifactId>h2-database-engine</artifactId>-->
<!--<scope>test</scope>-->
<!--</dependency>-->
<dependency>
<groupId>org.wso2.carbon.device.mgt.iot</groupId>
<artifactId>org.wso2.carbon.device.mgt.iot.common</artifactId>
</dependency>
</dependencies>
</project> </project>

View File

@ -26,6 +26,8 @@ import org.wso2.carbon.device.mgt.common.DeviceManager;
import org.wso2.carbon.device.mgt.common.EnrolmentInfo; import org.wso2.carbon.device.mgt.common.EnrolmentInfo;
import org.wso2.carbon.device.mgt.common.FeatureManager; import org.wso2.carbon.device.mgt.common.FeatureManager;
import org.wso2.carbon.device.mgt.common.configuration.mgt.TenantConfiguration; import org.wso2.carbon.device.mgt.common.configuration.mgt.TenantConfiguration;
import org.wso2.carbon.device.mgt.common.license.mgt.License;
import org.wso2.carbon.device.mgt.common.license.mgt.LicenseManagementException;
import org.wso2.carbon.device.mgt.iot.common.util.iotdevice.dao.IotDeviceManagementDAOException; import org.wso2.carbon.device.mgt.iot.common.util.iotdevice.dao.IotDeviceManagementDAOException;
import org.wso2.carbon.device.mgt.iot.common.util.iotdevice.dao.IotDeviceManagementDAOFactory; import org.wso2.carbon.device.mgt.iot.common.util.iotdevice.dao.IotDeviceManagementDAOFactory;
import org.wso2.carbon.device.mgt.iot.common.util.iotdevice.dto.IotDevice; import org.wso2.carbon.device.mgt.iot.common.util.iotdevice.dto.IotDevice;
@ -208,6 +210,16 @@ public class ArduinoManager implements DeviceManager {
return false; return false;
} }
@Override
public License getLicense(String s) throws LicenseManagementException {
return null;
}
@Override
public void addLicense(License license) throws LicenseManagementException {
}
@Override @Override
public boolean updateDeviceInfo(DeviceIdentifier deviceIdentifier, Device device) throws DeviceManagementException { public boolean updateDeviceInfo(DeviceIdentifier deviceIdentifier, Device device) throws DeviceManagementException {
boolean status; boolean status;

View File

@ -3,18 +3,18 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent> <parent>
<artifactId>devicecloud-api</artifactId> <artifactId>iot-server-samples</artifactId>
<groupId>org.wso2.carbon.device.mgt.iot</groupId> <groupId>org.wso2.carbon.device.mgt.iot.server.sample</groupId>
<version>1.0.0</version> <version>${carbon.iot.device.mgt.version}</version>
<relativePath>../pom.xml</relativePath> <relativePath>../../../pom.xml</relativePath>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>org.wso2.carbon.device.mgt.iot.arduino.api</artifactId> <artifactId>org.wso2.carbon.device.mgt.iot.sample.arduino.service.impl</artifactId>
<version>1.0.0</version> <version>${carbon.iot.device.mgt.version}</version>
<packaging>war</packaging> <packaging>war</packaging>
<name>WSO2 Carbon - Device Cloud API - Arduiono API</name> <name>WSO2 Carbon - IoT Server API - Arduino API</name>
<dependencies> <dependencies>
<!-- CDM --> <!-- CDM -->
@ -24,7 +24,6 @@
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<!--CXF --> <!--CXF -->
<dependency> <dependency>
<groupId>org.apache.cxf</groupId> <groupId>org.apache.cxf</groupId>
@ -49,15 +48,19 @@
</dependency> </dependency>
<!--IOT --> <!--IOT -->
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpasyncclient</artifactId>
<version>4.1</version>
</dependency>
<dependency> <dependency>
<groupId>org.wso2.carbon.device.mgt.iot</groupId> <groupId>org.wso2.carbon.device.mgt.iot</groupId>
<artifactId>org.wso2.carbon.device.mgt.iot.common</artifactId> <artifactId>org.wso2.carbon.device.mgt.iot.common</artifactId>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.wso2.carbon.device.mgt.iot</groupId> <groupId>org.wso2.carbon.device.mgt.iot.server.sample</groupId>
<artifactId>org.wso2.carbon.device.mgt.iot.arduino.impl</artifactId> <artifactId>org.wso2.carbon.device.mgt.iot.sample.arduino.plugin.impl</artifactId>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<!--JAX-RS --> <!--JAX-RS -->

View File

@ -6,7 +6,7 @@
<h1 class="grey ">ArduinoUno</h1> <h1 class="grey ">ArduinoUno</h1>
<hr> <hr>
<p class="margin-bottom-double light-grey ">Connect your Arduino Uno device <p class="margin-bottom-double light-grey ">Connect your Arduino Uno device
to the WSO2 Device Cloud. </p> to the WSO2 IoT Server. </p>
</div> </div>
<div class="col-xs-12 col-sm-6 col-md-4 col-lg-4 padding-top"> <div class="col-xs-12 col-sm-6 col-md-4 col-lg-4 padding-top">
<img src="{{self.publicURL}}/images/arduino.png" class="img-responsive"> <img src="{{self.publicURL}}/images/arduino.png" class="img-responsive">

View File

@ -1,4 +1,4 @@
{ {
"title" : "Arduino", "title" : "Arduino",
"description":"Connect Your Arduino into the WSO2 Device Cloud Platform" "description":"Connect Your Arduino into the WSO2 IoT Server"
} }

View File

@ -11,20 +11,20 @@
~ under the License. --> ~ under the License. -->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent> <parent>
<artifactId>devicecloud-mgt</artifactId> <artifactId>iot-server-samples</artifactId>
<groupId>org.wso2.carbon.device.mgt.iot</groupId> <groupId>org.wso2.carbon.device.mgt.iot.server.sample</groupId>
<version>1.0.0-SNAPSHOT</version> <version>${carbon.iot.device.mgt.version}</version>
<relativePath>../pom.xml</relativePath> <relativePath>../../../pom.xml</relativePath>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>org.wso2.carbon.device.mgt.iot.digitaldisplay.impl</artifactId> <artifactId>org.wso2.carbon.device.mgt.iot.sample.digitaldisplay.plugin.impl</artifactId>
<version>1.0.0-SNAPSHOT</version> <version>${carbon.iot.device.mgt.version}</version>
<packaging>bundle</packaging> <packaging>bundle</packaging>
<name>WSO2 Carbon - Digital Display Management Impl</name> <name>WSO2 Carbon - Digital display Management Impl</name>
<description>WSO2 Carbon - digitaldisplay Management and Control Implementation</description> <description>WSO2 Carbon - Digital display Management and Control Implementation</description>
<url>http://wso2.org</url> <url>http://wso2.org</url>
<build> <build>
@ -51,8 +51,8 @@
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName> <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
<Bundle-Name>${project.artifactId}</Bundle-Name> <Bundle-Name>${project.artifactId}</Bundle-Name>
<Bundle-Version>${carbon.iot.device.mgt.version}</Bundle-Version> <Bundle-Version>${carbon.iot.device.mgt.version}</Bundle-Version>
<Bundle-Description>Device Cloud Impl Bundle</Bundle-Description> <Bundle-Description>IoT Server Impl Bundle</Bundle-Description>
<Private-Package>org.wso2.carbon.device.mgt.iot.digitaldisplay.internal</Private-Package> <Private-Package>org.wso2.carbon.device.mgt.iot.sample.digitaldisplay.plugin.internal</Private-Package>
<Import-Package> <Import-Package>
org.osgi.framework, org.osgi.framework,
org.osgi.service.component, org.osgi.service.component,
@ -69,31 +69,16 @@
org.wso2.carbon.device.mgt.common, org.wso2.carbon.device.mgt.common,
org.wso2.carbon.context.*, org.wso2.carbon.context.*,
org.wso2.carbon.ndatasource.core, org.wso2.carbon.ndatasource.core,
org.wso2.carbon.device.mgt.iot.common.* org.wso2.carbon.device.mgt.iot.common.*,
</Import-Package> </Import-Package>
<Export-Package> <Export-Package>
!org.wso2.carbon.device.mgt.iot.digitaldisplay.internal, !org.wso2.carbon.device.mgt.iot.sample.digitaldisplay.plugin.internal,
org.wso2.carbon.device.mgt.iot.digitaldisplay.* org.wso2.carbon.device.mgt.iot.sample.digitaldisplay.plugin.*
</Export-Package> </Export-Package>
</instructions> </instructions>
</configuration> </configuration>
</plugin> </plugin>
<!--<plugin>-->
<!--<groupId>org.apache.maven.plugins</groupId>-->
<!--<artifactId>maven-surefire-plugin</artifactId>-->
<!--<version>2.18</version>-->
<!--<configuration>-->
<!--<systemPropertyVariables>-->
<!--<log4j.configuration>file:src/test/resources/log4j.properties-->
<!--</log4j.configuration>-->
<!--</systemPropertyVariables>-->
<!--<suiteXmlFiles>-->
<!--<suiteXmlFile>src/test/resources/testng.xml</suiteXmlFile>-->
<!--</suiteXmlFiles>-->
<!--</configuration>-->
<!--</plugin>-->
</plugins> </plugins>
</build> </build>
@ -120,22 +105,15 @@
<groupId>org.wso2.carbon</groupId> <groupId>org.wso2.carbon</groupId>
<artifactId>org.wso2.carbon.ndatasource.core</artifactId> <artifactId>org.wso2.carbon.ndatasource.core</artifactId>
</dependency> </dependency>
<!--<dependency>-->
<!--<groupId>org.testng</groupId>-->
<!--<artifactId>testng</artifactId>-->
<!--</dependency>-->
<!--<dependency>-->
<!--<groupId>com.h2database.wso2</groupId>-->
<!--<artifactId>h2-database-engine</artifactId>-->
<!--<scope>test</scope>-->
<!--</dependency>-->
<dependency> <dependency>
<groupId>org.wso2.carbon.device.mgt.iot</groupId> <groupId>org.wso2.carbon.device.mgt.iot</groupId>
<artifactId>org.wso2.carbon.device.mgt.iot.common</artifactId> <artifactId>org.wso2.carbon.device.mgt.iot.common</artifactId>
</dependency> </dependency>
</dependencies> </dependencies>
</project>
</project>

View File

@ -28,6 +28,8 @@ import org.wso2.carbon.device.mgt.common.DeviceManager;
import org.wso2.carbon.device.mgt.common.EnrolmentInfo; import org.wso2.carbon.device.mgt.common.EnrolmentInfo;
import org.wso2.carbon.device.mgt.common.FeatureManager; import org.wso2.carbon.device.mgt.common.FeatureManager;
import org.wso2.carbon.device.mgt.common.configuration.mgt.TenantConfiguration; import org.wso2.carbon.device.mgt.common.configuration.mgt.TenantConfiguration;
import org.wso2.carbon.device.mgt.common.license.mgt.License;
import org.wso2.carbon.device.mgt.common.license.mgt.LicenseManagementException;
import org.wso2.carbon.device.mgt.iot.common.util.iotdevice.dao.IotDeviceManagementDAOException; import org.wso2.carbon.device.mgt.iot.common.util.iotdevice.dao.IotDeviceManagementDAOException;
import org.wso2.carbon.device.mgt.iot.common.util.iotdevice.dao.IotDeviceManagementDAOFactory; import org.wso2.carbon.device.mgt.iot.common.util.iotdevice.dao.IotDeviceManagementDAOFactory;
import org.wso2.carbon.device.mgt.iot.common.util.iotdevice.dto.IotDevice; import org.wso2.carbon.device.mgt.iot.common.util.iotdevice.dto.IotDevice;
@ -212,6 +214,16 @@ public class DigitalDisplayManager implements DeviceManager
return false; return false;
} }
@Override
public License getLicense(String s) throws LicenseManagementException {
return null;
}
@Override
public void addLicense(License license) throws LicenseManagementException {
}
@Override @Override
public boolean updateDeviceInfo(DeviceIdentifier deviceIdentifier, Device device) throws DeviceManagementException { public boolean updateDeviceInfo(DeviceIdentifier deviceIdentifier, Device device) throws DeviceManagementException {
boolean status; boolean status;

View File

@ -1,100 +1,107 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" <project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent> <parent>
<artifactId>devicecloud-api</artifactId> <artifactId>iot-server-samples</artifactId>
<groupId>org.wso2.carbon.device.mgt.iot</groupId> <groupId>org.wso2.carbon.device.mgt.iot.server.sample</groupId>
<version>1.0.0</version> <version>${carbon.iot.device.mgt.version}</version>
<relativePath>../pom.xml</relativePath> <relativePath>../../../pom.xml</relativePath>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>org.wso2.carbon.device.mgt.iot.digitaldisplay.api</artifactId> <artifactId>org.wso2.carbon.device.mgt.iot.sample.digitaldisplay.service.impl</artifactId>
<version>1.0.0</version> <version>${carbon.iot.device.mgt.version}</version>
<packaging>war</packaging> <packaging>war</packaging>
<name>WSO2 Carbon - Device Cloud API - Digital Display API</name> <name>WSO2 Carbon - Iot Server API - Digital Display API</name>
<dependencies> <dependencies>
<!-- CDM --> <!-- CDM -->
<dependency> <dependency>
<groupId>org.wso2.carbon.devicemgt</groupId> <groupId>org.wso2.carbon.devicemgt</groupId>
<artifactId>org.wso2.carbon.device.mgt.common</artifactId> <artifactId>org.wso2.carbon.device.mgt.common</artifactId>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<!--CXF --> <!--CXF -->
<dependency> <dependency>
<groupId>org.apache.cxf</groupId> <groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxws</artifactId> <artifactId>cxf-rt-frontend-jaxws</artifactId>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.cxf</groupId> <groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxrs</artifactId> <artifactId>cxf-rt-frontend-jaxrs</artifactId>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.cxf</groupId> <groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-http</artifactId> <artifactId>cxf-rt-transports-http</artifactId>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<!--MQTT -->
<dependency>
<groupId>org.eclipse.paho</groupId>
<artifactId>mqtt-client</artifactId>
<scope>provided</scope>
</dependency>
<!--IOT -->
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpasyncclient</artifactId>
<version>4.1</version>
</dependency>
<dependency>
<groupId>org.wso2.carbon.device.mgt.iot</groupId>
<artifactId>org.wso2.carbon.device.mgt.iot.common</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.wso2.carbon.device.mgt.iot.server.sample</groupId>
<artifactId>org.wso2.carbon.device.mgt.iot.sample.digitaldisplay.plugin.impl</artifactId>
<scope>provided</scope>
</dependency>
<!--JAX-RS -->
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-core-asl</artifactId>
</dependency>
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-jaxrs</artifactId>
</dependency>
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-web-api</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.ws.rs</groupId>
<artifactId>jsr311-api</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<!--IOT --> <plugins>
<plugin>
<dependency> <artifactId>maven-compiler-plugin</artifactId>
<groupId>org.wso2.carbon.device.mgt.iot</groupId> <configuration>
<artifactId>org.wso2.carbon.device.mgt.iot.common</artifactId> <encoding>UTF-8</encoding>
<scope>provided</scope> <source>${wso2.maven.compiler.source}</source>
</dependency> <target>${wso2.maven.compiler.target}</target>
<dependency> </configuration>
<groupId>org.wso2.carbon.device.mgt.iot</groupId> </plugin>
<artifactId>org.wso2.carbon.device.mgt.iot.digitaldisplay.impl</artifactId> <plugin>
<scope>provided</scope> <artifactId>maven-war-plugin</artifactId>
</dependency> <configuration>
<!--JAX-RS --> <warName>digital_display</warName>
<dependency> </configuration>
<groupId>org.codehaus.jackson</groupId> </plugin>
<artifactId>jackson-core-asl</artifactId> </plugins>
</dependency> </build>
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-jaxrs</artifactId>
</dependency>
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-web-api</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.ws.rs</groupId>
<artifactId>jsr311-api</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<encoding>UTF-8</encoding>
<source>${wso2.maven.compiler.source}</source>
<target>${wso2.maven.compiler.target}</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<warName>digitaldisplay</warName><!--devices.war-->
<!--<packagingExcludes>WEB-INF/lib/*.jar</packagingExcludes>-->
</configuration>
</plugin>
</plugins>
</build>
</project> </project>

View File

@ -6,7 +6,7 @@
<h1 class="grey ">Digital Display</h1> <h1 class="grey ">Digital Display</h1>
<hr> <hr>
<p class="margin-bottom-double light-grey ">Connect your Digital Display device <p class="margin-bottom-double light-grey ">Connect your Digital Display device
to the WSO2 device cloud. </p> to the WSO2 IoT server. </p>
</div> </div>
<div class="col-xs-12 col-sm-6 col-md-4 col-lg-4 padding-top"> <div class="col-xs-12 col-sm-6 col-md-4 col-lg-4 padding-top">
<img src="{{self.publicURL}}/images/digital_display.png" class="img-responsive"> <img src="{{self.publicURL}}/images/digital_display.png" class="img-responsive">

View File

@ -1,4 +1,4 @@
{ {
"title" : "Digital Display", "title" : "Digital Display",
"description":"Connect Your Digital Display into the WSO2 Device Cloud Platform" "description":"Connect Your Digital Display into the WSO2 IoT Server"
} }

View File

@ -13,15 +13,15 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent> <parent>
<artifactId>devicecloud-mgt</artifactId> <artifactId>iot-server-samples</artifactId>
<groupId>org.wso2.carbon.device.mgt.iot</groupId> <groupId>org.wso2.carbon.device.mgt.iot.server.sample</groupId>
<version>1.0.0-SNAPSHOT</version> <version>${carbon.iot.device.mgt.version}</version>
<relativePath>../pom.xml</relativePath> <relativePath>../../../pom.xml</relativePath>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>org.wso2.carbon.device.mgt.iot.firealarm.impl</artifactId> <artifactId>org.wso2.carbon.device.mgt.iot.sample.firealarm.plugin.impl</artifactId>
<version>1.0.0-SNAPSHOT</version> <version>${carbon.iot.device.mgt.version}</version>
<packaging>bundle</packaging> <packaging>bundle</packaging>
<name>WSO2 Carbon - Firealarm Management Impl</name> <name>WSO2 Carbon - Firealarm Management Impl</name>
<description>WSO2 Carbon - Firealarm Management and Control Implementation</description> <description>WSO2 Carbon - Firealarm Management and Control Implementation</description>
@ -51,8 +51,8 @@
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName> <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
<Bundle-Name>${project.artifactId}</Bundle-Name> <Bundle-Name>${project.artifactId}</Bundle-Name>
<Bundle-Version>${carbon.iot.device.mgt.version}</Bundle-Version> <Bundle-Version>${carbon.iot.device.mgt.version}</Bundle-Version>
<Bundle-Description>Device Cloud Impl Bundle</Bundle-Description> <Bundle-Description>IoT Server Impl Bundle</Bundle-Description>
<Private-Package>org.wso2.carbon.device.mgt.iot.firealarm.internal</Private-Package> <Private-Package>org.wso2.carbon.device.mgt.iot.sample.firealarm.plugin.internal</Private-Package>
<Import-Package> <Import-Package>
org.osgi.framework, org.osgi.framework,
org.osgi.service.component, org.osgi.service.component,
@ -73,26 +73,12 @@
</Import-Package> </Import-Package>
<Export-Package> <Export-Package>
!org.wso2.carbon.device.mgt.iot.firealarm.internal, !org.wso2.carbon.device.mgt.iot.sample.firealarm.plugin.internal,
org.wso2.carbon.device.mgt.iot.firealarm.* org.wso2.carbon.device.mgt.iot.sample.firealarm.plugin.*
</Export-Package> </Export-Package>
</instructions> </instructions>
</configuration> </configuration>
</plugin> </plugin>
<!--<plugin>-->
<!--<groupId>org.apache.maven.plugins</groupId>-->
<!--<artifactId>maven-surefire-plugin</artifactId>-->
<!--<version>2.18</version>-->
<!--<configuration>-->
<!--<systemPropertyVariables>-->
<!--<log4j.configuration>file:src/test/resources/log4j.properties-->
<!--</log4j.configuration>-->
<!--</systemPropertyVariables>-->
<!--<suiteXmlFiles>-->
<!--<suiteXmlFile>src/test/resources/testng.xml</suiteXmlFile>-->
<!--</suiteXmlFiles>-->
<!--</configuration>-->
<!--</plugin>-->
</plugins> </plugins>
</build> </build>
@ -119,16 +105,7 @@
<groupId>org.wso2.carbon</groupId> <groupId>org.wso2.carbon</groupId>
<artifactId>org.wso2.carbon.ndatasource.core</artifactId> <artifactId>org.wso2.carbon.ndatasource.core</artifactId>
</dependency> </dependency>
<!--<dependency>-->
<!--<groupId>org.testng</groupId>-->
<!--<artifactId>testng</artifactId>-->
<!--</dependency>-->
<!--<dependency>-->
<!--<groupId>com.h2database.wso2</groupId>-->
<!--<artifactId>h2-database-engine</artifactId>-->
<!--<scope>test</scope>-->
<!--</dependency>-->
<dependency> <dependency>
<groupId>org.wso2.carbon.device.mgt.iot</groupId> <groupId>org.wso2.carbon.device.mgt.iot</groupId>
<artifactId>org.wso2.carbon.device.mgt.iot.common</artifactId> <artifactId>org.wso2.carbon.device.mgt.iot.common</artifactId>
@ -139,14 +116,4 @@
</dependencies> </dependencies>
</project> </project>
<!--<repositories>-->
<!--<repository>-->
<!--<id>Eclipse Paho Repo</id>-->
<!--<url>http://repo.spring.io/plugins-release/</url>-->
<!--</repository>-->
<!--</repositories>-->
<!--<dependency>-->
<!--<groupId>org.eclipse.paho</groupId>-->
<!--<artifactId>mqtt-client</artifactId>-->
<!--</dependency>-->

View File

@ -23,6 +23,8 @@ import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.wso2.carbon.device.mgt.common.*; import org.wso2.carbon.device.mgt.common.*;
import org.wso2.carbon.device.mgt.common.configuration.mgt.TenantConfiguration; import org.wso2.carbon.device.mgt.common.configuration.mgt.TenantConfiguration;
import org.wso2.carbon.device.mgt.common.license.mgt.License;
import org.wso2.carbon.device.mgt.common.license.mgt.LicenseManagementException;
import org.wso2.carbon.device.mgt.iot.sample.firealarm.plugin.impl.dao.FireAlarmDAO; import org.wso2.carbon.device.mgt.iot.sample.firealarm.plugin.impl.dao.FireAlarmDAO;
import org.wso2.carbon.device.mgt.iot.common.util.iotdevice.dao.IotDeviceManagementDAOException; import org.wso2.carbon.device.mgt.iot.common.util.iotdevice.dao.IotDeviceManagementDAOException;
import org.wso2.carbon.device.mgt.iot.common.util.iotdevice.dao.IotDeviceManagementDAOFactory; import org.wso2.carbon.device.mgt.iot.common.util.iotdevice.dao.IotDeviceManagementDAOFactory;
@ -205,6 +207,16 @@ public class FireAlarmManager implements DeviceManager {
return false; return false;
} }
@Override
public License getLicense(String s) throws LicenseManagementException {
return null;
}
@Override
public void addLicense(License license) throws LicenseManagementException {
}
@Override @Override
public boolean updateDeviceInfo(DeviceIdentifier deviceIdentifier, Device device) throws DeviceManagementException { public boolean updateDeviceInfo(DeviceIdentifier deviceIdentifier, Device device) throws DeviceManagementException {
boolean status; boolean status;

View File

@ -3,18 +3,18 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent> <parent>
<artifactId>devicecloud-api</artifactId> <artifactId>iot-server-samples</artifactId>
<groupId>org.wso2.carbon.device.mgt.iot</groupId> <groupId>org.wso2.carbon.device.mgt.iot.server.sample</groupId>
<version>1.0.0</version> <version>${carbon.iot.device.mgt.version}</version>
<relativePath>../pom.xml</relativePath> <relativePath>../../../pom.xml</relativePath>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>org.wso2.carbon.device.mgt.iot.firealarm.api</artifactId> <artifactId>org.wso2.carbon.device.mgt.iot.sample.firealarm.service.impl</artifactId>
<version>1.0.0</version> <version>${carbon.iot.device.mgt.version}</version>
<packaging>war</packaging> <packaging>war</packaging>
<name>WSO2 Carbon - Device Cloud API - Firealarm API</name> <name>WSO2 Carbon - IoT Server API - Firealarm API</name>
<dependencies> <dependencies>
<!-- CDM --> <!-- CDM -->
@ -59,8 +59,8 @@
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.wso2.carbon.device.mgt.iot</groupId> <groupId>org.wso2.carbon.device.mgt.iot.server.sample</groupId>
<artifactId>org.wso2.carbon.device.mgt.iot.firealarm.impl</artifactId> <artifactId>org.wso2.carbon.device.mgt.iot.sample.firealarm.plugin.impl</artifactId>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<!--JAX-RS --> <!--JAX-RS -->

View File

@ -4,8 +4,8 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
metadata-complete="true"> metadata-complete="true">
<display-name>WSO2 Device Cloud</display-name> <display-name>WSO2 IoT Server</display-name>
<description>WSO2 Device Cloud</description> <description>WSO2 IoT Server</description>
<servlet> <servlet>
<servlet-name>CXFServlet</servlet-name> <servlet-name>CXFServlet</servlet-name>

View File

@ -6,7 +6,7 @@
<h1 class="grey ">Fire Alarm</h1> <h1 class="grey ">Fire Alarm</h1>
<hr> <hr>
<p class="margin-bottom-double light-grey ">Connect your Fire Alarm device <p class="margin-bottom-double light-grey ">Connect your Fire Alarm device
to the WSO2 device cloud. </p> to the WSO2 IoT server. </p>
</div> </div>
<div class="col-xs-12 col-sm-6 col-md-4 col-lg-4 padding-top"> <div class="col-xs-12 col-sm-6 col-md-4 col-lg-4 padding-top">
<img src="{{self.publicURL}}/images/firealarm.png" class="img-responsive"> <img src="{{self.publicURL}}/images/firealarm.png" class="img-responsive">

View File

@ -1,4 +1,4 @@
{ {
"title" : "Firealarm", "title" : "Firealarm",
"description":"Connect Your Firealarm into the WSO2 Device Cloud Platform" "description":"Connect Your Firealarm into the WSO2 IoT Server"
} }

View File

@ -0,0 +1,577 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (c) 2014, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
~
~ WSO2 Inc. licenses this file to you under the Apache License,
~ Version 2.0 (the "License"); you may not use this file except
~ in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing,
~ software distributed under the License is distributed on an
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
~ KIND, either express or implied. See the License for the
~ specific language governing permissions and limitations
~ under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.wso2.carbon.device.mgt.iot.server.sample</groupId>
<artifactId>iot-server-samples</artifactId>
<packaging>pom</packaging>
<version>${carbon.iot.device.mgt.version}</version>
<name>WSO2 Carbon - IoT Server Sample</name>
<url>http://wso2.org</url>
<description>WSO2 Carbon - IoT Server Sample</description>
<parent>
<groupId>org.wso2</groupId>
<artifactId>wso2</artifactId>
<version>1</version>
</parent>
<modules>
<module>firealarm/src/org.wso2.carbon.device.mgt.iot.sample.firealarm.plugin.impl</module>
<module>firealarm/src/org.wso2.carbon.device.mgt.iot.sample.firealarm.service.impl</module>
<module>android_sense/src/org.wso2.carbon.device.mgt.iot.sample.android.sense.plugin.impl</module>
<module>android_sense/src/org.wso2.carbon.device.mgt.iot.sample.android.sense.service.impl</module>
<module>arduino/src/org.wso2.carbon.device.mgt.iot.sample.arduino.plugin.impl</module>
<module>arduino/src/org.wso2.carbon.device.mgt.iot.sample.arduino.service.impl</module>
<module>digital_display/src/org.wso2.carbon.device.mgt.iot.sample.digitaldisplay.plugin.impl</module>
<module>digital_display/src/org.wso2.carbon.device.mgt.iot.sample.digitaldisplay.service.impl</module>
<module>raspberrypi/src/org.wso2.carbon.device.mgt.iot.sample.raspberrypi.plugin.impl</module>
<module>raspberrypi/src/org.wso2.carbon.device.mgt.iot.sample.raspberrypi.service.impl</module>
<module>sensebot/src/org.wso2.carbon.device.mgt.iot.sample.sensebot.plugin.impl</module>
<module>sensebot/src/org.wso2.carbon.device.mgt.iot.sample.sensebot.service.impl</module>
</modules>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.wso2.carbon</groupId>
<artifactId>org.wso2.carbon.logging</artifactId>
<version>${carbon.kernel.version}</version>
<exclusions>
<exclusion>
<groupId>org.apache.log4j.wso2</groupId>
<artifactId>log4j</artifactId>
</exclusion>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
<exclusion>
<groupId>org.wso2.carbon</groupId>
<artifactId>org.wso2.carbon.bootstrap</artifactId>
</exclusion>
</exclusions>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.wso2.carbon</groupId>
<artifactId>org.wso2.carbon.ndatasource.core</artifactId>
<version>${carbon.kernel.version}</version>
<scope>provided</scope>
</dependency>
<!-- Device Management Core dependencies -->
<dependency>
<groupId>org.wso2.carbon.devicemgt</groupId>
<artifactId>org.wso2.carbon.device.mgt.core</artifactId>
<version>${carbon.device.mgt.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.wso2.carbon.devicemgt</groupId>
<artifactId>org.wso2.carbon.device.mgt.common</artifactId>
<version>${carbon.device.mgt.version}</version>
<scope>provided</scope>
</dependency>
<!--IOT dependencies-->
<dependency>
<groupId>org.wso2.carbon.device.mgt.iot</groupId>
<artifactId>org.wso2.carbon.device.mgt.iot.common</artifactId>
<version>${carbon.iot.device.mgt.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.wso2.carbon.device.mgt.iot.server.sample</groupId>
<artifactId>org.wso2.carbon.device.mgt.iot.sample.firealarm.plugin.impl</artifactId>
<version>${carbon.iot.device.mgt.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.wso2.carbon.device.mgt.iot.server.sample</groupId>
<artifactId>org.wso2.carbon.device.mgt.iot.sample.firealarm.service.impl</artifactId>
<version>${carbon.iot.device.mgt.version}</version>
<type>war</type>
</dependency>
<dependency>
<groupId>org.wso2.carbon.device.mgt.iot.server.sample</groupId>
<artifactId>org.wso2.carbon.device.mgt.iot.sample.android.sense.plugin.impl</artifactId>
<version>${carbon.iot.device.mgt.version}</version>
</dependency>
<dependency>
<groupId>org.wso2.carbon.device.mgt.iot.server.sample</groupId>
<artifactId>org.wso2.carbon.device.mgt.iot.sample.android.sense.service.impl</artifactId>
<version>${carbon.iot.device.mgt.version}</version>
<type>war</type>
</dependency>
<dependency>
<groupId>org.wso2.carbon.device.mgt.iot.server.sample</groupId>
<artifactId>org.wso2.carbon.device.mgt.iot.sample.arduino.plugin.impl</artifactId>
<version>${carbon.iot.device.mgt.version}</version>
</dependency>
<dependency>
<groupId>org.wso2.carbon.device.mgt.iot.server.sample</groupId>
<artifactId>org.wso2.carbon.device.mgt.iot.sample.arduino.service.impl</artifactId>
<version>${carbon.iot.device.mgt.version}</version>
<type>war</type>
</dependency>
<dependency>
<groupId>org.wso2.carbon.device.mgt.iot.server.sample</groupId>
<artifactId>org.wso2.carbon.device.mgt.iot.sample.digitaldisplay.plugin.impl</artifactId>
<version>${carbon.iot.device.mgt.version}</version>
</dependency>
<dependency>
<groupId>org.wso2.carbon.device.mgt.iot.server.sample</groupId>
<artifactId>org.wso2.carbon.device.mgt.iot.sample.digitaldisplay.service.impl</artifactId>
<version>${carbon.iot.device.mgt.version}</version>
<type>war</type>
</dependency>
<dependency>
<groupId>org.wso2.carbon.device.mgt.iot.server.sample</groupId>
<artifactId>org.wso2.carbon.device.mgt.iot.sample.raspberrypi.plugin.impl</artifactId>
<version>${carbon.iot.device.mgt.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.wso2.carbon.device.mgt.iot.server.sample</groupId>
<artifactId>org.wso2.carbon.device.mgt.iot.sample.raspberrypi.service.impl</artifactId>
<version>${carbon.iot.device.mgt.version}</version>
<type>war</type>
</dependency>
<dependency>
<groupId>org.wso2.carbon.device.mgt.iot.server.sample</groupId>
<artifactId>org.wso2.carbon.device.mgt.iot.sample.sensebot.plugin.impl</artifactId>
<version>${carbon.iot.device.mgt.version}</version>
</dependency>
<dependency>
<groupId>org.wso2.carbon.device.mgt.iot.server.sample</groupId>
<artifactId>org.wso2.carbon.device.mgt.iot.sample.sensebot.service.impl</artifactId>
<version>${carbon.iot.device.mgt.version}</version>
<type>war</type>
</dependency>
<dependency>
<groupId>org.eclipse.paho</groupId>
<artifactId>mqtt-client</artifactId>
<version>${eclipse.paho.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-web-api</artifactId>
<version>6.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-core-asl</artifactId>
<version>${jackson.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-jaxrs</artifactId>
<version>${jackson.version}</version>
<scope>provided</scope>
</dependency>
<!--Osgi dependencies-->
<dependency>
<groupId>org.eclipse.osgi</groupId>
<artifactId>org.eclipse.osgi</artifactId>
<version>${eclipse.osgi.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.eclipse.equinox</groupId>
<artifactId>org.eclipse.equinox.common</artifactId>
<version>${eclipse.equinox.common.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>${testng.version}</version>
<exclusions>
<exclusion>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</exclusion>
<exclusion>
<groupId>org.beanshell</groupId>
<artifactId>bsh</artifactId>
</exclusion>
<exclusion>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
</exclusion>
</exclusions>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.eclipse.osgi</groupId>
<artifactId>org.eclipse.osgi.services</artifactId>
<version>3.3.100.v20120522-1822</version>
<scope>provided</scope>
</dependency>
<!--Orbit dependencies-->
<dependency>
<groupId>com.h2database.wso2</groupId>
<artifactId>h2-database-engine</artifactId>
<version>${orbit.h2.engine.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.tomcat.wso2</groupId>
<artifactId>jdbc-pool</artifactId>
<version>${orbit.tomcat.jdbc.pooling.version}</version>
<scope>provided</scope>
</dependency>
<!-- CXF dependencies -->
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxws</artifactId>
<version>${cxf.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxrs</artifactId>
<version>${cxf.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-http</artifactId>
<version>${cxf.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.ws.rs</groupId>
<artifactId>jsr311-api</artifactId>
<version>${javax.ws.rs.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>commons-httpclient.wso2</groupId>
<artifactId>commons-httpclient</artifactId>
<version>${commons-httpclient.orbit.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.json.wso2</groupId>
<artifactId>json</artifactId>
<version>${commons-json.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
</dependencyManagement>
<properties>
<!-- IoT server version -->
<device.mgt.iot.feature.version>1.0.0</device.mgt.iot.feature.version>
<!--Carbon kernel versions-->
<carbon.kernel.version>4.4.0</carbon.kernel.version>
<carbon.kernel.version.range>[4.4.0, 4.5.0)</carbon.kernel.version.range>
<!--<carbon.p2.plugin.version>1.5.4</carbon.p2.plugin.version>-->
<!--Maven build number plugin-->
<maven-buildnumber-plugin.version>1.3</maven-buildnumber-plugin.version>
<!--Testing -->
<test.framework.version>4.3.1</test.framework.version>
<testng.version>6.8</testng.version>
<!--Eclipse Osgi-->
<eclipse.equinox.common.version>3.6.100.v20120522-1841</eclipse.equinox.common.version>
<eclipse.osgi.version>3.8.1.v20120830-144521</eclipse.osgi.version>
<!--Orbit versions-->
<orbit.h2.engine.version>1.2.140.wso2v3</orbit.h2.engine.version>
<orbit.tomcat.version>7.0.52.wso2v5</orbit.tomcat.version>
<orbit.tomcat.jdbc.pooling.version>7.0.34.wso2v2</orbit.tomcat.jdbc.pooling.version>
<eclipse.paho.version>0.4.0</eclipse.paho.version>
<!-- CXF version -->
<cxf.version>2.6.1</cxf.version>
<jackson.version>1.9.0</jackson.version>
<javax.ws.rs.version>1.1.1</javax.ws.rs.version>
<!-- Device Management -->
<carbon.device.mgt.version>0.9.2-SNAPSHOT</carbon.device.mgt.version>
<carbon.device.mgt.version.range>[0.8.0, 2.0.0)</carbon.device.mgt.version.range>
<!-- IOT Device Management -->
<carbon.iot.device.mgt.version>1.0.0-SNAPSHOT</carbon.iot.device.mgt.version>
<commons-httpclient.orbit.version>3.1.0.wso2v2</commons-httpclient.orbit.version>
<commons-json.version>3.0.0.wso2v1</commons-json.version>
<!-- Source code -->
<wso2.maven.compiler.source>1.7</wso2.maven.compiler.source>
<wso2.maven.compiler.target>1.7</wso2.maven.compiler.target>
</properties>
<build>
<extensions>
<extension>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-ssh</artifactId>
<version>2.1</version>
</extension>
</extensions>
<plugins>
<plugin>
<groupId>org.jvnet.maven.incrementalbuild</groupId>
<artifactId>incremental-build-plugin</artifactId>
<version>1.3</version>
<executions>
<execution>
<goals>
<goal>incremental-build</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<configuration>
<preparationGoals>clean install</preparationGoals>
<autoVersionSubmodules>false</autoVersionSubmodules>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-scr-plugin</artifactId>
<version>1.7.2</version>
<executions>
<execution>
<id>generate-scr-scrdescriptor</id>
<goals>
<goal>scr</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.3.5</version>
<extensions>true</extensions>
<configuration>
<obrRepository>NONE</obrRepository>
<!--<instructions>
<_include>-osgi.bnd</_include>
</instructions>-->
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.1.2</version>
<executions>
<execution>
<id>attach-sources</id>
<phase>verify</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2-beta-2</version>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.6</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>2.4</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.4</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.8</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<encoding>UTF-8</encoding>
<source>${wso2.maven.compiler.source}</source>
<target>${wso2.maven.compiler.target}</target>
</configuration>
<version>2.3.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.2</version>
</plugin>
<plugin>
<groupId>org.wso2.maven</groupId>
<artifactId>carbon-p2-plugin</artifactId>
<version>${carbon.p2.plugin.version}</version>
</plugin>
</plugins>
</pluginManagement>
</build>
<pluginRepositories>
<pluginRepository>
<id>wso2.releases</id>
<name>WSO2 internal Repository</name>
<url>http://maven.wso2.org/nexus/content/repositories/releases/</url>
<releases>
<enabled>true</enabled>
<updatePolicy>daily</updatePolicy>
<checksumPolicy>ignore</checksumPolicy>
</releases>
</pluginRepository>
<pluginRepository>
<id>wso2.snapshots</id>
<name>Apache Snapshot Repository</name>
<url>http://maven.wso2.org/nexus/content/repositories/snapshots/</url>
<snapshots>
<enabled>true</enabled>
<updatePolicy>daily</updatePolicy>
</snapshots>
<releases>
<enabled>false</enabled>
</releases>
</pluginRepository>
<pluginRepository>
<id>wso2-nexus</id>
<name>WSO2 internal Repository</name>
<url>http://maven.wso2.org/nexus/content/groups/wso2-public/</url>
<releases>
<enabled>true</enabled>
<updatePolicy>daily</updatePolicy>
<checksumPolicy>ignore</checksumPolicy>
</releases>
</pluginRepository>
</pluginRepositories>
<repositories>
<!-- Before adding ANYTHING in here, please start a discussion on the dev list.
Ideally the Axis2 build should only use Maven central (which is available
by default) and nothing else. We had troubles with other repositories in
the past. Therefore configuring additional repositories here should be
considered very carefully. -->
<repository>
<id>wso2-nexus</id>
<name>WSO2 internal Repository</name>
<url>http://maven.wso2.org/nexus/content/groups/wso2-public/</url>
<releases>
<enabled>true</enabled>
<updatePolicy>daily</updatePolicy>
<checksumPolicy>ignore</checksumPolicy>
</releases>
</repository>
<repository>
<id>wso2.releases</id>
<name>WSO2 internal Repository</name>
<url>http://maven.wso2.org/nexus/content/repositories/releases/</url>
<releases>
<enabled>true</enabled>
<updatePolicy>daily</updatePolicy>
<checksumPolicy>ignore</checksumPolicy>
</releases>
</repository>
<repository>
<id>wso2.snapshots</id>
<name>WSO2 Snapshot Repository</name>
<url>http://maven.wso2.org/nexus/content/repositories/snapshots/</url>
<snapshots>
<enabled>true</enabled>
<updatePolicy>daily</updatePolicy>
</snapshots>
<releases>
<enabled>false</enabled>
</releases>
</repository>
</repositories>
</project>

View File

@ -11,20 +11,20 @@
~ under the License. --> ~ under the License. -->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent> <parent>
<artifactId>devicecloud-mgt</artifactId> <artifactId>iot-server-samples</artifactId>
<groupId>org.wso2.carbon.device.mgt.iot</groupId> <groupId>org.wso2.carbon.device.mgt.iot.server.sample</groupId>
<version>1.0.0-SNAPSHOT</version> <version>${carbon.iot.device.mgt.version}</version>
<relativePath>../pom.xml</relativePath> <relativePath>../../../pom.xml</relativePath>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>org.wso2.carbon.device.mgt.iot.raspberrypi.impl</artifactId> <artifactId>org.wso2.carbon.device.mgt.iot.sample.raspberrypi.plugin.impl</artifactId>
<version>1.0.0-SNAPSHOT</version> <version>${carbon.iot.device.mgt.version}</version>
<packaging>bundle</packaging> <packaging>bundle</packaging>
<name>WSO2 Carbon - RaspberryPi Management Impl</name> <name>WSO2 Carbon - Raspberry Management Impl</name>
<description>WSO2 Carbon - Raspberrypi Management and Control Implementation</description> <description>WSO2 Carbon - Raspberry Management and Control Implementation</description>
<url>http://wso2.org</url> <url>http://wso2.org</url>
<build> <build>
@ -51,8 +51,8 @@
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName> <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
<Bundle-Name>${project.artifactId}</Bundle-Name> <Bundle-Name>${project.artifactId}</Bundle-Name>
<Bundle-Version>${carbon.iot.device.mgt.version}</Bundle-Version> <Bundle-Version>${carbon.iot.device.mgt.version}</Bundle-Version>
<Bundle-Description>Device Cloud Impl Bundle</Bundle-Description> <Bundle-Description>IoT Server Impl Bundle</Bundle-Description>
<Private-Package>org.wso2.carbon.device.mgt.iot.raspberrypi.internal</Private-Package> <Private-Package>org.wso2.carbon.device.mgt.iot.sample.raspberrypi.plugin.internal</Private-Package>
<Import-Package> <Import-Package>
org.osgi.framework, org.osgi.framework,
org.osgi.service.component, org.osgi.service.component,
@ -73,26 +73,12 @@
</Import-Package> </Import-Package>
<Export-Package> <Export-Package>
!org.wso2.carbon.device.mgt.iot.raspberrypi.internal, !org.wso2.carbon.device.mgt.iot.sample.raspberrypi.plugin.internal,
org.wso2.carbon.device.mgt.iot.raspberrypi.* org.wso2.carbon.device.mgt.iot.sample.raspberrypi.plugin.*
</Export-Package> </Export-Package>
</instructions> </instructions>
</configuration> </configuration>
</plugin> </plugin>
<!--<plugin>-->
<!--<groupId>org.apache.maven.plugins</groupId>-->
<!--<artifactId>maven-surefire-plugin</artifactId>-->
<!--<version>2.18</version>-->
<!--<configuration>-->
<!--<systemPropertyVariables>-->
<!--<log4j.configuration>file:src/test/resources/log4j.properties-->
<!--</log4j.configuration>-->
<!--</systemPropertyVariables>-->
<!--<suiteXmlFiles>-->
<!--<suiteXmlFile>src/test/resources/testng.xml</suiteXmlFile>-->
<!--</suiteXmlFiles>-->
<!--</configuration>-->
<!--</plugin>-->
</plugins> </plugins>
</build> </build>
@ -119,16 +105,7 @@
<groupId>org.wso2.carbon</groupId> <groupId>org.wso2.carbon</groupId>
<artifactId>org.wso2.carbon.ndatasource.core</artifactId> <artifactId>org.wso2.carbon.ndatasource.core</artifactId>
</dependency> </dependency>
<!--<dependency>-->
<!--<groupId>org.testng</groupId>-->
<!--<artifactId>testng</artifactId>-->
<!--</dependency>-->
<!--<dependency>-->
<!--<groupId>com.h2database.wso2</groupId>-->
<!--<artifactId>h2-database-engine</artifactId>-->
<!--<scope>test</scope>-->
<!--</dependency>-->
<dependency> <dependency>
<groupId>org.wso2.carbon.device.mgt.iot</groupId> <groupId>org.wso2.carbon.device.mgt.iot</groupId>
<artifactId>org.wso2.carbon.device.mgt.iot.common</artifactId> <artifactId>org.wso2.carbon.device.mgt.iot.common</artifactId>
@ -137,4 +114,6 @@
</dependencies> </dependencies>
</project>
</project>

View File

@ -28,6 +28,8 @@ import org.wso2.carbon.device.mgt.common.DeviceManager;
import org.wso2.carbon.device.mgt.common.EnrolmentInfo; import org.wso2.carbon.device.mgt.common.EnrolmentInfo;
import org.wso2.carbon.device.mgt.common.FeatureManager; import org.wso2.carbon.device.mgt.common.FeatureManager;
import org.wso2.carbon.device.mgt.common.configuration.mgt.TenantConfiguration; import org.wso2.carbon.device.mgt.common.configuration.mgt.TenantConfiguration;
import org.wso2.carbon.device.mgt.common.license.mgt.License;
import org.wso2.carbon.device.mgt.common.license.mgt.LicenseManagementException;
import org.wso2.carbon.device.mgt.iot.common.util.iotdevice.dao.IotDeviceManagementDAOException; import org.wso2.carbon.device.mgt.iot.common.util.iotdevice.dao.IotDeviceManagementDAOException;
import org.wso2.carbon.device.mgt.iot.common.util.iotdevice.dao.IotDeviceManagementDAOFactory; import org.wso2.carbon.device.mgt.iot.common.util.iotdevice.dao.IotDeviceManagementDAOFactory;
import org.wso2.carbon.device.mgt.iot.common.util.iotdevice.dto.IotDevice; import org.wso2.carbon.device.mgt.iot.common.util.iotdevice.dto.IotDevice;
@ -211,6 +213,16 @@ public class RaspberrypiManager implements DeviceManager {
return false; return false;
} }
@Override
public License getLicense(String s) throws LicenseManagementException {
return null;
}
@Override
public void addLicense(License license) throws LicenseManagementException {
}
@Override @Override
public boolean updateDeviceInfo(DeviceIdentifier deviceIdentifier, Device device) throws DeviceManagementException { public boolean updateDeviceInfo(DeviceIdentifier deviceIdentifier, Device device) throws DeviceManagementException {
boolean status; boolean status;

View File

@ -1,101 +1,107 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" <project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent> <parent>
<artifactId>devicecloud-api</artifactId> <artifactId>iot-server-samples</artifactId>
<groupId>org.wso2.carbon.device.mgt.iot</groupId> <groupId>org.wso2.carbon.device.mgt.iot.server.sample</groupId>
<version>1.0.0</version> <version>${carbon.iot.device.mgt.version}</version>
<relativePath>../pom.xml</relativePath> <relativePath>../../../pom.xml</relativePath>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>org.wso2.carbon.device.mgt.iot.raspberrypi.api</artifactId> <artifactId>org.wso2.carbon.device.mgt.iot.sample.raspberrypi.service.impl</artifactId>
<version>1.0.0</version> <version>${carbon.iot.device.mgt.version}</version>
<packaging>war</packaging> <packaging>war</packaging>
<name>WSO2 Carbon - Device Cloud API - Raspberrypi API</name> <name>WSO2 Carbon - IoT Server API - RaspberryPi API</name>
<dependencies> <dependencies>
<!-- CDM --> <!-- CDM -->
<dependency> <dependency>
<groupId>org.wso2.carbon.devicemgt</groupId> <groupId>org.wso2.carbon.devicemgt</groupId>
<artifactId>org.wso2.carbon.device.mgt.common</artifactId> <artifactId>org.wso2.carbon.device.mgt.common</artifactId>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<!--CXF --> <!--CXF -->
<dependency> <dependency>
<groupId>org.apache.cxf</groupId> <groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxws</artifactId> <artifactId>cxf-rt-frontend-jaxws</artifactId>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.cxf</groupId> <groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxrs</artifactId> <artifactId>cxf-rt-frontend-jaxrs</artifactId>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.cxf</groupId> <groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-http</artifactId> <artifactId>cxf-rt-transports-http</artifactId>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<!--MQTT -->
<dependency>
<groupId>org.eclipse.paho</groupId>
<artifactId>mqtt-client</artifactId>
<scope>provided</scope>
</dependency>
<!--IOT --> <!--IOT -->
<dependency>
<dependency> <groupId>org.apache.httpcomponents</groupId>
<groupId>org.wso2.carbon.device.mgt.iot</groupId> <artifactId>httpasyncclient</artifactId>
<artifactId>org.wso2.carbon.device.mgt.iot.common</artifactId> <version>4.1</version>
<scope>provided</scope> </dependency>
</dependency> <dependency>
<dependency> <groupId>org.wso2.carbon.device.mgt.iot</groupId>
<groupId>org.wso2.carbon.device.mgt.iot</groupId> <artifactId>org.wso2.carbon.device.mgt.iot.common</artifactId>
<artifactId>org.wso2.carbon.device.mgt.iot.raspberrypi.impl</artifactId> <scope>provided</scope>
<scope>provided</scope> </dependency>
</dependency> <dependency>
<!--JAX-RS --> <groupId>org.wso2.carbon.device.mgt.iot.server.sample</groupId>
<dependency> <artifactId>org.wso2.carbon.device.mgt.iot.sample.raspberrypi.plugin.impl</artifactId>
<groupId>org.codehaus.jackson</groupId> <scope>provided</scope>
<artifactId>jackson-core-asl</artifactId> </dependency>
</dependency> <!--JAX-RS -->
<dependency> <dependency>
<groupId>org.codehaus.jackson</groupId> <groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-jaxrs</artifactId> <artifactId>jackson-core-asl</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>javax</groupId> <groupId>org.codehaus.jackson</groupId>
<artifactId>javaee-web-api</artifactId> <artifactId>jackson-jaxrs</artifactId>
<scope>provided</scope> </dependency>
</dependency> <dependency>
<dependency> <groupId>javax</groupId>
<groupId>javax.ws.rs</groupId> <artifactId>javaee-web-api</artifactId>
<artifactId>jsr311-api</artifactId> <scope>provided</scope>
<scope>provided</scope> </dependency>
</dependency> <dependency>
<groupId>javax.ws.rs</groupId>
</dependencies> <artifactId>jsr311-api</artifactId>
<scope>provided</scope>
</dependency>
<build> </dependencies>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<encoding>UTF-8</encoding>
<source>${wso2.maven.compiler.source}</source>
<target>${wso2.maven.compiler.target}</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<warName>raspberrypi</warName><!--devices.war-->
<!--<packagingExcludes>WEB-INF/lib/*.jar</packagingExcludes>-->
</configuration>
</plugin>
</plugins>
</build>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<encoding>UTF-8</encoding>
<source>${wso2.maven.compiler.source}</source>
<target>${wso2.maven.compiler.target}</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<warName>raspberrypi</warName>
</configuration>
</plugin>
</plugins>
</build>
</project> </project>

View File

@ -1,4 +1,4 @@
{ {
"title" : "Raspberry Pi", "title" : "Raspberry Pi",
"description":"Connect Your Raspberry Pi into the WSO2 Device Cloud Platform" "description":"Connect Your Raspberry Pi into the WSO2 IoT Server"
} }

View File

@ -6,7 +6,7 @@
<h1 class="grey ">Raspberry Pi</h1> <h1 class="grey ">Raspberry Pi</h1>
<hr> <hr>
<p class="margin-bottom-double light-grey ">Connect your Raspberry Pi device <p class="margin-bottom-double light-grey ">Connect your Raspberry Pi device
to the WSO2 Device Cloud. </p> to the WSO2 IoT Server. </p>
</div> </div>
<div class="col-xs-12 col-sm-6 col-md-4 col-lg-4 padding-top"> <div class="col-xs-12 col-sm-6 col-md-4 col-lg-4 padding-top">
<img src="{{self.publicURL}}/images/raspberrypi.png" class="img-responsive"> <img src="{{self.publicURL}}/images/raspberrypi.png" class="img-responsive">

View File

@ -11,17 +11,17 @@
~ under the License. --> ~ under the License. -->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent> <parent>
<artifactId>devicecloud-mgt</artifactId> <artifactId>iot-server-samples</artifactId>
<groupId>org.wso2.carbon.device.mgt.iot</groupId> <groupId>org.wso2.carbon.device.mgt.iot.server.sample</groupId>
<version>1.0.0-SNAPSHOT</version> <version>${carbon.iot.device.mgt.version}</version>
<relativePath>../pom.xml</relativePath> <relativePath>../../../pom.xml</relativePath>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>org.wso2.carbon.device.mgt.iot.sensebot.impl</artifactId> <artifactId>org.wso2.carbon.device.mgt.iot.sample.sensebot.plugin.impl</artifactId>
<version>1.0.0-SNAPSHOT</version> <version>${carbon.iot.device.mgt.version}</version>
<packaging>bundle</packaging> <packaging>bundle</packaging>
<name>WSO2 Carbon - Sensebot Management Impl</name> <name>WSO2 Carbon - Sensebot Management Impl</name>
<description>WSO2 Carbon - Sensebot Management and Control Implementation</description> <description>WSO2 Carbon - Sensebot Management and Control Implementation</description>
@ -51,8 +51,8 @@
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName> <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
<Bundle-Name>${project.artifactId}</Bundle-Name> <Bundle-Name>${project.artifactId}</Bundle-Name>
<Bundle-Version>${carbon.iot.device.mgt.version}</Bundle-Version> <Bundle-Version>${carbon.iot.device.mgt.version}</Bundle-Version>
<Bundle-Description>Device Cloud Impl Bundle</Bundle-Description> <Bundle-Description>IoT Server Impl Bundle</Bundle-Description>
<Private-Package>org.wso2.carbon.device.mgt.iot.sensebot.internal</Private-Package> <Private-Package>org.wso2.carbon.device.mgt.iot.sample.sensebot.plugin.internal</Private-Package>
<Import-Package> <Import-Package>
org.osgi.framework, org.osgi.framework,
org.osgi.service.component, org.osgi.service.component,
@ -73,68 +73,47 @@
</Import-Package> </Import-Package>
<Export-Package> <Export-Package>
!org.wso2.carbon.device.mgt.iot.sensebot.internal, !org.wso2.carbon.device.mgt.iot.sample.sensebot.plugin.internal,
org.wso2.carbon.device.mgt.iot.sensebot.* org.wso2.carbon.device.mgt.iot.sample.sensebot.plugin.*
</Export-Package> </Export-Package>
</instructions> </instructions>
</configuration> </configuration>
</plugin> </plugin>
<!--<plugin>-->
<!--<groupId>org.apache.maven.plugins</groupId>-->
<!--<artifactId>maven-surefire-plugin</artifactId>-->
<!--<version>2.18</version>-->
<!--<configuration>-->
<!--<systemPropertyVariables>-->
<!--<log4j.configuration>file:src/test/resources/log4j.properties-->
<!--</log4j.configuration>-->
<!--</systemPropertyVariables>-->
<!--<suiteXmlFiles>-->
<!--<suiteXmlFile>src/test/resources/testng.xml</suiteXmlFile>-->
<!--</suiteXmlFiles>-->
<!--</configuration>-->
<!--</plugin>-->
</plugins> </plugins>
</build> </build>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.eclipse.osgi</groupId> <groupId>org.eclipse.osgi</groupId>
<artifactId>org.eclipse.osgi</artifactId> <artifactId>org.eclipse.osgi</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.eclipse.osgi</groupId> <groupId>org.eclipse.osgi</groupId>
<artifactId>org.eclipse.osgi.services</artifactId> <artifactId>org.eclipse.osgi.services</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.wso2.carbon</groupId> <groupId>org.wso2.carbon</groupId>
<artifactId>org.wso2.carbon.logging</artifactId> <artifactId>org.wso2.carbon.logging</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.wso2.carbon.devicemgt</groupId> <groupId>org.wso2.carbon.devicemgt</groupId>
<artifactId>org.wso2.carbon.device.mgt.common</artifactId> <artifactId>org.wso2.carbon.device.mgt.common</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.wso2.carbon</groupId> <groupId>org.wso2.carbon</groupId>
<artifactId>org.wso2.carbon.ndatasource.core</artifactId> <artifactId>org.wso2.carbon.ndatasource.core</artifactId>
</dependency> </dependency>
<!--<dependency>-->
<!--<groupId>org.testng</groupId>--> <dependency>
<!--<artifactId>testng</artifactId>--> <groupId>org.wso2.carbon.device.mgt.iot</groupId>
<!--</dependency>--> <artifactId>org.wso2.carbon.device.mgt.iot.common</artifactId>
</dependency>
<!--<dependency>-->
<!--<groupId>com.h2database.wso2</groupId>-->
<!--<artifactId>h2-database-engine</artifactId>-->
<!--<scope>test</scope>-->
<!--</dependency>-->
<dependency>
<groupId>org.wso2.carbon.device.mgt.iot</groupId>
<artifactId>org.wso2.carbon.device.mgt.iot.common</artifactId>
</dependency>
</dependencies> </dependencies>
</project>
</project>

View File

@ -28,6 +28,8 @@ import org.wso2.carbon.device.mgt.common.DeviceManager;
import org.wso2.carbon.device.mgt.common.EnrolmentInfo; import org.wso2.carbon.device.mgt.common.EnrolmentInfo;
import org.wso2.carbon.device.mgt.common.FeatureManager; import org.wso2.carbon.device.mgt.common.FeatureManager;
import org.wso2.carbon.device.mgt.common.configuration.mgt.TenantConfiguration; import org.wso2.carbon.device.mgt.common.configuration.mgt.TenantConfiguration;
import org.wso2.carbon.device.mgt.common.license.mgt.License;
import org.wso2.carbon.device.mgt.common.license.mgt.LicenseManagementException;
import org.wso2.carbon.device.mgt.iot.common.util.iotdevice.dao.IotDeviceManagementDAOException; import org.wso2.carbon.device.mgt.iot.common.util.iotdevice.dao.IotDeviceManagementDAOException;
import org.wso2.carbon.device.mgt.iot.common.util.iotdevice.dao.IotDeviceManagementDAOFactory; import org.wso2.carbon.device.mgt.iot.common.util.iotdevice.dao.IotDeviceManagementDAOFactory;
import org.wso2.carbon.device.mgt.iot.common.util.iotdevice.dto.IotDevice; import org.wso2.carbon.device.mgt.iot.common.util.iotdevice.dto.IotDevice;
@ -209,6 +211,16 @@ public class SensebotManager implements DeviceManager {
return false; return false;
} }
@Override
public License getLicense(String s) throws LicenseManagementException {
return null;
}
@Override
public void addLicense(License license) throws LicenseManagementException {
}
@Override @Override
public boolean updateDeviceInfo(DeviceIdentifier deviceIdentifier, Device device) throws DeviceManagementException { public boolean updateDeviceInfo(DeviceIdentifier deviceIdentifier, Device device) throws DeviceManagementException {
boolean status; boolean status;

View File

@ -3,19 +3,18 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent> <parent>
<artifactId>devicecloud-api</artifactId> <artifactId>iot-server-samples</artifactId>
<groupId>org.wso2.carbon.device.mgt.iot</groupId> <groupId>org.wso2.carbon.device.mgt.iot.server.sample</groupId>
<version>1.0.0</version> <version>${carbon.iot.device.mgt.version}</version>
<relativePath>../pom.xml</relativePath> <relativePath>../../../pom.xml</relativePath>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>org.wso2.carbon.device.mgt.iot.sample.sensebot.service.impl</artifactId>
<artifactId>org.wso2.carbon.device.mgt.iot.sensebot.api</artifactId> <version>${carbon.iot.device.mgt.version}</version>
<version>1.0.0</version>
<packaging>war</packaging> <packaging>war</packaging>
<name>WSO2 Carbon - Device Cloud API - Sensebot API</name> <name>WSO2 Carbon - IoT Server API - Sensebot API</name>
<dependencies> <dependencies>
<!-- CDM --> <!-- CDM -->
@ -25,23 +24,6 @@
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<!--IOT -->
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpasyncclient</artifactId>
<version>4.1</version>
</dependency>
<dependency>
<groupId>org.wso2.carbon.device.mgt.iot</groupId>
<artifactId>org.wso2.carbon.device.mgt.iot.common</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.wso2.carbon.device.mgt.iot</groupId>
<artifactId>org.wso2.carbon.device.mgt.iot.sensebot.impl</artifactId>
<scope>provided</scope>
</dependency>
<!--CXF --> <!--CXF -->
<dependency> <dependency>
<groupId>org.apache.cxf</groupId> <groupId>org.apache.cxf</groupId>
@ -64,6 +46,23 @@
<artifactId>mqtt-client</artifactId> <artifactId>mqtt-client</artifactId>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<!--IOT -->
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpasyncclient</artifactId>
<version>4.1</version>
</dependency>
<dependency>
<groupId>org.wso2.carbon.device.mgt.iot</groupId>
<artifactId>org.wso2.carbon.device.mgt.iot.common</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.wso2.carbon.device.mgt.iot.server.sample</groupId>
<artifactId>org.wso2.carbon.device.mgt.iot.sample.sensebot.plugin.impl</artifactId>
<scope>provided</scope>
</dependency>
<!--JAX-RS --> <!--JAX-RS -->
<dependency> <dependency>
<groupId>org.codehaus.jackson</groupId> <groupId>org.codehaus.jackson</groupId>
@ -85,12 +84,6 @@
</dependency> </dependency>
</dependencies> </dependencies>
<repositories>
<repository>
<id>Eclipse Paho Repo</id>
<url>http://repo.spring.io/plugins-release/</url>
</repository>
</repositories>
<build> <build>
<plugins> <plugins>

View File

@ -4,8 +4,8 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
metadata-complete="true"> metadata-complete="true">
<display-name>WSO2 Device Cloud</display-name> <display-name>WSO2 IoT Server</display-name>
<description>WSO2 Device Cloud</description> <description>WSO2 IoT Server</description>
<servlet> <servlet>
<servlet-name>CXFServlet</servlet-name> <servlet-name>CXFServlet</servlet-name>

View File

@ -1,4 +1,4 @@
{ {
"title" : "Sensebot", "title" : "Sensebot",
"description":"Connect Your Sensebot into the WSO2 Device Cloud Platform" "description":"Connect Your Sensebot into the WSO2 IoT Server"
} }

View File

@ -6,7 +6,7 @@
<h1 class="grey ">Sensebot</h1> <h1 class="grey ">Sensebot</h1>
<hr> <hr>
<p class="margin-bottom-double light-grey ">Connect your Sensebot <p class="margin-bottom-double light-grey ">Connect your Sensebot
to the WSO2 device cloud. </p> to the WSO2 IoT server. </p>
</div> </div>
<div class="col-xs-12 col-sm-6 col-md-4 col-lg-4 padding-top"> <div class="col-xs-12 col-sm-6 col-md-4 col-lg-4 padding-top">
<img src="{{self.publicURL}}/images/sensebot.png" class="img-responsive"> <img src="{{self.publicURL}}/images/sensebot.png" class="img-responsive">

View File

@ -20,15 +20,15 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent> <parent>
<groupId>org.wso2.dc</groupId> <groupId>org.wso2.iot</groupId>
<artifactId>wso2dc-parent</artifactId> <artifactId>wso2iot-parent</artifactId>
<version>1.0.0-SNAPSHOT</version> <version>1.0.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath> <relativePath>../../pom.xml</relativePath>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>wso2dc-integration</artifactId> <artifactId>wso2iot-integration</artifactId>
<name>WSO2 DC - Integration Tests</name> <name>WSO2 IoT Server - Integration Tests</name>
<packaging>pom</packaging> <packaging>pom</packaging>
<modules> <modules>

View File

@ -19,17 +19,17 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<parent> <parent>
<groupId>org.wso2.dc</groupId> <groupId>org.wso2.iot</groupId>
<artifactId>wso2dc-integration</artifactId> <artifactId>wso2iot-integration</artifactId>
<version>1.0.0-SNAPSHOT</version> <version>1.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath> <relativePath>../pom.xml</relativePath>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>org.wso2.dc</groupId> <groupId>org.wso2.iot</groupId>
<artifactId>tests-artifacts</artifactId> <artifactId>tests-artifacts</artifactId>
<packaging>pom</packaging> <packaging>pom</packaging>
<name>WSO2 DC Integration Test Common</name> <name>WSO2 IoT Server Integration Test Common</name>
<modules> <modules>
</modules> </modules>

View File

@ -20,15 +20,15 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent> <parent>
<groupId>org.wso2.dc</groupId> <groupId>org.wso2.iot</groupId>
<artifactId>tests-common</artifactId> <artifactId>tests-common</artifactId>
<version>1.0.0-SNAPSHOT</version> <version>1.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath> <relativePath>../pom.xml</relativePath>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>org.wso2.dc</groupId> <groupId>org.wso2.iot</groupId>
<artifactId>org.wso2.carbon.dc.integration.common.clients</artifactId> <artifactId>org.wso2.carbon.iot.integration.common.clients</artifactId>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>WSO2 MDM - Integration Admin Clients</name> <name>WSO2 MDM - Integration Admin Clients</name>
</project> </project>

View File

@ -20,17 +20,17 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent> <parent>
<groupId>org.wso2.dc</groupId> <groupId>org.wso2.iot</groupId>
<artifactId>tests-common</artifactId> <artifactId>tests-common</artifactId>
<version>1.0.0-SNAPSHOT</version> <version>1.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath> <relativePath>../pom.xml</relativePath>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>org.wso2.carbon.dc.integration.common.utils</artifactId> <artifactId>org.wso2.carbon.iot.integration.common.utils</artifactId>
<groupId>org.wso2.dc</groupId> <groupId>org.wso2.iot</groupId>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>WSO2 DC - Integration Test Utils</name> <name>WSO2 IoT Server - Integration Test Utils</name>
<licenses> <licenses>
<license> <license>

View File

@ -19,17 +19,17 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<parent> <parent>
<groupId>org.wso2.dc</groupId> <groupId>org.wso2.iot</groupId>
<artifactId>wso2dc-integration</artifactId> <artifactId>wso2iot-integration</artifactId>
<version>1.0.0-SNAPSHOT</version> <version>1.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath> <relativePath>../pom.xml</relativePath>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>org.wso2.dc</groupId> <groupId>org.wso2.iot</groupId>
<artifactId>tests-common</artifactId> <artifactId>tests-common</artifactId>
<packaging>pom</packaging> <packaging>pom</packaging>
<name>WSO2 DC Integration Test Common</name> <name>WSO2 IoT Server Integration Test Common</name>
<modules> <modules>
<module>admin-clients</module> <module>admin-clients</module>

View File

@ -22,15 +22,15 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent> <parent>
<groupId>org.wso2.dc</groupId> <groupId>org.wso2.iot</groupId>
<artifactId>tests-common</artifactId> <artifactId>tests-common</artifactId>
<version>1.0.0-SNAPSHOT</version> <version>1.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath> <relativePath>../pom.xml</relativePath>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>org.wso2.dc</groupId> <groupId>org.wso2.iot</groupId>
<artifactId>org.wso2.carbon.dc.integration.ui.pages</artifactId> <artifactId>org.wso2.carbon.iot.integration.ui.pages</artifactId>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>WSO2 MDM - Integration Test UI Pages</name> <name>WSO2 MDM - Integration Test UI Pages</name>

View File

@ -19,17 +19,17 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<parent> <parent>
<groupId>org.wso2.dc</groupId> <groupId>org.wso2.iot</groupId>
<artifactId>wso2dc-integration</artifactId> <artifactId>wso2iot-integration</artifactId>
<version>1.0.0-SNAPSHOT</version> <version>1.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath> <relativePath>../pom.xml</relativePath>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>org.wso2.dc</groupId> <groupId>org.wso2.iot</groupId>
<artifactId>tests-integration</artifactId> <artifactId>tests-integration</artifactId>
<packaging>pom</packaging> <packaging>pom</packaging>
<name>WSO2 MDM Backend Integration Tests</name> <name>WSO2 IoT Server Integration Tests</name>
<modules> <modules>
</modules> </modules>

View File

@ -19,17 +19,17 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<parent> <parent>
<groupId>org.wso2.dc</groupId> <groupId>org.wso2.iot</groupId>
<artifactId>wso2dc-integration</artifactId> <artifactId>wso2iot-integration</artifactId>
<version>1.0.0-SNAPSHOT</version> <version>1.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath> <relativePath>../pom.xml</relativePath>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>org.wso2.dc</groupId> <groupId>org.wso2.iot</groupId>
<artifactId>tests-platform</artifactId> <artifactId>tests-platform</artifactId>
<packaging>pom</packaging> <packaging>pom</packaging>
<name>WSO2 DC Platform Integration Tests</name> <name>WSO2 IoT Server Integration Tests</name>
<modules> <modules>
</modules> </modules>

View File

@ -20,15 +20,15 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent> <parent>
<groupId>org.wso2.dc</groupId> <groupId>org.wso2.iot</groupId>
<artifactId>wso2dc-integration</artifactId> <artifactId>wso2iot-integration</artifactId>
<version>1.0.0-SNAPSHOT</version> <version>1.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath> <relativePath>../pom.xml</relativePath>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<name>WSO2 DC - Integration Test UI Module</name> <name>WSO2 IoT Server - Integration Test UI Module</name>
<artifactId>org.wso2.carbon.dc.integration.test.ui.integration</artifactId> <artifactId>org.wso2.carbon.iot.integration.test.ui.integration</artifactId>
<packaging>jar</packaging> <packaging>jar</packaging>
<build> <build>
@ -62,7 +62,7 @@
<property> <property>
<name>carbon.zip</name> <name>carbon.zip</name>
<value> <value>
${basedir}/../../distribution/target/wso2dc-${project.version}.zip ${basedir}/../../distribution/target/wso2iot-${project.version}.zip
</value> </value>
</property> </property>
<property> <property>
@ -130,8 +130,8 @@
<configuration> <configuration>
<artifactItems> <artifactItems>
<artifactItem> <artifactItem>
<groupId>org.wso2.dc</groupId> <groupId>org.wso2.iot</groupId>
<artifactId>wso2dc</artifactId> <artifactId>wso2iot</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
<type>zip</type> <type>zip</type>
<overWrite>true</overWrite> <overWrite>true</overWrite>
@ -192,7 +192,7 @@
<resources> <resources>
<resource> <resource>
<directory> <directory>
${basedir}/target/tobeCopied/wso2dc-${project.version}/repository/resources/security/ ${basedir}/target/tobeCopied/wso2iot-${project.version}/repository/resources/security/
</directory> </directory>
<includes> <includes>
<include>**/*.jks</include> <include>**/*.jks</include>
@ -213,7 +213,7 @@
<resources> <resources>
<resource> <resource>
<directory> <directory>
${basedir}/target/tobeCopied/wso2dc-${project.version}/repository/conf/axis2/ ${basedir}/target/tobeCopied/wso2iot-${project.version}/repository/conf/axis2/
</directory> </directory>
<includes> <includes>
<include>**/*.xml</include> <include>**/*.xml</include>
@ -234,7 +234,7 @@
<resources> <resources>
<resource> <resource>
<directory> <directory>
${basedir}/target/tobeCopied/wso2dc-${project.version}/repository/deployment/client/modules ${basedir}/target/tobeCopied/wso2iot-${project.version}/repository/deployment/client/modules
</directory> </directory>
<includes> <includes>
<include>**/*.mar</include> <include>**/*.mar</include>
@ -250,8 +250,8 @@
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.wso2.dc</groupId> <groupId>org.wso2.iot</groupId>
<artifactId>org.wso2.carbon.dc.integration.ui.pages</artifactId> <artifactId>org.wso2.carbon.iot.integration.ui.pages</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.wso2.carbon.automation</groupId> <groupId>org.wso2.carbon.automation</groupId>

View File

@ -20,15 +20,15 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent> <parent>
<groupId>org.wso2.dc</groupId> <groupId>org.wso2.iot</groupId>
<artifactId>wso2dc-parent</artifactId> <artifactId>wso2iot-parent</artifactId>
<version>1.0.0-SNAPSHOT</version> <version>1.0.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath> <relativePath>../../pom.xml</relativePath>
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>wso2dc-profile-gen</artifactId> <artifactId>wso2iot-profile-gen</artifactId>
<name>WSO2 Device Cloud (DC) - P2 Profile Gen</name> <name>WSO2 IoT Server - P2 Profile Gen</name>
<packaging>pom</packaging> <packaging>pom</packaging>
<build> <build>

15
pom.xml
View File

@ -21,13 +21,13 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>org.wso2.dc</groupId> <groupId>org.wso2.iot</groupId>
<artifactId>wso2dc-parent</artifactId> <artifactId>wso2iot-parent</artifactId>
<packaging>pom</packaging> <packaging>pom</packaging>
<version>1.0.0-SNAPSHOT</version> <version>1.0.0-SNAPSHOT</version>
<name>WSO2 DC - Parent</name> <name>WSO2 IoT - Parent</name>
<url>http://wso2.org</url> <url>http://wso2.org</url>
<description>WSO2 Device Cloud</description> <description>WSO2 IoT Server</description>
<parent> <parent>
<groupId>org.wso2</groupId> <groupId>org.wso2</groupId>
@ -158,12 +158,7 @@
</exclusion> </exclusion>
</exclusions> </exclusions>
</dependency> </dependency>
<dependency>
<groupId>org.wso2.dc</groupId>
<artifactId>org.wso2.carbon.dc.integration.ui.pages</artifactId>
<version>${mdm.version}</version>
<scope>test</scope>
</dependency>
<!--Carbon Kernel Dependencies--> <!--Carbon Kernel Dependencies-->
<dependency> <dependency>