mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-10-31 09:03:21 +00:00 
			
		
		
		
	GUACAMOLE-5: Track the sharing profile associated with an active connection.
This commit is contained in:
		| @@ -36,6 +36,11 @@ public abstract class AbstractActiveConnection extends AbstractIdentifiable | ||||
|      */ | ||||
|     private String connectionIdentifier; | ||||
|  | ||||
|     /** | ||||
|      * The identifier of the associated sharing profile. | ||||
|      */ | ||||
|     private String sharingProfileIdentifier; | ||||
|  | ||||
|     /** | ||||
|      * The date and time this active connection began. | ||||
|      */ | ||||
| @@ -66,6 +71,16 @@ public abstract class AbstractActiveConnection extends AbstractIdentifiable | ||||
|         this.connectionIdentifier = connnectionIdentifier; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public String getSharingProfileIdentifier() { | ||||
|         return sharingProfileIdentifier; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public void setSharingProfileIdentifier(String sharingProfileIdentifier) { | ||||
|         this.sharingProfileIdentifier = sharingProfileIdentifier; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public Date getStartDate() { | ||||
|         return startDate; | ||||
|   | ||||
| @@ -47,7 +47,24 @@ public interface ActiveConnection extends Identifiable { | ||||
|      *     The identifier of the connection being actively used. | ||||
|      */ | ||||
|     void setConnectionIdentifier(String connnectionIdentifier); | ||||
|      | ||||
|  | ||||
|     /** | ||||
|      * Returns the identifier of the sharing profile being actively used. If | ||||
|      * the connection is being accessed directly, this will be null. | ||||
|      * | ||||
|      * @return | ||||
|      *     The identifier of the sharing profile being actively used. | ||||
|      */ | ||||
|     String getSharingProfileIdentifier(); | ||||
|  | ||||
|     /** | ||||
|      * Sets the identifier of the sharing profile being actively used. | ||||
|      * | ||||
|      * @param sharingProfileIdentifier | ||||
|      *     The identifier of the sharing profile being actively used. | ||||
|      */ | ||||
|     void setSharingProfileIdentifier(String sharingProfileIdentifier); | ||||
|  | ||||
|     /** | ||||
|      * Returns the date and time the connection began. | ||||
|      * | ||||
|   | ||||
		Reference in New Issue
	
	Block a user