From accdd57544eef98189aeb2293f64eed9f334e590 Mon Sep 17 00:00:00 2001 From: charithag Date: Tue, 17 Nov 2015 10:35:00 +0530 Subject: [PATCH] Update with changes in CDM DeviceManagementService interface --- .../impl/AndroidDeviceManagementService.java | 15 +++++++++++++++ .../impl/WindowsDeviceManagementService.java | 15 +++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/components/device-mgt-mdm-android/org.wso2.carbon.device.mgt.mobile.android.impl/src/main/java/org/wso2/carbon/device/mgt/mobile/android/impl/AndroidDeviceManagementService.java b/components/device-mgt-mdm-android/org.wso2.carbon.device.mgt.mobile.android.impl/src/main/java/org/wso2/carbon/device/mgt/mobile/android/impl/AndroidDeviceManagementService.java index c81b9e3a61..495fcd187c 100644 --- a/components/device-mgt-mdm-android/org.wso2.carbon.device.mgt.mobile.android.impl/src/main/java/org/wso2/carbon/device/mgt/mobile/android/impl/AndroidDeviceManagementService.java +++ b/components/device-mgt-mdm-android/org.wso2.carbon.device.mgt.mobile.android.impl/src/main/java/org/wso2/carbon/device/mgt/mobile/android/impl/AndroidDeviceManagementService.java @@ -42,6 +42,21 @@ public class AndroidDeviceManagementService implements DeviceManagementService { return AndroidDeviceManagementService.DEVICE_TYPE_ANDROID; } + @Override + public String getProviderTenantDomain() { + return null; + } + + @Override + public boolean isSharedWithAllTenants() { + return false; + } + + @Override + public String[] getSharedTenantsDomain() { + return new String[0]; + } + @Override public void init() throws DeviceManagementException { this.deviceManager = new AndroidDeviceManager(); diff --git a/components/device-mgt-mdm-windows/org.wso2.carbon.device.mgt.mobile.windows.impl/src/main/java/org/wso2/carbon/device/mgt/mobile/windows/impl/WindowsDeviceManagementService.java b/components/device-mgt-mdm-windows/org.wso2.carbon.device.mgt.mobile.windows.impl/src/main/java/org/wso2/carbon/device/mgt/mobile/windows/impl/WindowsDeviceManagementService.java index 58b15f48b3..9795db0f71 100644 --- a/components/device-mgt-mdm-windows/org.wso2.carbon.device.mgt.mobile.windows.impl/src/main/java/org/wso2/carbon/device/mgt/mobile/windows/impl/WindowsDeviceManagementService.java +++ b/components/device-mgt-mdm-windows/org.wso2.carbon.device.mgt.mobile.windows.impl/src/main/java/org/wso2/carbon/device/mgt/mobile/windows/impl/WindowsDeviceManagementService.java @@ -42,6 +42,21 @@ public class WindowsDeviceManagementService implements DeviceManagementService { return WindowsDeviceManagementService.DEVICE_TYPE_WINDOWS; } + @Override + public String getProviderTenantDomain() { + return null; + } + + @Override + public boolean isSharedWithAllTenants() { + return false; + } + + @Override + public String[] getSharedTenantsDomain() { + return new String[0]; + } + @Override public void init() throws DeviceManagementException { this.deviceManager = new WindowsDeviceManager();