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 |
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 net.sourceforge.guacamole.GuacamoleException
Directory
get
in interface Directory<String,User>
username
- The identifier to use when locating the object to
return.net.sourceforge.guacamole.GuacamoleException
- If an error occurs while retrieving the
object, or if permission for retrieving the
object is denied.public Set<String> getIdentifiers() throws net.sourceforge.guacamole.GuacamoleException
Directory
getIdentifiers
in interface Directory<String,User>
net.sourceforge.guacamole.GuacamoleException
- If an error occurs while retrieving
the identifiers.public void add(User user) throws net.sourceforge.guacamole.GuacamoleException
Directory
public void update(User user) throws net.sourceforge.guacamole.GuacamoleException
Directory
Copyright © 2013. All Rights Reserved.