@JsonCreator public static SsoMethod fromString(String val) { for (SsoMethod ssoMethod : SsoMethod.values()) { if (ssoMethod.value.equalsIgnoreCase(val)) { return ssoMethod; } } return null; }
entity.setSmartcardEnabled(rs.getBoolean("is_smartcard_enabled")); entity.setDeleteProtected(rs.getBoolean("is_delete_protected")); entity.setSsoMethod(SsoMethod.fromString(rs.getString("sso_method"))); entity.setTunnelMigration((Boolean) rs.getObject("tunnel_migration")); entity.setVncKeyboardLayout(rs.getString("vnc_keyboard_layout"));
_writer.writeElement(SSO_METHOD, vmBase.getSsoMethod().toString());
() -> vmBase.setNumOfIoThreads(0)); consumeReadProperty(content, DELETE_PROTECTED, val -> vmBase.setDeleteProtected(Boolean.parseBoolean(val))); consumeReadProperty(content, SSO_METHOD, val -> vmBase.setSsoMethod(SsoMethod.fromString(val))); consumeReadProperty(content, TUNNEL_MIGRATION, val -> vmBase.setTunnelMigration(Boolean.parseBoolean(val))); consumeReadProperty(content, VNC_KEYBOARD_LAYOUT, val -> vmBase.setVncKeyboardLayout(val));
.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())
&& SsoMethod.GUEST_AGENT.equals(getEntity().getSsoMethod())) { getLogger().info("SpiceConsoleManager::Connect: Attempting to perform SSO on Desktop " //$NON-NLS-1$ + getEntity().getName());