org.glyptodon.guacamole.net.auth.simple
| Constructor and Description |
|---|
SimpleUserDirectory(User user)
Creates a new SimpleUserDirectory which provides access to the single
user provided.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(User user)
Adds the given object to the overall set.
|
User |
get(String username)
Returns the object having the given identifier.
|
Set<String> |
getIdentifiers()
Returns a Set containing all identifiers for all objects within this
Directory.
|
void |
move(String identifier,
Directory<String,User> directory)
Moves the object with the given identifier to the given directory.
|
void |
remove(String username)
Removes the object with the given identifier from the overall set.
|
void |
update(User user)
Updates the stored object with the data contained in the given object.
|
public SimpleUserDirectory(User user)
user - The user to provide access to.public User get(String username) throws org.glyptodon.guacamole.GuacamoleException
Directoryget in interface Directory<String,User>username - The identifier to use when locating the object to
return.org.glyptodon.guacamole.GuacamoleException - If an error occurs while retrieving the
object, or if permission for retrieving the
object is denied.public Set<String> getIdentifiers() throws org.glyptodon.guacamole.GuacamoleException
DirectorygetIdentifiers in interface Directory<String,User>org.glyptodon.guacamole.GuacamoleException - If an error occurs while retrieving
the identifiers.public void add(User user) throws org.glyptodon.guacamole.GuacamoleException
Directorypublic void update(User user) throws org.glyptodon.guacamole.GuacamoleException
Directorypublic void remove(String username) throws org.glyptodon.guacamole.GuacamoleException
DirectoryCopyright © 2014. All Rights Reserved.