Improving operation management implementation

revert-70aa11f8
prabathabey 10 years ago
parent 4638d25ff1
commit 0e598aad59

@ -22,6 +22,7 @@ import java.util.List;
public class Feature { public class Feature {
private int id; private int id;
private String code;
private String name; private String name;
private String description; private String description;
private String deviceType; private String deviceType;
@ -35,6 +36,14 @@ public class Feature {
this.id = id; this.id = id;
} }
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public String getName() { public String getName() {
return name; return name;
} }

@ -56,4 +56,6 @@ public interface OperationManager {
*/ */
public List<Operation> getPendingOperations(DeviceIdentifier deviceId) throws OperationManagementException; public List<Operation> getPendingOperations(DeviceIdentifier deviceId) throws OperationManagementException;
public Operation getPendingOperation(DeviceIdentifier deviceId) throws OperationManagementException;
} }

@ -247,4 +247,9 @@ public class DeviceManagementServiceProviderImpl implements DeviceManagementServ
return operationManager.getPendingOperations(deviceId); return operationManager.getPendingOperations(deviceId);
} }
@Override
public Operation getPendingOperation(DeviceIdentifier deviceId) throws OperationManagementException {
return null;
}
} }

@ -85,6 +85,11 @@ public class OperationManagerImpl implements OperationManager {
return null; return null;
} }
@Override
public Operation getPendingOperation(DeviceIdentifier deviceId) throws OperationManagementException {
return null;
}
private OperationDAO lookupOperationDAO(Operation operation) { private OperationDAO lookupOperationDAO(Operation operation) {
if (operation instanceof CommandOperation) { if (operation instanceof CommandOperation) {
return commandOperationDAO; return commandOperationDAO;

@ -127,4 +127,9 @@ public class DeviceManagementServiceImpl implements DeviceManagementService {
return DeviceManagementDataHolder.getInstance().getDeviceManagementProvider().getPendingOperations(deviceId); return DeviceManagementDataHolder.getInstance().getDeviceManagementProvider().getPendingOperations(deviceId);
} }
@Override
public Operation getPendingOperation(DeviceIdentifier deviceId) throws OperationManagementException {
return null;
}
} }

Loading…
Cancel
Save