diff --git a/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/glyptodon/guacamole/auth/jdbc/JDBCAuthenticationProviderModule.java b/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/glyptodon/guacamole/auth/jdbc/JDBCAuthenticationProviderModule.java index a50389f48..a02012a90 100644 --- a/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/glyptodon/guacamole/auth/jdbc/JDBCAuthenticationProviderModule.java +++ b/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/glyptodon/guacamole/auth/jdbc/JDBCAuthenticationProviderModule.java @@ -40,7 +40,7 @@ import org.glyptodon.guacamole.auth.jdbc.permission.SystemPermissionMapper; import org.glyptodon.guacamole.auth.jdbc.user.UserMapper; import org.glyptodon.guacamole.auth.jdbc.connectiongroup.ConnectionGroupService; import org.glyptodon.guacamole.auth.jdbc.connection.ConnectionService; -import org.glyptodon.guacamole.auth.jdbc.socket.GuacamoleSocketService; +import org.glyptodon.guacamole.auth.jdbc.tunnel.GuacamoleTunnelService; import org.glyptodon.guacamole.auth.jdbc.security.PasswordEncryptionService; import org.glyptodon.guacamole.auth.jdbc.security.SHA256PasswordEncryptionService; import org.glyptodon.guacamole.auth.jdbc.security.SaltService; @@ -80,7 +80,7 @@ public class JDBCAuthenticationProviderModule extends MyBatisModule { * The service class to use to provide GuacamoleSockets for each * connection. */ - private final Class socketServiceClass; + private final Class tunnelServiceClass; /** * Creates a new JDBC authentication provider module that configures the @@ -90,13 +90,13 @@ public class JDBCAuthenticationProviderModule extends MyBatisModule { * @param environment * The environment to use to configure injected classes. * - * @param socketServiceClass + * @param tunnelServiceClass * The socket service to use to provide sockets for connections. */ public JDBCAuthenticationProviderModule(Environment environment, - Class socketServiceClass) { + Class tunnelServiceClass) { this.environment = environment; - this.socketServiceClass = socketServiceClass; + this.tunnelServiceClass = tunnelServiceClass; } @Override @@ -147,7 +147,7 @@ public class JDBCAuthenticationProviderModule extends MyBatisModule { bind(UserService.class); // Bind provided socket service - bind(GuacamoleSocketService.class).to(socketServiceClass); + bind(GuacamoleTunnelService.class).to(tunnelServiceClass); } diff --git a/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/glyptodon/guacamole/auth/jdbc/connection/ConnectionService.java b/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/glyptodon/guacamole/auth/jdbc/connection/ConnectionService.java index e67afad31..0659e88cb 100644 --- a/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/glyptodon/guacamole/auth/jdbc/connection/ConnectionService.java +++ b/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/glyptodon/guacamole/auth/jdbc/connection/ConnectionService.java @@ -33,7 +33,7 @@ import java.util.Map; import java.util.Set; import org.glyptodon.guacamole.auth.jdbc.user.AuthenticatedUser; import org.glyptodon.guacamole.auth.jdbc.base.DirectoryObjectMapper; -import org.glyptodon.guacamole.auth.jdbc.socket.GuacamoleSocketService; +import org.glyptodon.guacamole.auth.jdbc.tunnel.GuacamoleTunnelService; import org.glyptodon.guacamole.GuacamoleClientException; import org.glyptodon.guacamole.GuacamoleException; import org.glyptodon.guacamole.GuacamoleSecurityException; @@ -91,7 +91,7 @@ public class ConnectionService extends GroupedDirectoryObjectService getObjectMapper() { @@ -371,7 +371,7 @@ public class ConnectionService extends GroupedDirectoryObjectService models = connectionRecordMapper.select(identifier); // Get currently-active connections - List records = new ArrayList(socketService.getActiveConnections(connection)); + List records = new ArrayList(tunnelService.getActiveConnections(connection)); Collections.reverse(records); // Add past connections from model objects @@ -415,7 +415,7 @@ public class ConnectionService extends GroupedDirectoryObjectService * Service for creating and tracking sockets. */ @Inject - private GuacamoleSocketService socketService; + private GuacamoleTunnelService tunnelService; /** * Provider for lazy-loaded, permission-controlled configurations. @@ -120,7 +120,7 @@ public class ModeledConnection extends GroupedDirectoryObject @Override public int getActiveConnections() { - return socketService.getActiveConnections(this).size(); + return tunnelService.getActiveConnections(this).size(); } } diff --git a/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/glyptodon/guacamole/auth/jdbc/connectiongroup/ConnectionGroupService.java b/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/glyptodon/guacamole/auth/jdbc/connectiongroup/ConnectionGroupService.java index 77a03b012..02f019020 100644 --- a/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/glyptodon/guacamole/auth/jdbc/connectiongroup/ConnectionGroupService.java +++ b/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-base/src/main/java/org/glyptodon/guacamole/auth/jdbc/connectiongroup/ConnectionGroupService.java @@ -27,7 +27,7 @@ import com.google.inject.Provider; import java.util.Set; import org.glyptodon.guacamole.auth.jdbc.user.AuthenticatedUser; import org.glyptodon.guacamole.auth.jdbc.base.DirectoryObjectMapper; -import org.glyptodon.guacamole.auth.jdbc.socket.GuacamoleSocketService; +import org.glyptodon.guacamole.auth.jdbc.tunnel.GuacamoleTunnelService; import org.glyptodon.guacamole.GuacamoleClientException; import org.glyptodon.guacamole.GuacamoleException; import org.glyptodon.guacamole.GuacamoleSecurityException; @@ -74,7 +74,7 @@ public class ConnectionGroupService extends GroupedDirectoryObjectService getObjectMapper() { @@ -247,7 +247,7 @@ public class ConnectionGroupService extends GroupedDirectoryObjectService getActiveConnections() throws GuacamoleException { - return socketService.getActiveConnections(getCurrentUser()); + return tunnelService.getActiveConnections(getCurrentUser()); } @Override diff --git a/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-mysql/src/main/java/net/sourceforge/guacamole/net/auth/mysql/MySQLAuthenticationProvider.java b/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-mysql/src/main/java/net/sourceforge/guacamole/net/auth/mysql/MySQLAuthenticationProvider.java index 3e7463b69..664ad7e67 100644 --- a/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-mysql/src/main/java/net/sourceforge/guacamole/net/auth/mysql/MySQLAuthenticationProvider.java +++ b/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-mysql/src/main/java/net/sourceforge/guacamole/net/auth/mysql/MySQLAuthenticationProvider.java @@ -29,11 +29,11 @@ import org.glyptodon.guacamole.net.auth.AuthenticationProvider; import org.glyptodon.guacamole.net.auth.Credentials; import org.glyptodon.guacamole.net.auth.UserContext; import org.glyptodon.guacamole.auth.jdbc.JDBCAuthenticationProviderModule; -import org.glyptodon.guacamole.auth.jdbc.socket.GuacamoleSocketService; -import org.glyptodon.guacamole.auth.jdbc.socket.MultiseatGuacamoleSocketService; -import org.glyptodon.guacamole.auth.jdbc.socket.BalancedGuacamoleSocketService; -import org.glyptodon.guacamole.auth.jdbc.socket.SingleSeatGuacamoleSocketService; -import org.glyptodon.guacamole.auth.jdbc.socket.UnrestrictedGuacamoleSocketService; +import org.glyptodon.guacamole.auth.jdbc.tunnel.GuacamoleTunnelService; +import org.glyptodon.guacamole.auth.jdbc.tunnel.MultiseatGuacamoleTunnelService; +import org.glyptodon.guacamole.auth.jdbc.tunnel.BalancedGuacamoleTunnelService; +import org.glyptodon.guacamole.auth.jdbc.tunnel.SingleSeatGuacamoleTunnelService; +import org.glyptodon.guacamole.auth.jdbc.tunnel.UnrestrictedGuacamoleTunnelService; import org.glyptodon.guacamole.auth.jdbc.user.UserContextService; import org.glyptodon.guacamole.environment.Environment; import org.glyptodon.guacamole.environment.LocalEnvironment; @@ -69,7 +69,7 @@ public class MySQLAuthenticationProvider implements AuthenticationProvider { * @throws GuacamoleException * If an error occurs while reading the configuration options. */ - private Class + private Class getSocketServiceClass(Environment environment) throws GuacamoleException { @@ -81,11 +81,11 @@ public class MySQLAuthenticationProvider implements AuthenticationProvider { // Connections may not be used concurrently if (disallowDuplicate) - return SingleSeatGuacamoleSocketService.class; + return SingleSeatGuacamoleTunnelService.class; // Connections are reserved for a single user when in use else - return BalancedGuacamoleSocketService.class; + return BalancedGuacamoleTunnelService.class; } @@ -93,11 +93,11 @@ public class MySQLAuthenticationProvider implements AuthenticationProvider { // Connections may be used concurrently, but only once per user if (disallowDuplicate) - return MultiseatGuacamoleSocketService.class; + return MultiseatGuacamoleTunnelService.class; // Connection use is not restricted else - return UnrestrictedGuacamoleSocketService.class; + return UnrestrictedGuacamoleTunnelService.class; } diff --git a/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-postgresql/src/main/java/org/glyptodon/guacamole/auth/postgresql/PostgreSQLAuthenticationProvider.java b/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-postgresql/src/main/java/org/glyptodon/guacamole/auth/postgresql/PostgreSQLAuthenticationProvider.java index 65bd2270a..1ee8afe2f 100644 --- a/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-postgresql/src/main/java/org/glyptodon/guacamole/auth/postgresql/PostgreSQLAuthenticationProvider.java +++ b/extensions/guacamole-auth-jdbc/modules/guacamole-auth-jdbc-postgresql/src/main/java/org/glyptodon/guacamole/auth/postgresql/PostgreSQLAuthenticationProvider.java @@ -29,11 +29,11 @@ import org.glyptodon.guacamole.net.auth.AuthenticationProvider; import org.glyptodon.guacamole.net.auth.Credentials; import org.glyptodon.guacamole.net.auth.UserContext; import org.glyptodon.guacamole.auth.jdbc.JDBCAuthenticationProviderModule; -import org.glyptodon.guacamole.auth.jdbc.socket.BalancedGuacamoleSocketService; -import org.glyptodon.guacamole.auth.jdbc.socket.GuacamoleSocketService; -import org.glyptodon.guacamole.auth.jdbc.socket.MultiseatGuacamoleSocketService; -import org.glyptodon.guacamole.auth.jdbc.socket.SingleSeatGuacamoleSocketService; -import org.glyptodon.guacamole.auth.jdbc.socket.UnrestrictedGuacamoleSocketService; +import org.glyptodon.guacamole.auth.jdbc.tunnel.BalancedGuacamoleTunnelService; +import org.glyptodon.guacamole.auth.jdbc.tunnel.GuacamoleTunnelService; +import org.glyptodon.guacamole.auth.jdbc.tunnel.MultiseatGuacamoleTunnelService; +import org.glyptodon.guacamole.auth.jdbc.tunnel.SingleSeatGuacamoleTunnelService; +import org.glyptodon.guacamole.auth.jdbc.tunnel.UnrestrictedGuacamoleTunnelService; import org.glyptodon.guacamole.auth.jdbc.user.UserContextService; import org.glyptodon.guacamole.environment.Environment; import org.glyptodon.guacamole.environment.LocalEnvironment; @@ -68,7 +68,7 @@ public class PostgreSQLAuthenticationProvider implements AuthenticationProvider * @throws GuacamoleException * If an error occurs while reading the configuration options. */ - private Class + private Class getSocketServiceClass(Environment environment) throws GuacamoleException { @@ -80,11 +80,11 @@ public class PostgreSQLAuthenticationProvider implements AuthenticationProvider // Connections may not be used concurrently if (disallowDuplicate) - return SingleSeatGuacamoleSocketService.class; + return SingleSeatGuacamoleTunnelService.class; // Connections are reserved for a single user when in use else - return BalancedGuacamoleSocketService.class; + return BalancedGuacamoleTunnelService.class; } @@ -92,11 +92,11 @@ public class PostgreSQLAuthenticationProvider implements AuthenticationProvider // Connections may be used concurrently, but only once per user if (disallowDuplicate) - return MultiseatGuacamoleSocketService.class; + return MultiseatGuacamoleTunnelService.class; // Connection use is not restricted else - return UnrestrictedGuacamoleSocketService.class; + return UnrestrictedGuacamoleTunnelService.class; }