use of org.ovirt.engine.ui.uicommonweb.builders.vm.UsbPolicyUnitToVmBaseBuilder in project ovirt-engine by oVirt.
the class PoolListModel method buildVmOnSave.
protected static VM buildVmOnSave(PoolModel model) {
VM vm = new VM();
BuilderExecutor.build(model, vm.getStaticData(), new NameUnitToVmBaseBuilder(), new CoreUnitToVmBaseBuilder(), new KernelParamsUnitToVmBaseBuilder(), new MigrationOptionsUnitToVmBaseBuilder(), new DedicatedVmForVdsUnitToVmBaseBuilder(), new UsbPolicyUnitToVmBaseBuilder(), new CpuProfileUnitToVmBaseBuilder());
BuilderExecutor.build(model, vm, new VmSpecificUnitToVmBuilder());
return vm;
}
use of org.ovirt.engine.ui.uicommonweb.builders.vm.UsbPolicyUnitToVmBaseBuilder in project ovirt-engine by oVirt.
the class InstanceTypeListModel method buildVmStatic.
private void buildVmStatic(VmBase vmBase) {
UnitVmModel model = (UnitVmModel) getWindow();
BuilderExecutor.build(model, vmBase, new HwOnlyCoreUnitToVmBaseBuilder(), new NameUnitToVmBaseBuilder(), new UsbPolicyUnitToVmBaseBuilder(), new MigrationOptionsUnitToVmBaseBuilder());
// from CommonUnitToVmBaseBuilder
vmBase.setAutoStartup(model.getIsHighlyAvailable().getEntity());
vmBase.setPriority(model.getPriority().getSelectedItem().getEntity());
}
Aggregations