From a6363348b52c80b52e289e0001d7af4b494b5b2b Mon Sep 17 00:00:00 2001 From: harshanL Date: Fri, 27 Mar 2015 22:58:19 +0530 Subject: [PATCH] Fixed getFeatureManager method --- .../wso2/carbon/device/mgt/common/operation/mgt/Operation.java | 2 +- .../device/mgt/core/service/DeviceManagementServiceImpl.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/operation/mgt/Operation.java b/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/operation/mgt/Operation.java index bc7507f7a8..65782922e8 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/operation/mgt/Operation.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/operation/mgt/Operation.java @@ -29,7 +29,7 @@ public class Operation { CONFIG, MESSAGE, INFO, COMMAND } public enum OperationStatuses { - INPROGRES,PENDING,COMPLETED,ERROR + INPROGRESS,PENDING,COMPLETED,ERROR } private String code; diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/service/DeviceManagementServiceImpl.java b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/service/DeviceManagementServiceImpl.java index fc2da462a6..7d9e89d5c2 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/service/DeviceManagementServiceImpl.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/service/DeviceManagementServiceImpl.java @@ -83,7 +83,7 @@ public class DeviceManagementServiceImpl implements DeviceManagementService { } public FeatureManager getFeatureManager(String type) throws DeviceManagementException { - return null; + return DeviceManagementDataHolder.getInstance().getDeviceManagementProvider().getFeatureManager(type); } @Override