mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-10 15:11:22 +00:00
GUAC-1101: Migrate to recent API changes on batch-directory branch.
This commit is contained in:
@@ -26,6 +26,7 @@ package net.sourceforge.guacamole.net.auth.mysql;
|
|||||||
import com.google.inject.Inject;
|
import com.google.inject.Inject;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import org.glyptodon.guacamole.GuacamoleException;
|
import org.glyptodon.guacamole.GuacamoleException;
|
||||||
|
import org.glyptodon.guacamole.net.auth.Connection;
|
||||||
import org.glyptodon.guacamole.net.auth.ConnectionGroup;
|
import org.glyptodon.guacamole.net.auth.ConnectionGroup;
|
||||||
import org.glyptodon.guacamole.net.auth.Directory;
|
import org.glyptodon.guacamole.net.auth.Directory;
|
||||||
import org.glyptodon.guacamole.net.auth.User;
|
import org.glyptodon.guacamole.net.auth.User;
|
||||||
@@ -73,12 +74,26 @@ public class MySQLUserContext implements UserContext {
|
|||||||
return userDirectory;
|
return userDirectory;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Directory<Connection> getConnectionDirectory() throws GuacamoleException {
|
||||||
|
/* STUB */
|
||||||
|
return new SimpleConnectionDirectory(Collections.EMPTY_LIST);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Directory<ConnectionGroup> getConnectionGroupDirectory() throws GuacamoleException {
|
||||||
|
/* STUB */
|
||||||
|
return new SimpleConnectionGroupDirectory(Collections.EMPTY_LIST);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ConnectionGroup getRootConnectionGroup() throws GuacamoleException {
|
public ConnectionGroup getRootConnectionGroup() throws GuacamoleException {
|
||||||
/* STUB */
|
/* STUB */
|
||||||
return new SimpleConnectionGroup("ROOT", "ROOT",
|
return new SimpleConnectionGroup(
|
||||||
new SimpleConnectionDirectory(Collections.EMPTY_MAP),
|
MySQLConstants.CONNECTION_GROUP_ROOT_IDENTIFIER,
|
||||||
new SimpleConnectionGroupDirectory(Collections.EMPTY_LIST)
|
MySQLConstants.CONNECTION_GROUP_ROOT_IDENTIFIER,
|
||||||
|
Collections.EMPTY_LIST,
|
||||||
|
Collections.EMPTY_LIST
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -65,12 +65,6 @@ public class UserDirectory implements Directory<User> {
|
|||||||
this.currentUser = currentUser;
|
this.currentUser = currentUser;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void move(String identifier, Directory<User> groupIdentifier)
|
|
||||||
throws GuacamoleException {
|
|
||||||
throw new GuacamoleSecurityException("Permission denied.");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public User get(String identifier) throws GuacamoleException {
|
public User get(String identifier) throws GuacamoleException {
|
||||||
return userService.retrieveObject(currentUser, identifier);
|
return userService.retrieveObject(currentUser, identifier);
|
||||||
|
Reference in New Issue
Block a user