mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-10-31 17:13:21 +00:00 
			
		
		
		
	Ticket #362: Added parentID property for connection and group.
This commit is contained in:
		| @@ -41,6 +41,12 @@ public abstract class AbstractConnection implements Connection { | ||||
|      */ | ||||
|     private String identifier; | ||||
|  | ||||
|     /** | ||||
|      * The unique identifier of the parent ConnectionGroup for | ||||
|      * this Connection. | ||||
|      */ | ||||
|     private String parentIdentifier; | ||||
|  | ||||
|     /** | ||||
|      * The GuacamoleConfiguration associated with this connection. | ||||
|      */ | ||||
| @@ -66,6 +72,16 @@ public abstract class AbstractConnection implements Connection { | ||||
|         this.identifier = identifier; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public String getParentIdentifier() { | ||||
|         return parentIdentifier; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public void setParentIdentifier(String parentIdentifier) { | ||||
|         this.parentIdentifier = parentIdentifier; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public GuacamoleConfiguration getConfiguration() { | ||||
|         return configuration; | ||||
|   | ||||
| @@ -38,6 +38,12 @@ public abstract class AbstractConnectionGroup implements ConnectionGroup { | ||||
|      * The unique identifier associated with this connection group. | ||||
|      */ | ||||
|     private String identifier; | ||||
|  | ||||
|     /** | ||||
|      * The unique identifier of the parent connection group for | ||||
|      * this connection group. | ||||
|      */ | ||||
|     private String parentIdentifier; | ||||
|      | ||||
|     /** | ||||
|      * The type of this connection group. | ||||
| @@ -63,6 +69,16 @@ public abstract class AbstractConnectionGroup implements ConnectionGroup { | ||||
|     public void setIdentifier(String identifier) { | ||||
|         this.identifier = identifier; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public String getParentIdentifier() { | ||||
|         return parentIdentifier; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public void setParentIdentifier(String parentIdentifier) { | ||||
|         this.parentIdentifier = parentIdentifier; | ||||
|     } | ||||
|      | ||||
|     @Override | ||||
|     public ConnectionGroup.Type getType() { | ||||
|   | ||||
| @@ -47,7 +47,7 @@ public interface Connection { | ||||
|     /** | ||||
|      * Sets the name assigned to this Connection. | ||||
|      * | ||||
|      * @param identifier The name to assign. | ||||
|      * @param name The name to assign. | ||||
|      */ | ||||
|     public void setName(String name); | ||||
|  | ||||
| @@ -64,6 +64,24 @@ public interface Connection { | ||||
|      */ | ||||
|     public void setIdentifier(String identifier); | ||||
|  | ||||
|     /** | ||||
|      * Returns the unique identifier of the parent ConnectionGroup for | ||||
|      * this Connection. | ||||
|      *  | ||||
|      * @return The unique identifier of the parent ConnectionGroup for | ||||
|      * this Connection. | ||||
|      */ | ||||
|     public String getParentIdentifier(); | ||||
|  | ||||
|     /** | ||||
|      * Sets the unique identifier of the parent ConnectionGroup for | ||||
|      * this Connection. | ||||
|      *  | ||||
|      * @param parentIdentifier The unique identifier of the parent  | ||||
|      * ConnectionGroup for this Connection. | ||||
|      */ | ||||
|     public void setParentIdentifier(String parentIdentifier); | ||||
|  | ||||
|     /** | ||||
|      * Returns the GuacamoleConfiguration associated with this Connection. Note | ||||
|      * that because configurations may contain sensitive information, some data | ||||
|   | ||||
| @@ -47,7 +47,7 @@ public interface ConnectionGroup { | ||||
|     /** | ||||
|      * Sets the name assigned to this ConnectionGroup. | ||||
|      * | ||||
|      * @param identifier The name to assign. | ||||
|      * @param name The name to assign. | ||||
|      */ | ||||
|     public void setName(String name); | ||||
|  | ||||
| @@ -63,6 +63,24 @@ public interface ConnectionGroup { | ||||
|      * @param identifier The identifier to assign. | ||||
|      */ | ||||
|     public void setIdentifier(String identifier); | ||||
|  | ||||
|     /** | ||||
|      * Returns the unique identifier of the parent ConnectionGroup for | ||||
|      * this ConnectionGroup. | ||||
|      *  | ||||
|      * @return The unique identifier of the parent ConnectionGroup for | ||||
|      * this ConnectionGroup. | ||||
|      */ | ||||
|     public String getParentIdentifier(); | ||||
|  | ||||
|     /** | ||||
|      * Sets the unique identifier of the parent ConnectionGroup for | ||||
|      * this ConnectionGroup. | ||||
|      *  | ||||
|      * @param parentIdentifier The unique identifier of the parent  | ||||
|      * ConnectionGroup for this ConnectionGroup. | ||||
|      */ | ||||
|     public void setParentIdentifier(String parentIdentifier); | ||||
|      | ||||
|     /** | ||||
|      * Set the type of this ConnectionGroup. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user