use of org.ovirt.engine.ui.uicommonweb.builders.vm.CommonUnitToVmBaseBuilder 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;
}
use of org.ovirt.engine.ui.uicommonweb.builders.vm.CommonUnitToVmBaseBuilder 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;
}
Aggregations