Search in sources :

Example 1 with MigrationOptionsUnitToVmBaseBuilder

use of org.ovirt.engine.ui.uicommonweb.builders.vm.MigrationOptionsUnitToVmBaseBuilder 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;
}
Also used : CpuProfileUnitToVmBaseBuilder(org.ovirt.engine.ui.uicommonweb.builders.vm.CpuProfileUnitToVmBaseBuilder) VmSpecificUnitToVmBuilder(org.ovirt.engine.ui.uicommonweb.builders.vm.VmSpecificUnitToVmBuilder) CoreUnitToVmBaseBuilder(org.ovirt.engine.ui.uicommonweb.builders.vm.CoreUnitToVmBaseBuilder) VM(org.ovirt.engine.core.common.businessentities.VM) KernelParamsUnitToVmBaseBuilder(org.ovirt.engine.ui.uicommonweb.builders.vm.KernelParamsUnitToVmBaseBuilder) UsbPolicyUnitToVmBaseBuilder(org.ovirt.engine.ui.uicommonweb.builders.vm.UsbPolicyUnitToVmBaseBuilder) DedicatedVmForVdsUnitToVmBaseBuilder(org.ovirt.engine.ui.uicommonweb.builders.vm.DedicatedVmForVdsUnitToVmBaseBuilder) NameUnitToVmBaseBuilder(org.ovirt.engine.ui.uicommonweb.builders.vm.NameUnitToVmBaseBuilder) MigrationOptionsUnitToVmBaseBuilder(org.ovirt.engine.ui.uicommonweb.builders.vm.MigrationOptionsUnitToVmBaseBuilder)

Example 2 with MigrationOptionsUnitToVmBaseBuilder

use of org.ovirt.engine.ui.uicommonweb.builders.vm.MigrationOptionsUnitToVmBaseBuilder 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());
}
Also used : UsbPolicyUnitToVmBaseBuilder(org.ovirt.engine.ui.uicommonweb.builders.vm.UsbPolicyUnitToVmBaseBuilder) NameUnitToVmBaseBuilder(org.ovirt.engine.ui.uicommonweb.builders.vm.NameUnitToVmBaseBuilder) MigrationOptionsUnitToVmBaseBuilder(org.ovirt.engine.ui.uicommonweb.builders.vm.MigrationOptionsUnitToVmBaseBuilder) UnitVmModel(org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel) HwOnlyCoreUnitToVmBaseBuilder(org.ovirt.engine.ui.uicommonweb.builders.vm.HwOnlyCoreUnitToVmBaseBuilder)

Aggregations

MigrationOptionsUnitToVmBaseBuilder (org.ovirt.engine.ui.uicommonweb.builders.vm.MigrationOptionsUnitToVmBaseBuilder)2 NameUnitToVmBaseBuilder (org.ovirt.engine.ui.uicommonweb.builders.vm.NameUnitToVmBaseBuilder)2 UsbPolicyUnitToVmBaseBuilder (org.ovirt.engine.ui.uicommonweb.builders.vm.UsbPolicyUnitToVmBaseBuilder)2 VM (org.ovirt.engine.core.common.businessentities.VM)1 CoreUnitToVmBaseBuilder (org.ovirt.engine.ui.uicommonweb.builders.vm.CoreUnitToVmBaseBuilder)1 CpuProfileUnitToVmBaseBuilder (org.ovirt.engine.ui.uicommonweb.builders.vm.CpuProfileUnitToVmBaseBuilder)1 DedicatedVmForVdsUnitToVmBaseBuilder (org.ovirt.engine.ui.uicommonweb.builders.vm.DedicatedVmForVdsUnitToVmBaseBuilder)1 HwOnlyCoreUnitToVmBaseBuilder (org.ovirt.engine.ui.uicommonweb.builders.vm.HwOnlyCoreUnitToVmBaseBuilder)1 KernelParamsUnitToVmBaseBuilder (org.ovirt.engine.ui.uicommonweb.builders.vm.KernelParamsUnitToVmBaseBuilder)1 VmSpecificUnitToVmBuilder (org.ovirt.engine.ui.uicommonweb.builders.vm.VmSpecificUnitToVmBuilder)1 UnitVmModel (org.ovirt.engine.ui.uicommonweb.models.vms.UnitVmModel)1