Improving operation management implementation

4.x.x
prabathabey 10 years ago
parent 4638d25ff1
commit 0e598aad59

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

@ -56,4 +56,6 @@ public interface OperationManager {
*/
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);
}
@Override
public Operation getPendingOperation(DeviceIdentifier deviceId) throws OperationManagementException {
return null;
}
}

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

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

Loading…
Cancel
Save