Ticket #269: Add missing JavaDoc for MySQLConnection, remove whitespace at ends of lines.

This commit is contained in:
Michael Jumper
2013-02-26 21:17:57 -08:00
parent 79872b9012
commit 39a2d4eae7
2 changed files with 9 additions and 3 deletions

View File

@@ -57,7 +57,7 @@ import org.mybatis.guice.transactional.Transactional;
/**
* A MySQL-based implementation of the connection directory.
*
*
* @author James Muehlner
*/
public class ConnectionDirectory implements Directory<String, Connection>{
@@ -171,7 +171,7 @@ public class ConnectionDirectory implements Directory<String, Connection>{
/**
* Inserts all parameter values from the given configuration into the
* database, associating them with the connection having the givenID.
*
*
* @param connection_id The ID of the connection to associate all
* parameters with.
* @param config The GuacamoleConfiguration to read parameters from.
@@ -219,7 +219,7 @@ public class ConnectionDirectory implements Directory<String, Connection>{
ConnectionParameterExample parameterExample = new ConnectionParameterExample();
parameterExample.createCriteria().andConnection_idEqualTo(connection.getConnection_id());
connectionParameterDAO.deleteByExample(parameterExample);
// Add connection parameters
createConfigurationValues(connection.getConnection_id(),
object.getConfiguration());

View File

@@ -68,9 +68,15 @@ public class MySQLConnection extends AbstractConnection {
*/
private List<ConnectionRecord> history = new ArrayList<ConnectionRecord>();
/**
* Service for creating and retrieving objects.
*/
@Inject
private ProviderService providerService;
/**
* Set of all currently active connections.
*/
@Inject
private ActiveConnectionSet activeConnectionSet;