GUACAMOLE-5: Expose sharing profiles at connection level. 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/fc052245 Tree: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/tree/fc052245 Diff: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/diff/fc052245
Branch: refs/heads/master Commit: fc05224512679e82f9c1e43ee18e53e8eed7555a Parents: c304a98 Author: Michael Jumper <[email protected]> Authored: Tue Jul 19 16:52:19 2016 -0700 Committer: Michael Jumper <[email protected]> Committed: Tue Jul 19 22:26:30 2016 -0700 ---------------------------------------------------------------------- .../guacamole/auth/jdbc/connection/ModeledConnection.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-guacamole-client/blob/fc052245/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/apache/guacamole/auth/jdbc/connection/ModeledConnection.java ---------------------------------------------------------------------- diff --git a/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/apache/guacamole/auth/jdbc/connection/ModeledConnection.java b/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/apache/guacamole/auth/jdbc/connection/ModeledConnection.java index 6cd30d4..f605a90 100644 --- a/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/apache/guacamole/auth/jdbc/connection/ModeledConnection.java +++ b/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/apache/guacamole/auth/jdbc/connection/ModeledConnection.java @@ -32,6 +32,7 @@ import org.apache.guacamole.auth.jdbc.tunnel.GuacamoleTunnelService; import org.apache.guacamole.GuacamoleException; import org.apache.guacamole.auth.jdbc.JDBCEnvironment; import org.apache.guacamole.auth.jdbc.base.ModeledGroupedDirectoryObject; +import org.apache.guacamole.auth.jdbc.sharingprofile.SharingProfileService; import org.apache.guacamole.form.Field; import org.apache.guacamole.form.Form; import org.apache.guacamole.form.NumericField; @@ -100,6 +101,12 @@ public class ModeledConnection extends ModeledGroupedDirectoryObject<ConnectionM private ConnectionService connectionService; /** + * Service for managing sharing profiles. + */ + @Inject + private SharingProfileService sharingProfileService; + + /** * Service for creating and tracking tunnels. */ @Inject @@ -160,7 +167,7 @@ public class ModeledConnection extends ModeledGroupedDirectoryObject<ConnectionM @Override public Set<String> getSharingProfileIdentifiers() throws GuacamoleException { - return Collections.<String>emptySet(); + return sharingProfileService.getIdentifiersWithin(getCurrentUser(), getIdentifier()); } @Override
