From 80908bac1eda1c3524f31a8b2733f08374eaf31e Mon Sep 17 00:00:00 2001 From: prabathabey Date: Fri, 20 Mar 2015 17:50:56 +0530 Subject: [PATCH] Adding feature manager related changes --- .../mgt/core/DeviceManagementServiceProviderImpl.java | 6 ++++-- .../device/mgt/core/service/DeviceManagementService.java | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/DeviceManagementServiceProviderImpl.java b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/DeviceManagementServiceProviderImpl.java index 3de82f76cc..eba43d395f 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/DeviceManagementServiceProviderImpl.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/DeviceManagementServiceProviderImpl.java @@ -62,8 +62,10 @@ public class DeviceManagementServiceProviderImpl implements DeviceManagementServ } @Override - public FeatureManager getFeatureManager() { - return null; + public FeatureManager getFeatureManager(String type) { + DeviceManager dms = + this.getPluginRepository().getDeviceManagementProvider(type); + return dms.getFeatureManager(); } @Override diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/service/DeviceManagementService.java b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/service/DeviceManagementService.java index 1f156f4f62..5cc4f1b2e5 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/service/DeviceManagementService.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/service/DeviceManagementService.java @@ -38,4 +38,6 @@ public interface DeviceManagementService extends DeviceManager, LicenseManager, List getDeviceListOfUser(String username) throws DeviceManagementException; + + }