mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +00:00
GUACAMOLE-926: Improve response plumbing through to user.
This commit is contained in:
@@ -68,8 +68,19 @@ public class ConnectionDirectory extends JDBCDirectory<Connection> {
|
||||
@Override
|
||||
@Transactional
|
||||
public void update(Connection object) throws GuacamoleException {
|
||||
ModeledConnection connection = (ModeledConnection) object;
|
||||
connectionService.updateObject(getCurrentUser(), connection);
|
||||
|
||||
// If the provided connection is already an internal type, update
|
||||
// using the internal method
|
||||
if (object instanceof ModeledConnection) {
|
||||
ModeledConnection connection = (ModeledConnection) object;
|
||||
connectionService.updateObject(getCurrentUser(), connection);
|
||||
}
|
||||
|
||||
// If the type is not already the expected internal type, use the
|
||||
// external update method
|
||||
else {
|
||||
connectionService.updateExternalObject(getCurrentUser(), object);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user