Provide means for retrieving Users by username.

This commit is contained in:
Michael Jumper
2013-01-30 23:01:11 -08:00
parent 493090195a
commit c20a479449

View File

@@ -48,6 +48,19 @@ import net.sourceforge.guacamole.GuacamoleException;
*/
public interface UserDirectory {
/**
* Returns the User having the given username.
*
* @param username The username of the User to return.
* @return The User having the given username, or null if no such user
* exists.
*
* @throws GuacamoleException If an error occurs while retrieving the user,
* or if permission for retrieving the user is
* denied.
*/
User getUser(String username) throws GuacamoleException;
/**
* Returns a Set containing all Users.
*