Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

Commit

Permalink
GUACAMOLE-5: Rename JDBC-specific UserContext to ModeledUserContext f…
Browse files Browse the repository at this point in the history
…or clarity.
  • Loading branch information
mike-jumper committed Jul 30, 2016
1 parent 544b3c6 commit 212e559
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
package org.apache.guacamole.auth.jdbc;

import com.google.inject.Scopes;
import org.apache.guacamole.auth.jdbc.user.UserContext;
import org.apache.guacamole.auth.jdbc.user.ModeledUserContext;
import org.apache.guacamole.auth.jdbc.connectiongroup.RootConnectionGroup;
import org.apache.guacamole.auth.jdbc.connectiongroup.ModeledConnectionGroup;
import org.apache.guacamole.auth.jdbc.connectiongroup.ConnectionGroupDirectory;
Expand Down Expand Up @@ -140,12 +140,12 @@ protected void initialize() {
bind(ModeledGuacamoleConfiguration.class);
bind(ModeledSharingProfile.class);
bind(ModeledUser.class);
bind(ModeledUserContext.class);
bind(RootConnectionGroup.class);
bind(SharingProfileDirectory.class);
bind(SharingProfilePermissionSet.class);
bind(SystemPermissionSet.class);
bind(TrackedActiveConnection.class);
bind(UserContext.class);
bind(UserDirectory.class);
bind(UserPermissionSet.class);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import com.google.inject.Provider;
import org.apache.guacamole.GuacamoleException;
import org.apache.guacamole.auth.jdbc.user.ModeledUser;
import org.apache.guacamole.auth.jdbc.user.UserContext;
import org.apache.guacamole.auth.jdbc.user.ModeledUserContext;
import org.apache.guacamole.auth.jdbc.user.UserService;
import org.apache.guacamole.net.auth.AuthenticatedUser;
import org.apache.guacamole.net.auth.AuthenticationProvider;
Expand All @@ -50,7 +50,7 @@ public class JDBCAuthenticationProviderService implements AuthenticationProvider
* Provider for retrieving UserContext instances.
*/
@Inject
private Provider<UserContext> userContextProvider;
private Provider<ModeledUserContext> userContextProvider;

@Override
public AuthenticatedUser authenticateUser(AuthenticationProvider authenticationProvider,
Expand All @@ -67,7 +67,7 @@ public AuthenticatedUser authenticateUser(AuthenticationProvider authenticationP
}

@Override
public UserContext getUserContext(AuthenticationProvider authenticationProvider,
public ModeledUserContext getUserContext(AuthenticationProvider authenticationProvider,
AuthenticatedUser authenticatedUser) throws GuacamoleException {

// Retrieve user account for already-authenticated user
Expand All @@ -76,7 +76,7 @@ public UserContext getUserContext(AuthenticationProvider authenticationProvider,
return null;

// Link to user context
UserContext context = userContextProvider.get();
ModeledUserContext context = userContextProvider.get();
context.init(user.getCurrentUser());
return context;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
* @author James Muehlner
* @author Michael Jumper
*/
public class UserContext extends RestrictedObject
public class ModeledUserContext extends RestrictedObject
implements org.apache.guacamole.net.auth.UserContext {

/**
Expand Down

0 comments on commit 212e559

Please sign in to comment.