diff options
author | Udo Walter | 2020-05-13 14:04:52 +0200 |
---|---|---|
committer | Udo Walter | 2020-05-13 14:04:52 +0200 |
commit | e5a3a1d737e88c89a4ba3fbc8d277745093139b1 (patch) | |
tree | 9fac401c4a848eb3a38429f17e6050eaa506dd2e /src/main/java/de/bwlehrpool/bwlp_guac/BwlpUserContext.java | |
parent | Fix connecting to a new client after exiting a client. Add logo, favicon and ... (diff) | |
download | bwlp-guacamole-ext-e5a3a1d737e88c89a4ba3fbc8d277745093139b1.tar.gz bwlp-guacamole-ext-e5a3a1d737e88c89a4ba3fbc8d277745093139b1.tar.xz bwlp-guacamole-ext-e5a3a1d737e88c89a4ba3fbc8d277745093139b1.zip |
Add some debug logs. Rename the 'virtual' locations to groups.
Diffstat (limited to 'src/main/java/de/bwlehrpool/bwlp_guac/BwlpUserContext.java')
-rw-r--r-- | src/main/java/de/bwlehrpool/bwlp_guac/BwlpUserContext.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/de/bwlehrpool/bwlp_guac/BwlpUserContext.java b/src/main/java/de/bwlehrpool/bwlp_guac/BwlpUserContext.java index ca020f6..91d5849 100644 --- a/src/main/java/de/bwlehrpool/bwlp_guac/BwlpUserContext.java +++ b/src/main/java/de/bwlehrpool/bwlp_guac/BwlpUserContext.java @@ -30,7 +30,7 @@ public class BwlpUserContext extends AbstractUserContext { private final AuthenticatedUser authUser; private final UserContext originalContext; - private final Integer locationid; + private final Integer groupid; /** * The Directory with access to all connections within the root group associated @@ -38,17 +38,17 @@ public class BwlpUserContext extends AbstractUserContext { */ private Directory<Connection> connectionDirectory; - public BwlpUserContext(AuthenticatedUser authenticatedUser, UserContext context, int locationid) + public BwlpUserContext(AuthenticatedUser authenticatedUser, UserContext context, int groupid) throws GuacamoleCredentialsException { authUser = authenticatedUser; originalContext = context; - this.locationid = locationid; + this.groupid = groupid; // OK addConn(); } private void addConn() throws GuacamoleCredentialsException { - WrappedConnection connection = ConnectionManager.getForUser(authUser.getCredentials().getUsername(), locationid); + WrappedConnection connection = ConnectionManager.getForUser(authUser.getCredentials().getUsername(), groupid); if (connection != null) { connectionDirectory = new SimpleDirectory<Connection>(connection); } else { |