mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +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 java.util.Collections;
|
||||
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.Directory;
|
||||
import org.glyptodon.guacamole.net.auth.User;
|
||||
@@ -73,12 +74,26 @@ public class MySQLUserContext implements UserContext {
|
||||
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
|
||||
public ConnectionGroup getRootConnectionGroup() throws GuacamoleException {
|
||||
/* STUB */
|
||||
return new SimpleConnectionGroup("ROOT", "ROOT",
|
||||
new SimpleConnectionDirectory(Collections.EMPTY_MAP),
|
||||
new SimpleConnectionGroupDirectory(Collections.EMPTY_LIST)
|
||||
return new SimpleConnectionGroup(
|
||||
MySQLConstants.CONNECTION_GROUP_ROOT_IDENTIFIER,
|
||||
MySQLConstants.CONNECTION_GROUP_ROOT_IDENTIFIER,
|
||||
Collections.EMPTY_LIST,
|
||||
Collections.EMPTY_LIST
|
||||
);
|
||||
}
|
||||
|
||||
|
@@ -65,12 +65,6 @@ public class UserDirectory implements Directory<User> {
|
||||
this.currentUser = currentUser;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void move(String identifier, Directory<User> groupIdentifier)
|
||||
throws GuacamoleException {
|
||||
throw new GuacamoleSecurityException("Permission denied.");
|
||||
}
|
||||
|
||||
@Override
|
||||
public User get(String identifier) throws GuacamoleException {
|
||||
return userService.retrieveObject(currentUser, identifier);
|
||||
|
Reference in New Issue
Block a user