use of org.ovirt.engine.core.common.businessentities.GraphicsDevice in project ovirt-engine by oVirt.
the class CloneVmCommand method setGraphicsDevices.
private void setGraphicsDevices(List<VmDevice> devices) {
for (GraphicsType graphicsType : GraphicsType.values()) {
// prevent copying from the template
getParameters().getGraphicsDevices().put(graphicsType, null);
}
for (VmDevice device : devices) {
if (device.getType() == VmDeviceGeneralType.GRAPHICS) {
GraphicsDevice graphicsDevice = new GraphicsDevice(device);
getParameters().getGraphicsDevices().put(graphicsDevice.getGraphicsType(), graphicsDevice);
}
}
}
Aggregations