mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-10-30 00:23:21 +00:00 
			
		
		
		
	Merge pull request #94 from glyptodon/fix-rest-object-move
GUAC-1100: Update parent identifier within REST service calls.
This commit is contained in:
		| @@ -40,7 +40,6 @@ import org.glyptodon.guacamole.GuacamoleClientException; | |||||||
| import org.glyptodon.guacamole.GuacamoleException; | import org.glyptodon.guacamole.GuacamoleException; | ||||||
| import org.glyptodon.guacamole.GuacamoleSecurityException; | import org.glyptodon.guacamole.GuacamoleSecurityException; | ||||||
| import org.glyptodon.guacamole.net.auth.Connection; | import org.glyptodon.guacamole.net.auth.Connection; | ||||||
| import org.glyptodon.guacamole.net.auth.ConnectionGroup; |  | ||||||
| import org.glyptodon.guacamole.net.auth.ConnectionRecord; | import org.glyptodon.guacamole.net.auth.ConnectionRecord; | ||||||
| import org.glyptodon.guacamole.net.auth.Directory; | import org.glyptodon.guacamole.net.auth.Directory; | ||||||
| import org.glyptodon.guacamole.net.auth.User; | import org.glyptodon.guacamole.net.auth.User; | ||||||
| @@ -297,6 +296,7 @@ public class ConnectionRESTService { | |||||||
|  |  | ||||||
|         // Update the connection |         // Update the connection | ||||||
|         existingConnection.setConfiguration(config); |         existingConnection.setConfiguration(config); | ||||||
|  |         existingConnection.setParentIdentifier(connection.getParentIdentifier()); | ||||||
|         existingConnection.setName(connection.getName()); |         existingConnection.setName(connection.getName()); | ||||||
|         connectionDirectory.update(existingConnection); |         connectionDirectory.update(existingConnection); | ||||||
|  |  | ||||||
|   | |||||||
| @@ -251,6 +251,7 @@ public class ConnectionGroupRESTService { | |||||||
|          |          | ||||||
|         // Update the connection group |         // Update the connection group | ||||||
|         existingConnectionGroup.setName(connectionGroup.getName()); |         existingConnectionGroup.setName(connectionGroup.getName()); | ||||||
|  |         existingConnectionGroup.setParentIdentifier(connectionGroup.getParentIdentifier()); | ||||||
|         existingConnectionGroup.setType(connectionGroup.getType()); |         existingConnectionGroup.setType(connectionGroup.getType()); | ||||||
|         connectionGroupDirectory.update(existingConnectionGroup); |         connectionGroupDirectory.update(existingConnectionGroup); | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user