mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-10-31 17:13:21 +00:00 
			
		
		
		
	GUAC-800: Use Forms for attributes, not just Fields.
This commit is contained in:
		| @@ -24,7 +24,7 @@ package org.glyptodon.guacamole.net.auth; | ||||
|  | ||||
| import java.util.Collection; | ||||
| import org.glyptodon.guacamole.GuacamoleException; | ||||
| import org.glyptodon.guacamole.form.Field; | ||||
| import org.glyptodon.guacamole.form.Form; | ||||
|  | ||||
| /** | ||||
|  * The context of an active user. The functions of this class enforce all | ||||
| @@ -121,7 +121,7 @@ public interface UserContext { | ||||
|      * @return | ||||
|      *     A collection of all attributes applicable to users. | ||||
|      */ | ||||
|     Collection<Field> getUserAttributes(); | ||||
|     Collection<Form> getUserAttributes(); | ||||
|  | ||||
|     /** | ||||
|      * Retrieves a collection of all attributes applicable to connections. This | ||||
| @@ -132,7 +132,7 @@ public interface UserContext { | ||||
|      * @return | ||||
|      *     A collection of all attributes applicable to connections. | ||||
|      */ | ||||
|     Collection<Field> getConnectionAttributes(); | ||||
|     Collection<Form> getConnectionAttributes(); | ||||
|  | ||||
|     /** | ||||
|      * Retrieves a collection of all attributes applicable to connection | ||||
| @@ -143,6 +143,6 @@ public interface UserContext { | ||||
|      * @return | ||||
|      *     A collection of all attributes applicable to connection groups. | ||||
|      */ | ||||
|     Collection<Field> getConnectionGroupAttributes(); | ||||
|     Collection<Form> getConnectionGroupAttributes(); | ||||
|  | ||||
| } | ||||
|   | ||||
| @@ -28,7 +28,7 @@ import java.util.Collections; | ||||
| import java.util.Map; | ||||
| import java.util.UUID; | ||||
| import org.glyptodon.guacamole.GuacamoleException; | ||||
| import org.glyptodon.guacamole.form.Field; | ||||
| import org.glyptodon.guacamole.form.Form; | ||||
| import org.glyptodon.guacamole.net.auth.ActiveConnection; | ||||
| import org.glyptodon.guacamole.net.auth.Connection; | ||||
| import org.glyptodon.guacamole.net.auth.ConnectionGroup; | ||||
| @@ -176,18 +176,18 @@ public class SimpleUserContext implements UserContext { | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public Collection<Field> getUserAttributes() { | ||||
|         return Collections.<Field>emptyList(); | ||||
|     public Collection<Form> getUserAttributes() { | ||||
|         return Collections.<Form>emptyList(); | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public Collection<Field> getConnectionAttributes() { | ||||
|         return Collections.<Field>emptyList(); | ||||
|     public Collection<Form> getConnectionAttributes() { | ||||
|         return Collections.<Form>emptyList(); | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public Collection<Field> getConnectionGroupAttributes() { | ||||
|         return Collections.<Field>emptyList(); | ||||
|     public Collection<Form> getConnectionGroupAttributes() { | ||||
|         return Collections.<Form>emptyList(); | ||||
|     } | ||||
|  | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user