From 66755d951c083b9c0de99099b2c7a0e221ebd6ce Mon Sep 17 00:00:00 2001 From: Amalka Subasinghe Date: Thu, 16 Feb 2023 10:26:30 +0530 Subject: [PATCH] siddi device extension --- .../siddhi-extensions/org.wso2.extension.siddhi.device/pom.xml | 0 .../extension/siddhi/device/AddNotificationFunctionProcessor.java | 0 .../extension/siddhi/device/AddOperationFunctionProcessor.java | 0 .../siddhi/device/GetDevicesOfStatusFunctionExecutor.java | 0 .../extension/siddhi/device/GetDevicesOfUserFunctionExecutor.java | 0 .../siddhi/device/HasDevicesOfStatusFunctionExecutor.java | 0 .../extension/siddhi/device/HasDevicesOfUserFunctionExecutor.java | 0 .../wso2/extension/siddhi/device/IsEnrolledFunctionExecutor.java | 0 .../wso2/extension/siddhi/device/IsInGroupFunctionExecutor.java | 0 .../extension/siddhi/device/client/OAuthRequestInterceptor.java | 0 .../siddhi/device/client/configs/SiddhiExtensionConfig.java | 0 .../siddhi/device/client/configs/SiddhiExtensionConfigReader.java | 0 .../wso2/extension/siddhi/device/client/dto/OAuthApplication.java | 0 .../wso2/extension/siddhi/device/client/dto/OperationRequest.java | 0 .../extension/siddhi/device/client/dto/RegistrationProfile.java | 0 .../siddhi/device/client/exception/APIMClientException.java | 0 .../siddhi/device/client/exception/APIMClientOAuthException.java | 0 .../client/exception/InvalidConfigurationStateException.java | 0 .../wso2/extension/siddhi/device/client/services/DCRService.java | 0 .../extension/siddhi/device/client/services/OperationService.java | 0 .../java/org/wso2/extension/siddhi/device/utils/ClientUtils.java | 0 .../java/org/wso2/extension/siddhi/device/utils/DeviceUtils.java | 0 .../src}/main/resources/device.siddhiext | 0 .../wso2/extension/siddhi/device/BaseDeviceManagementTest.java | 0 .../java/org/wso2/extension/siddhi/device/ExtensionTestCase.java | 0 .../wso2/extension/siddhi/device/test/util/DataSourceConfig.java | 0 .../wso2/extension/siddhi/device/test/util/SiddhiTestHelper.java | 0 .../wso2/extension/siddhi/device/test/util/TestDataHolder.java | 0 .../siddhi/device/test/util/TestDeviceManagementService.java | 0 .../wso2/extension/siddhi/device/test/util/TestDeviceManager.java | 0 .../org/wso2/extension/siddhi/device/test/util/TestUtils.java | 0 .../src}/test/resources/carbon-home/dbscripts/h2.sql | 0 .../test/resources/carbon-home/repository/conf/axis2/axis2.xml | 0 .../resources/carbon-home/repository/conf/axis2/axis2_client.xml | 0 .../resources/carbon-home/repository/conf/axis2/tenant-axis2.xml | 0 .../src}/test/resources/carbon-home/repository/conf/carbon.xml | 0 .../test/resources/carbon-home/repository/conf/cdm-config.xml | 0 .../repository/conf/datasources/master-datasources.xml | 0 .../carbon-home/repository/conf/etc/bundle-config/README.txt | 0 .../repository/conf/etc/carboncontext-osgi-services.properties | 0 .../carbon-home/repository/conf/etc/config-validation.xml | 0 .../src}/test/resources/carbon-home/repository/conf/etc/jmx.xml | 0 .../test/resources/carbon-home/repository/conf/etc/launch.ini | 0 .../carbon-home/repository/conf/etc/logging-bridge.properties | 0 .../test/resources/carbon-home/repository/conf/etc/mime.mappings | 0 .../test/resources/carbon-home/repository/conf/etc/mime.types | 0 .../resources/carbon-home/repository/conf/etc/osgi-debug.options | 0 .../test/resources/carbon-home/repository/conf/log4j.properties | 0 .../src}/test/resources/carbon-home/repository/conf/registry.xml | 0 .../carbon-home/repository/conf/security/authenticators.xml | 0 .../repository/conf/tomcat/carbon/META-INF/context.xml | 0 .../carbon-home/repository/conf/tomcat/carbon/WEB-INF/web.xml | 0 .../carbon-home/repository/conf/tomcat/catalina-server.xml | 0 .../resources/carbon-home/repository/conf/tomcat/tomcat-users.xml | 0 .../test/resources/carbon-home/repository/conf/tomcat/web.xml | 0 .../src}/test/resources/carbon-home/repository/conf/user-mgt.xml | 0 .../src}/test/resources/config/datasource/data-source-config.xml | 0 .../src}/test/resources/log4j.properties | 0 .../src}/test/resources/sql/h2.sql | 0 .../src}/test/resources/testng.xml | 0 .../src}/test/resources/user-test/user-mgt-registry-test.xml | 0 61 files changed, 0 insertions(+), 0 deletions(-) rename pom.xml => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/pom.xml (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/main/java/org/wso2/extension/siddhi/device/AddNotificationFunctionProcessor.java (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/main/java/org/wso2/extension/siddhi/device/AddOperationFunctionProcessor.java (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/main/java/org/wso2/extension/siddhi/device/GetDevicesOfStatusFunctionExecutor.java (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/main/java/org/wso2/extension/siddhi/device/GetDevicesOfUserFunctionExecutor.java (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/main/java/org/wso2/extension/siddhi/device/HasDevicesOfStatusFunctionExecutor.java (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/main/java/org/wso2/extension/siddhi/device/HasDevicesOfUserFunctionExecutor.java (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/main/java/org/wso2/extension/siddhi/device/IsEnrolledFunctionExecutor.java (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/main/java/org/wso2/extension/siddhi/device/IsInGroupFunctionExecutor.java (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/main/java/org/wso2/extension/siddhi/device/client/OAuthRequestInterceptor.java (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/main/java/org/wso2/extension/siddhi/device/client/configs/SiddhiExtensionConfig.java (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/main/java/org/wso2/extension/siddhi/device/client/configs/SiddhiExtensionConfigReader.java (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/main/java/org/wso2/extension/siddhi/device/client/dto/OAuthApplication.java (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/main/java/org/wso2/extension/siddhi/device/client/dto/OperationRequest.java (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/main/java/org/wso2/extension/siddhi/device/client/dto/RegistrationProfile.java (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/main/java/org/wso2/extension/siddhi/device/client/exception/APIMClientException.java (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/main/java/org/wso2/extension/siddhi/device/client/exception/APIMClientOAuthException.java (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/main/java/org/wso2/extension/siddhi/device/client/exception/InvalidConfigurationStateException.java (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/main/java/org/wso2/extension/siddhi/device/client/services/DCRService.java (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/main/java/org/wso2/extension/siddhi/device/client/services/OperationService.java (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/main/java/org/wso2/extension/siddhi/device/utils/ClientUtils.java (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/main/java/org/wso2/extension/siddhi/device/utils/DeviceUtils.java (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/main/resources/device.siddhiext (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/test/java/org/wso2/extension/siddhi/device/BaseDeviceManagementTest.java (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/test/java/org/wso2/extension/siddhi/device/ExtensionTestCase.java (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/test/java/org/wso2/extension/siddhi/device/test/util/DataSourceConfig.java (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/test/java/org/wso2/extension/siddhi/device/test/util/SiddhiTestHelper.java (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/test/java/org/wso2/extension/siddhi/device/test/util/TestDataHolder.java (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/test/java/org/wso2/extension/siddhi/device/test/util/TestDeviceManagementService.java (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/test/java/org/wso2/extension/siddhi/device/test/util/TestDeviceManager.java (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/test/java/org/wso2/extension/siddhi/device/test/util/TestUtils.java (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/test/resources/carbon-home/dbscripts/h2.sql (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/test/resources/carbon-home/repository/conf/axis2/axis2.xml (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/test/resources/carbon-home/repository/conf/axis2/axis2_client.xml (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/test/resources/carbon-home/repository/conf/axis2/tenant-axis2.xml (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/test/resources/carbon-home/repository/conf/carbon.xml (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/test/resources/carbon-home/repository/conf/cdm-config.xml (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/test/resources/carbon-home/repository/conf/datasources/master-datasources.xml (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/test/resources/carbon-home/repository/conf/etc/bundle-config/README.txt (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/test/resources/carbon-home/repository/conf/etc/carboncontext-osgi-services.properties (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/test/resources/carbon-home/repository/conf/etc/config-validation.xml (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/test/resources/carbon-home/repository/conf/etc/jmx.xml (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/test/resources/carbon-home/repository/conf/etc/launch.ini (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/test/resources/carbon-home/repository/conf/etc/logging-bridge.properties (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/test/resources/carbon-home/repository/conf/etc/mime.mappings (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/test/resources/carbon-home/repository/conf/etc/mime.types (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/test/resources/carbon-home/repository/conf/etc/osgi-debug.options (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/test/resources/carbon-home/repository/conf/log4j.properties (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/test/resources/carbon-home/repository/conf/registry.xml (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/test/resources/carbon-home/repository/conf/security/authenticators.xml (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/test/resources/carbon-home/repository/conf/tomcat/carbon/META-INF/context.xml (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/test/resources/carbon-home/repository/conf/tomcat/carbon/WEB-INF/web.xml (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/test/resources/carbon-home/repository/conf/tomcat/catalina-server.xml (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/test/resources/carbon-home/repository/conf/tomcat/tomcat-users.xml (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/test/resources/carbon-home/repository/conf/tomcat/web.xml (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/test/resources/carbon-home/repository/conf/user-mgt.xml (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/test/resources/config/datasource/data-source-config.xml (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/test/resources/log4j.properties (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/test/resources/sql/h2.sql (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/test/resources/testng.xml (100%) rename {src => components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src}/test/resources/user-test/user-mgt-registry-test.xml (100%) diff --git a/pom.xml b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/pom.xml similarity index 100% rename from pom.xml rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/pom.xml diff --git a/src/main/java/org/wso2/extension/siddhi/device/AddNotificationFunctionProcessor.java b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/main/java/org/wso2/extension/siddhi/device/AddNotificationFunctionProcessor.java similarity index 100% rename from src/main/java/org/wso2/extension/siddhi/device/AddNotificationFunctionProcessor.java rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/main/java/org/wso2/extension/siddhi/device/AddNotificationFunctionProcessor.java diff --git a/src/main/java/org/wso2/extension/siddhi/device/AddOperationFunctionProcessor.java b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/main/java/org/wso2/extension/siddhi/device/AddOperationFunctionProcessor.java similarity index 100% rename from src/main/java/org/wso2/extension/siddhi/device/AddOperationFunctionProcessor.java rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/main/java/org/wso2/extension/siddhi/device/AddOperationFunctionProcessor.java diff --git a/src/main/java/org/wso2/extension/siddhi/device/GetDevicesOfStatusFunctionExecutor.java b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/main/java/org/wso2/extension/siddhi/device/GetDevicesOfStatusFunctionExecutor.java similarity index 100% rename from src/main/java/org/wso2/extension/siddhi/device/GetDevicesOfStatusFunctionExecutor.java rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/main/java/org/wso2/extension/siddhi/device/GetDevicesOfStatusFunctionExecutor.java diff --git a/src/main/java/org/wso2/extension/siddhi/device/GetDevicesOfUserFunctionExecutor.java b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/main/java/org/wso2/extension/siddhi/device/GetDevicesOfUserFunctionExecutor.java similarity index 100% rename from src/main/java/org/wso2/extension/siddhi/device/GetDevicesOfUserFunctionExecutor.java rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/main/java/org/wso2/extension/siddhi/device/GetDevicesOfUserFunctionExecutor.java diff --git a/src/main/java/org/wso2/extension/siddhi/device/HasDevicesOfStatusFunctionExecutor.java b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/main/java/org/wso2/extension/siddhi/device/HasDevicesOfStatusFunctionExecutor.java similarity index 100% rename from src/main/java/org/wso2/extension/siddhi/device/HasDevicesOfStatusFunctionExecutor.java rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/main/java/org/wso2/extension/siddhi/device/HasDevicesOfStatusFunctionExecutor.java diff --git a/src/main/java/org/wso2/extension/siddhi/device/HasDevicesOfUserFunctionExecutor.java b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/main/java/org/wso2/extension/siddhi/device/HasDevicesOfUserFunctionExecutor.java similarity index 100% rename from src/main/java/org/wso2/extension/siddhi/device/HasDevicesOfUserFunctionExecutor.java rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/main/java/org/wso2/extension/siddhi/device/HasDevicesOfUserFunctionExecutor.java diff --git a/src/main/java/org/wso2/extension/siddhi/device/IsEnrolledFunctionExecutor.java b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/main/java/org/wso2/extension/siddhi/device/IsEnrolledFunctionExecutor.java similarity index 100% rename from src/main/java/org/wso2/extension/siddhi/device/IsEnrolledFunctionExecutor.java rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/main/java/org/wso2/extension/siddhi/device/IsEnrolledFunctionExecutor.java diff --git a/src/main/java/org/wso2/extension/siddhi/device/IsInGroupFunctionExecutor.java b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/main/java/org/wso2/extension/siddhi/device/IsInGroupFunctionExecutor.java similarity index 100% rename from src/main/java/org/wso2/extension/siddhi/device/IsInGroupFunctionExecutor.java rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/main/java/org/wso2/extension/siddhi/device/IsInGroupFunctionExecutor.java diff --git a/src/main/java/org/wso2/extension/siddhi/device/client/OAuthRequestInterceptor.java b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/main/java/org/wso2/extension/siddhi/device/client/OAuthRequestInterceptor.java similarity index 100% rename from src/main/java/org/wso2/extension/siddhi/device/client/OAuthRequestInterceptor.java rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/main/java/org/wso2/extension/siddhi/device/client/OAuthRequestInterceptor.java diff --git a/src/main/java/org/wso2/extension/siddhi/device/client/configs/SiddhiExtensionConfig.java b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/main/java/org/wso2/extension/siddhi/device/client/configs/SiddhiExtensionConfig.java similarity index 100% rename from src/main/java/org/wso2/extension/siddhi/device/client/configs/SiddhiExtensionConfig.java rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/main/java/org/wso2/extension/siddhi/device/client/configs/SiddhiExtensionConfig.java diff --git a/src/main/java/org/wso2/extension/siddhi/device/client/configs/SiddhiExtensionConfigReader.java b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/main/java/org/wso2/extension/siddhi/device/client/configs/SiddhiExtensionConfigReader.java similarity index 100% rename from src/main/java/org/wso2/extension/siddhi/device/client/configs/SiddhiExtensionConfigReader.java rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/main/java/org/wso2/extension/siddhi/device/client/configs/SiddhiExtensionConfigReader.java diff --git a/src/main/java/org/wso2/extension/siddhi/device/client/dto/OAuthApplication.java b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/main/java/org/wso2/extension/siddhi/device/client/dto/OAuthApplication.java similarity index 100% rename from src/main/java/org/wso2/extension/siddhi/device/client/dto/OAuthApplication.java rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/main/java/org/wso2/extension/siddhi/device/client/dto/OAuthApplication.java diff --git a/src/main/java/org/wso2/extension/siddhi/device/client/dto/OperationRequest.java b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/main/java/org/wso2/extension/siddhi/device/client/dto/OperationRequest.java similarity index 100% rename from src/main/java/org/wso2/extension/siddhi/device/client/dto/OperationRequest.java rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/main/java/org/wso2/extension/siddhi/device/client/dto/OperationRequest.java diff --git a/src/main/java/org/wso2/extension/siddhi/device/client/dto/RegistrationProfile.java b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/main/java/org/wso2/extension/siddhi/device/client/dto/RegistrationProfile.java similarity index 100% rename from src/main/java/org/wso2/extension/siddhi/device/client/dto/RegistrationProfile.java rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/main/java/org/wso2/extension/siddhi/device/client/dto/RegistrationProfile.java diff --git a/src/main/java/org/wso2/extension/siddhi/device/client/exception/APIMClientException.java b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/main/java/org/wso2/extension/siddhi/device/client/exception/APIMClientException.java similarity index 100% rename from src/main/java/org/wso2/extension/siddhi/device/client/exception/APIMClientException.java rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/main/java/org/wso2/extension/siddhi/device/client/exception/APIMClientException.java diff --git a/src/main/java/org/wso2/extension/siddhi/device/client/exception/APIMClientOAuthException.java b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/main/java/org/wso2/extension/siddhi/device/client/exception/APIMClientOAuthException.java similarity index 100% rename from src/main/java/org/wso2/extension/siddhi/device/client/exception/APIMClientOAuthException.java rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/main/java/org/wso2/extension/siddhi/device/client/exception/APIMClientOAuthException.java diff --git a/src/main/java/org/wso2/extension/siddhi/device/client/exception/InvalidConfigurationStateException.java b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/main/java/org/wso2/extension/siddhi/device/client/exception/InvalidConfigurationStateException.java similarity index 100% rename from src/main/java/org/wso2/extension/siddhi/device/client/exception/InvalidConfigurationStateException.java rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/main/java/org/wso2/extension/siddhi/device/client/exception/InvalidConfigurationStateException.java diff --git a/src/main/java/org/wso2/extension/siddhi/device/client/services/DCRService.java b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/main/java/org/wso2/extension/siddhi/device/client/services/DCRService.java similarity index 100% rename from src/main/java/org/wso2/extension/siddhi/device/client/services/DCRService.java rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/main/java/org/wso2/extension/siddhi/device/client/services/DCRService.java diff --git a/src/main/java/org/wso2/extension/siddhi/device/client/services/OperationService.java b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/main/java/org/wso2/extension/siddhi/device/client/services/OperationService.java similarity index 100% rename from src/main/java/org/wso2/extension/siddhi/device/client/services/OperationService.java rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/main/java/org/wso2/extension/siddhi/device/client/services/OperationService.java diff --git a/src/main/java/org/wso2/extension/siddhi/device/utils/ClientUtils.java b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/main/java/org/wso2/extension/siddhi/device/utils/ClientUtils.java similarity index 100% rename from src/main/java/org/wso2/extension/siddhi/device/utils/ClientUtils.java rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/main/java/org/wso2/extension/siddhi/device/utils/ClientUtils.java diff --git a/src/main/java/org/wso2/extension/siddhi/device/utils/DeviceUtils.java b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/main/java/org/wso2/extension/siddhi/device/utils/DeviceUtils.java similarity index 100% rename from src/main/java/org/wso2/extension/siddhi/device/utils/DeviceUtils.java rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/main/java/org/wso2/extension/siddhi/device/utils/DeviceUtils.java diff --git a/src/main/resources/device.siddhiext b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/main/resources/device.siddhiext similarity index 100% rename from src/main/resources/device.siddhiext rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/main/resources/device.siddhiext diff --git a/src/test/java/org/wso2/extension/siddhi/device/BaseDeviceManagementTest.java b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/java/org/wso2/extension/siddhi/device/BaseDeviceManagementTest.java similarity index 100% rename from src/test/java/org/wso2/extension/siddhi/device/BaseDeviceManagementTest.java rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/java/org/wso2/extension/siddhi/device/BaseDeviceManagementTest.java diff --git a/src/test/java/org/wso2/extension/siddhi/device/ExtensionTestCase.java b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/java/org/wso2/extension/siddhi/device/ExtensionTestCase.java similarity index 100% rename from src/test/java/org/wso2/extension/siddhi/device/ExtensionTestCase.java rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/java/org/wso2/extension/siddhi/device/ExtensionTestCase.java diff --git a/src/test/java/org/wso2/extension/siddhi/device/test/util/DataSourceConfig.java b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/java/org/wso2/extension/siddhi/device/test/util/DataSourceConfig.java similarity index 100% rename from src/test/java/org/wso2/extension/siddhi/device/test/util/DataSourceConfig.java rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/java/org/wso2/extension/siddhi/device/test/util/DataSourceConfig.java diff --git a/src/test/java/org/wso2/extension/siddhi/device/test/util/SiddhiTestHelper.java b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/java/org/wso2/extension/siddhi/device/test/util/SiddhiTestHelper.java similarity index 100% rename from src/test/java/org/wso2/extension/siddhi/device/test/util/SiddhiTestHelper.java rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/java/org/wso2/extension/siddhi/device/test/util/SiddhiTestHelper.java diff --git a/src/test/java/org/wso2/extension/siddhi/device/test/util/TestDataHolder.java b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/java/org/wso2/extension/siddhi/device/test/util/TestDataHolder.java similarity index 100% rename from src/test/java/org/wso2/extension/siddhi/device/test/util/TestDataHolder.java rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/java/org/wso2/extension/siddhi/device/test/util/TestDataHolder.java diff --git a/src/test/java/org/wso2/extension/siddhi/device/test/util/TestDeviceManagementService.java b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/java/org/wso2/extension/siddhi/device/test/util/TestDeviceManagementService.java similarity index 100% rename from src/test/java/org/wso2/extension/siddhi/device/test/util/TestDeviceManagementService.java rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/java/org/wso2/extension/siddhi/device/test/util/TestDeviceManagementService.java diff --git a/src/test/java/org/wso2/extension/siddhi/device/test/util/TestDeviceManager.java b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/java/org/wso2/extension/siddhi/device/test/util/TestDeviceManager.java similarity index 100% rename from src/test/java/org/wso2/extension/siddhi/device/test/util/TestDeviceManager.java rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/java/org/wso2/extension/siddhi/device/test/util/TestDeviceManager.java diff --git a/src/test/java/org/wso2/extension/siddhi/device/test/util/TestUtils.java b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/java/org/wso2/extension/siddhi/device/test/util/TestUtils.java similarity index 100% rename from src/test/java/org/wso2/extension/siddhi/device/test/util/TestUtils.java rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/java/org/wso2/extension/siddhi/device/test/util/TestUtils.java diff --git a/src/test/resources/carbon-home/dbscripts/h2.sql b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/carbon-home/dbscripts/h2.sql similarity index 100% rename from src/test/resources/carbon-home/dbscripts/h2.sql rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/carbon-home/dbscripts/h2.sql diff --git a/src/test/resources/carbon-home/repository/conf/axis2/axis2.xml b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/carbon-home/repository/conf/axis2/axis2.xml similarity index 100% rename from src/test/resources/carbon-home/repository/conf/axis2/axis2.xml rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/carbon-home/repository/conf/axis2/axis2.xml diff --git a/src/test/resources/carbon-home/repository/conf/axis2/axis2_client.xml b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/carbon-home/repository/conf/axis2/axis2_client.xml similarity index 100% rename from src/test/resources/carbon-home/repository/conf/axis2/axis2_client.xml rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/carbon-home/repository/conf/axis2/axis2_client.xml diff --git a/src/test/resources/carbon-home/repository/conf/axis2/tenant-axis2.xml b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/carbon-home/repository/conf/axis2/tenant-axis2.xml similarity index 100% rename from src/test/resources/carbon-home/repository/conf/axis2/tenant-axis2.xml rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/carbon-home/repository/conf/axis2/tenant-axis2.xml diff --git a/src/test/resources/carbon-home/repository/conf/carbon.xml b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/carbon-home/repository/conf/carbon.xml similarity index 100% rename from src/test/resources/carbon-home/repository/conf/carbon.xml rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/carbon-home/repository/conf/carbon.xml diff --git a/src/test/resources/carbon-home/repository/conf/cdm-config.xml b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/carbon-home/repository/conf/cdm-config.xml similarity index 100% rename from src/test/resources/carbon-home/repository/conf/cdm-config.xml rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/carbon-home/repository/conf/cdm-config.xml diff --git a/src/test/resources/carbon-home/repository/conf/datasources/master-datasources.xml b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/carbon-home/repository/conf/datasources/master-datasources.xml similarity index 100% rename from src/test/resources/carbon-home/repository/conf/datasources/master-datasources.xml rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/carbon-home/repository/conf/datasources/master-datasources.xml diff --git a/src/test/resources/carbon-home/repository/conf/etc/bundle-config/README.txt b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/carbon-home/repository/conf/etc/bundle-config/README.txt similarity index 100% rename from src/test/resources/carbon-home/repository/conf/etc/bundle-config/README.txt rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/carbon-home/repository/conf/etc/bundle-config/README.txt diff --git a/src/test/resources/carbon-home/repository/conf/etc/carboncontext-osgi-services.properties b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/carbon-home/repository/conf/etc/carboncontext-osgi-services.properties similarity index 100% rename from src/test/resources/carbon-home/repository/conf/etc/carboncontext-osgi-services.properties rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/carbon-home/repository/conf/etc/carboncontext-osgi-services.properties diff --git a/src/test/resources/carbon-home/repository/conf/etc/config-validation.xml b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/carbon-home/repository/conf/etc/config-validation.xml similarity index 100% rename from src/test/resources/carbon-home/repository/conf/etc/config-validation.xml rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/carbon-home/repository/conf/etc/config-validation.xml diff --git a/src/test/resources/carbon-home/repository/conf/etc/jmx.xml b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/carbon-home/repository/conf/etc/jmx.xml similarity index 100% rename from src/test/resources/carbon-home/repository/conf/etc/jmx.xml rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/carbon-home/repository/conf/etc/jmx.xml diff --git a/src/test/resources/carbon-home/repository/conf/etc/launch.ini b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/carbon-home/repository/conf/etc/launch.ini similarity index 100% rename from src/test/resources/carbon-home/repository/conf/etc/launch.ini rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/carbon-home/repository/conf/etc/launch.ini diff --git a/src/test/resources/carbon-home/repository/conf/etc/logging-bridge.properties b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/carbon-home/repository/conf/etc/logging-bridge.properties similarity index 100% rename from src/test/resources/carbon-home/repository/conf/etc/logging-bridge.properties rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/carbon-home/repository/conf/etc/logging-bridge.properties diff --git a/src/test/resources/carbon-home/repository/conf/etc/mime.mappings b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/carbon-home/repository/conf/etc/mime.mappings similarity index 100% rename from src/test/resources/carbon-home/repository/conf/etc/mime.mappings rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/carbon-home/repository/conf/etc/mime.mappings diff --git a/src/test/resources/carbon-home/repository/conf/etc/mime.types b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/carbon-home/repository/conf/etc/mime.types similarity index 100% rename from src/test/resources/carbon-home/repository/conf/etc/mime.types rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/carbon-home/repository/conf/etc/mime.types diff --git a/src/test/resources/carbon-home/repository/conf/etc/osgi-debug.options b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/carbon-home/repository/conf/etc/osgi-debug.options similarity index 100% rename from src/test/resources/carbon-home/repository/conf/etc/osgi-debug.options rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/carbon-home/repository/conf/etc/osgi-debug.options diff --git a/src/test/resources/carbon-home/repository/conf/log4j.properties b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/carbon-home/repository/conf/log4j.properties similarity index 100% rename from src/test/resources/carbon-home/repository/conf/log4j.properties rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/carbon-home/repository/conf/log4j.properties diff --git a/src/test/resources/carbon-home/repository/conf/registry.xml b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/carbon-home/repository/conf/registry.xml similarity index 100% rename from src/test/resources/carbon-home/repository/conf/registry.xml rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/carbon-home/repository/conf/registry.xml diff --git a/src/test/resources/carbon-home/repository/conf/security/authenticators.xml b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/carbon-home/repository/conf/security/authenticators.xml similarity index 100% rename from src/test/resources/carbon-home/repository/conf/security/authenticators.xml rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/carbon-home/repository/conf/security/authenticators.xml diff --git a/src/test/resources/carbon-home/repository/conf/tomcat/carbon/META-INF/context.xml b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/carbon-home/repository/conf/tomcat/carbon/META-INF/context.xml similarity index 100% rename from src/test/resources/carbon-home/repository/conf/tomcat/carbon/META-INF/context.xml rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/carbon-home/repository/conf/tomcat/carbon/META-INF/context.xml diff --git a/src/test/resources/carbon-home/repository/conf/tomcat/carbon/WEB-INF/web.xml b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/carbon-home/repository/conf/tomcat/carbon/WEB-INF/web.xml similarity index 100% rename from src/test/resources/carbon-home/repository/conf/tomcat/carbon/WEB-INF/web.xml rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/carbon-home/repository/conf/tomcat/carbon/WEB-INF/web.xml diff --git a/src/test/resources/carbon-home/repository/conf/tomcat/catalina-server.xml b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/carbon-home/repository/conf/tomcat/catalina-server.xml similarity index 100% rename from src/test/resources/carbon-home/repository/conf/tomcat/catalina-server.xml rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/carbon-home/repository/conf/tomcat/catalina-server.xml diff --git a/src/test/resources/carbon-home/repository/conf/tomcat/tomcat-users.xml b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/carbon-home/repository/conf/tomcat/tomcat-users.xml similarity index 100% rename from src/test/resources/carbon-home/repository/conf/tomcat/tomcat-users.xml rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/carbon-home/repository/conf/tomcat/tomcat-users.xml diff --git a/src/test/resources/carbon-home/repository/conf/tomcat/web.xml b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/carbon-home/repository/conf/tomcat/web.xml similarity index 100% rename from src/test/resources/carbon-home/repository/conf/tomcat/web.xml rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/carbon-home/repository/conf/tomcat/web.xml diff --git a/src/test/resources/carbon-home/repository/conf/user-mgt.xml b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/carbon-home/repository/conf/user-mgt.xml similarity index 100% rename from src/test/resources/carbon-home/repository/conf/user-mgt.xml rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/carbon-home/repository/conf/user-mgt.xml diff --git a/src/test/resources/config/datasource/data-source-config.xml b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/config/datasource/data-source-config.xml similarity index 100% rename from src/test/resources/config/datasource/data-source-config.xml rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/config/datasource/data-source-config.xml diff --git a/src/test/resources/log4j.properties b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/log4j.properties similarity index 100% rename from src/test/resources/log4j.properties rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/log4j.properties diff --git a/src/test/resources/sql/h2.sql b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/sql/h2.sql similarity index 100% rename from src/test/resources/sql/h2.sql rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/sql/h2.sql diff --git a/src/test/resources/testng.xml b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/testng.xml similarity index 100% rename from src/test/resources/testng.xml rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/testng.xml diff --git a/src/test/resources/user-test/user-mgt-registry-test.xml b/components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/user-test/user-mgt-registry-test.xml similarity index 100% rename from src/test/resources/user-test/user-mgt-registry-test.xml rename to components/extensions/siddhi-extensions/org.wso2.extension.siddhi.device/src/test/resources/user-test/user-mgt-registry-test.xml