Implementing services

revert-70aa11f8
Dilshan Edirisuriya 10 years ago
parent 01d57a15d8
commit 4198764cb2

@ -357,13 +357,13 @@ public class DeviceManagementServiceProviderImpl implements DeviceManagementServ
@Override @Override
public Operation getNextPendingOperation(DeviceIdentifier deviceId) throws OperationManagementException { public Operation getNextPendingOperation(DeviceIdentifier deviceId) throws OperationManagementException {
return null; return operationManager.getNextPendingOperation(deviceId);
} }
@Override @Override
public Operation updateOperation(int id, DeviceIdentifier deviceIdentifier, public Operation updateOperation(int id, DeviceIdentifier deviceIdentifier,
String payLoad) throws OperationManagementException { String payLoad) throws OperationManagementException {
return null; return operationManager.updateOperation(id, deviceIdentifier, payLoad);
} }
} }

@ -133,13 +133,14 @@ public class DeviceManagementServiceImpl implements DeviceManagementService {
@Override @Override
public Operation getNextPendingOperation(DeviceIdentifier deviceId) throws OperationManagementException { public Operation getNextPendingOperation(DeviceIdentifier deviceId) throws OperationManagementException {
return null; return DeviceManagementDataHolder.getInstance().getDeviceManagementProvider().getNextPendingOperation(deviceId);
} }
@Override @Override
public Operation updateOperation(int operationId, DeviceIdentifier deviceIdentifier, public Operation updateOperation(int operationId, DeviceIdentifier deviceIdentifier,
String responsePayLoad) throws OperationManagementException { String responsePayLoad) throws OperationManagementException {
return null; return DeviceManagementDataHolder.getInstance().getDeviceManagementProvider().
updateOperation(operationId, deviceIdentifier, responsePayLoad);
} }
@Override @Override

Loading…
Cancel
Save