From 986c9461ac1138e10688066f5afd4ce04e37ffb4 Mon Sep 17 00:00:00 2001 From: Charitha Goonetilleke Date: Fri, 26 Apr 2019 02:44:43 +0000 Subject: [PATCH] Add capability to store device type specific platform configurations for any device type --- .../android/mocks/DeviceManagementProviderServiceMock.java | 3 ++- .../configuration.hbs | 5 +++++ .../public/js/platform-configuration.js | 2 +- .../android/mocks/DeviceManagementProviderServiceMock.java | 3 ++- .../configuration.hbs | 5 +++++ .../public/js/platform-configuration.js | 2 +- pom.xml | 2 +- 7 files changed, 17 insertions(+), 5 deletions(-) diff --git a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/test/java/org/wso2/carbon/mdm/services/android/mocks/DeviceManagementProviderServiceMock.java b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/test/java/org/wso2/carbon/mdm/services/android/mocks/DeviceManagementProviderServiceMock.java index 38f2a774a..9ed1b6f0e 100644 --- a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/test/java/org/wso2/carbon/mdm/services/android/mocks/DeviceManagementProviderServiceMock.java +++ b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.api/src/test/java/org/wso2/carbon/mdm/services/android/mocks/DeviceManagementProviderServiceMock.java @@ -21,6 +21,7 @@ package org.wso2.carbon.mdm.services.android.mocks; import org.wso2.carbon.device.mgt.common.Device; import org.wso2.carbon.device.mgt.common.DeviceIdentifier; import org.wso2.carbon.device.mgt.common.DeviceManagementException; +import org.wso2.carbon.device.mgt.common.DeviceTypeNotFoundException; import org.wso2.carbon.device.mgt.common.EnrolmentInfo; import org.wso2.carbon.device.mgt.common.FeatureManager; import org.wso2.carbon.device.mgt.common.InvalidDeviceException; @@ -289,7 +290,7 @@ public class DeviceManagementProviderServiceMock implements DeviceManagementProv } @Override - public FeatureManager getFeatureManager(String s) throws DeviceManagementException { + public FeatureManager getFeatureManager(String s) throws DeviceTypeNotFoundException { return null; } diff --git a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.platform.configuration/configuration.hbs b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.platform.configuration/configuration.hbs index ec06c25f6..0b4931295 100644 --- a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.platform.configuration/configuration.hbs +++ b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.ui/src/main/resources/jaggeryapps/devicemgt/app/units/cdmf.unit.device.type.android.platform.configuration/configuration.hbs @@ -17,6 +17,11 @@ }}
+