You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@guacamole.apache.org by jm...@apache.org on 2016/07/17 22:28:34 UTC

[06/19] incubator-guacamole-client git commit: GUACAMOLE-5: Track the sharing profile associated with an active connection.

GUACAMOLE-5: Track the sharing profile associated with an active connection.


Project: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/commit/0f49c39e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/tree/0f49c39e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/diff/0f49c39e

Branch: refs/heads/master
Commit: 0f49c39ed4c3768e8886d50b7e3a52193039bbc2
Parents: a2ad7a6
Author: Michael Jumper <mj...@apache.org>
Authored: Fri Jul 15 12:50:47 2016 -0700
Committer: Michael Jumper <mj...@apache.org>
Committed: Sat Jul 16 11:42:47 2016 -0700

----------------------------------------------------------------------
 .../net/auth/AbstractActiveConnection.java       | 15 +++++++++++++++
 .../guacamole/net/auth/ActiveConnection.java     | 19 ++++++++++++++++++-
 2 files changed, 33 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/blob/0f49c39e/guacamole-ext/src/main/java/org/apache/guacamole/net/auth/AbstractActiveConnection.java
----------------------------------------------------------------------
diff --git a/guacamole-ext/src/main/java/org/apache/guacamole/net/auth/AbstractActiveConnection.java b/guacamole-ext/src/main/java/org/apache/guacamole/net/auth/AbstractActiveConnection.java
index 7b13bf4..9faacc0 100644
--- a/guacamole-ext/src/main/java/org/apache/guacamole/net/auth/AbstractActiveConnection.java
+++ b/guacamole-ext/src/main/java/org/apache/guacamole/net/auth/AbstractActiveConnection.java
@@ -37,6 +37,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.
      */
     private Date startDate;
@@ -67,6 +72,16 @@ public abstract class AbstractActiveConnection extends AbstractIdentifiable
     }
 
     @Override
+    public String getSharingProfileIdentifier() {
+        return sharingProfileIdentifier;
+    }
+
+    @Override
+    public void setSharingProfileIdentifier(String sharingProfileIdentifier) {
+        this.sharingProfileIdentifier = sharingProfileIdentifier;
+    }
+
+    @Override
     public Date getStartDate() {
         return startDate;
     }

http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/blob/0f49c39e/guacamole-ext/src/main/java/org/apache/guacamole/net/auth/ActiveConnection.java
----------------------------------------------------------------------
diff --git a/guacamole-ext/src/main/java/org/apache/guacamole/net/auth/ActiveConnection.java b/guacamole-ext/src/main/java/org/apache/guacamole/net/auth/ActiveConnection.java
index 482b1eb..54472a5 100644
--- a/guacamole-ext/src/main/java/org/apache/guacamole/net/auth/ActiveConnection.java
+++ b/guacamole-ext/src/main/java/org/apache/guacamole/net/auth/ActiveConnection.java
@@ -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.
      *