_writer.writeElement(DELETE_PROTECTED, String.valueOf(vmBase.isDeleteProtected())); if (vmBase.getSsoMethod() != null) { _writer.writeElement(SSO_METHOD, vmBase.getSsoMethod().toString());
@Override protected void postBuild(VmBase vm, UnitVmModel model) { model.getBootMenuEnabled().setEntity(vm.isBootMenuEnabled()); model.getVncKeyboardLayout().setSelectedItem(vm.getVncKeyboardLayout()); model.getIsDeleteProtected().setEntity(vm.isDeleteProtected()); model.selectSsoMethod(vm.getSsoMethod()); model.getSpiceFileTransferEnabled().setEntity(vm.isSpiceFileTransferEnabled()); model.getSpiceCopyPasteEnabled().setEntity(vm.isSpiceCopyPasteEnabled()); model.getAutoConverge().setSelectedItem(vm.getAutoConverge()); model.getMigrateCompressed().setSelectedItem(vm.getMigrateCompressed()); model.getConsoleDisconnectAction().setSelectedItem(vm.getConsoleDisconnectAction()); model.getResumeBehavior().setSelectedItem(vm.getResumeBehavior()); if (!Objects.equals(model.getCustomCompatibilityVersion().getSelectedItem(), vm.getCustomCompatibilityVersion())) { // this has to be updated only if really changed since it triggers a refresh of the whole dialog including this // builder leading to an infinite recursion model.getCustomCompatibilityVersion().setSelectedItem(vm.getCustomCompatibilityVersion()); } } }
model.setSso(SsoMapper.map(entity.getSsoMethod(), null));
vmBase.isSmartcardEnabled(), vmBase.isDeleteProtected(), vmBase.getSsoMethod(), vmBase.getTunnelMigration(), vmBase.getVncKeyboardLayout(),
.addValue("is_smartcard_enabled", entity.isSmartcardEnabled()) .addValue("is_delete_protected", entity.isDeleteProtected()) .addValue("sso_method", entity.getSsoMethod().toString()) .addValue("iso_path", entity.getIsoPath()) .addValue("usb_policy", entity.getUsbPolicy())
assertTrue(vm.getSingleQxlPci()); assertTrue(vm.isSmartcardEnabled()); assertEquals(SSO_METHOD, vm.getSsoMethod()); assertEquals(NUM_OF_SOCKETS, vm.getNumOfSockets()); assertTrue(vm.getThreadsPerCpu() > 0);