Refractor Operations Mgt

revert-70aa11f8
manoj 10 years ago
parent 6f59913621
commit 2d5f8fe937

@ -36,8 +36,7 @@ public interface OperationManager {
* @throws OperationManagementException If some unusual behaviour is observed while adding the * @throws OperationManagementException If some unusual behaviour is observed while adding the
* operation * operation
*/ */
public boolean addOperation(Operation operation, List<DeviceIdentifier> devices) throws public boolean addOperation(Operation operation, List<DeviceIdentifier> devices) throws OperationManagementException;
OperationManagementException, DeviceManagementException;
/** /**
* Method to retrieve the list of all operations to a device. * Method to retrieve the list of all operations to a device.

@ -424,7 +424,7 @@ public class DeviceManagementServiceProviderImpl implements DeviceManagementServ
@Override @Override
public boolean addOperation(Operation operation, List<DeviceIdentifier> devices) throws public boolean addOperation(Operation operation, List<DeviceIdentifier> devices) throws
OperationManagementException, DeviceManagementException { OperationManagementException {
return operationManager.addOperation(operation, devices); return operationManager.addOperation(operation, devices);
} }

@ -120,8 +120,8 @@ public class DeviceManagementServiceImpl implements DeviceManagementService {
} }
@Override @Override
public boolean addOperation(Operation operation, public boolean addOperation(Operation operation, List<DeviceIdentifier> devices)
List<DeviceIdentifier> devices) throws OperationManagementException, DeviceManagementException { throws OperationManagementException {
return DeviceManagementDataHolder.getInstance().getDeviceManagementProvider().addOperation(operation, devices); return DeviceManagementDataHolder.getInstance().getDeviceManagementProvider().addOperation(operation, devices);
} }

Loading…
Cancel
Save