From 4198764cb27b3f45ff26b632a93c58ef306ec5ca Mon Sep 17 00:00:00 2001 From: Dilshan Edirisuriya Date: Wed, 1 Apr 2015 19:23:04 +0530 Subject: [PATCH] Implementing services --- .../mgt/core/DeviceManagementServiceProviderImpl.java | 4 ++-- .../mgt/core/service/DeviceManagementServiceImpl.java | 7 ++++--- 2 files changed, 6 insertions(+), 5 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 bfdce769452..4fbfde4dac3 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 @@ -357,13 +357,13 @@ public class DeviceManagementServiceProviderImpl implements DeviceManagementServ @Override public Operation getNextPendingOperation(DeviceIdentifier deviceId) throws OperationManagementException { - return null; + return operationManager.getNextPendingOperation(deviceId); } @Override public Operation updateOperation(int id, DeviceIdentifier deviceIdentifier, String payLoad) throws OperationManagementException { - return null; + return operationManager.updateOperation(id, deviceIdentifier, payLoad); } } 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 7c88e429cce..cef57fffa69 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 @@ -116,7 +116,7 @@ public class DeviceManagementServiceImpl implements DeviceManagementService { @Override public boolean addOperation(Operation operation, - List devices) throws OperationManagementException { + List devices) throws OperationManagementException { return DeviceManagementDataHolder.getInstance().getDeviceManagementProvider().addOperation(operation, devices); } @@ -133,13 +133,14 @@ public class DeviceManagementServiceImpl implements DeviceManagementService { @Override public Operation getNextPendingOperation(DeviceIdentifier deviceId) throws OperationManagementException { - return null; + return DeviceManagementDataHolder.getInstance().getDeviceManagementProvider().getNextPendingOperation(deviceId); } @Override public Operation updateOperation(int operationId, DeviceIdentifier deviceIdentifier, String responsePayLoad) throws OperationManagementException { - return null; + return DeviceManagementDataHolder.getInstance().getDeviceManagementProvider(). + updateOperation(operationId, deviceIdentifier, responsePayLoad); } @Override