Search in sources :

Example 1 with VmBaseToVmBaseForTemplateCompositeBaseBuilder

use of org.ovirt.engine.ui.uicommonweb.builders.template.VmBaseToVmBaseForTemplateCompositeBaseBuilder in project ovirt-engine by oVirt.

the class VmSnapshotListModel method buildVmOnNewTemplate.

protected static VM buildVmOnNewTemplate(UnitVmModel model, VM vm) {
    VM resultVm = new VM();
    resultVm.setId(vm.getId());
    BuilderExecutor.build(model, resultVm.getStaticData(), new CommonUnitToVmBaseBuilder());
    BuilderExecutor.build(vm.getStaticData(), resultVm.getStaticData(), new VmBaseToVmBaseForTemplateCompositeBaseBuilder());
    return resultVm;
}
Also used : VmBaseToVmBaseForTemplateCompositeBaseBuilder(org.ovirt.engine.ui.uicommonweb.builders.template.VmBaseToVmBaseForTemplateCompositeBaseBuilder) VM(org.ovirt.engine.core.common.businessentities.VM) CommonUnitToVmBaseBuilder(org.ovirt.engine.ui.uicommonweb.builders.vm.CommonUnitToVmBaseBuilder)

Example 2 with VmBaseToVmBaseForTemplateCompositeBaseBuilder

use of org.ovirt.engine.ui.uicommonweb.builders.template.VmBaseToVmBaseForTemplateCompositeBaseBuilder in project ovirt-engine by oVirt.

the class VmListModel method buildVmOnNewTemplate.

protected static VM buildVmOnNewTemplate(UnitVmModel model, VM vm) {
    VM resultVm = new VM();
    resultVm.setId(vm.getId());
    BuilderExecutor.build(model, resultVm.getStaticData(), new CommonUnitToVmBaseBuilder());
    BuilderExecutor.build(vm.getStaticData(), resultVm.getStaticData(), new VmBaseToVmBaseForTemplateCompositeBaseBuilder());
    return resultVm;
}
Also used : VmBaseToVmBaseForTemplateCompositeBaseBuilder(org.ovirt.engine.ui.uicommonweb.builders.template.VmBaseToVmBaseForTemplateCompositeBaseBuilder) VM(org.ovirt.engine.core.common.businessentities.VM) CommonUnitToVmBaseBuilder(org.ovirt.engine.ui.uicommonweb.builders.vm.CommonUnitToVmBaseBuilder)

Aggregations

VM (org.ovirt.engine.core.common.businessentities.VM)2 VmBaseToVmBaseForTemplateCompositeBaseBuilder (org.ovirt.engine.ui.uicommonweb.builders.template.VmBaseToVmBaseForTemplateCompositeBaseBuilder)2 CommonUnitToVmBaseBuilder (org.ovirt.engine.ui.uicommonweb.builders.vm.CommonUnitToVmBaseBuilder)2