public interface User
Modifier and Type | Method and Description |
---|---|
void |
addPermission(Permission permission)
Adds the specified permission to this user.
|
String |
getPassword()
Returns this user's password.
|
Set<Permission> |
getPermissions()
Lists all permissions given to this user.
|
String |
getUsername()
Returns the name of this user, which must be unique across all users.
|
boolean |
hasPermission(Permission permission)
Tests whether this user has the specified permission.
|
void |
removePermission(Permission permission)
Removes the specified permission from this specified user.
|
void |
setPassword(String password)
Sets this user's password.
|
void |
setUsername(String username)
Sets the name of this user, which must be unique across all users.
|
String getUsername()
void setUsername(String username)
username
- The name of this user.String getPassword()
void setPassword(String password)
password
- The password to set.Set<Permission> getPermissions() throws net.sourceforge.guacamole.GuacamoleException
net.sourceforge.guacamole.GuacamoleException
- If an error occurs while retrieving
permissions, or if reading all permissions
is not allowed.boolean hasPermission(Permission permission) throws net.sourceforge.guacamole.GuacamoleException
permission
- The permission to check.net.sourceforge.guacamole.GuacamoleException
- If an error occurs while checking permissions,
or if permissions cannot be checked due to
lack of permissions to do so.void addPermission(Permission permission) throws net.sourceforge.guacamole.GuacamoleException
permission
- The permission to add.net.sourceforge.guacamole.GuacamoleException
- If an error occurs while adding the
permission. or if permission to add
permissions is denied.void removePermission(Permission permission) throws net.sourceforge.guacamole.GuacamoleException
permission
- The permission to remove.net.sourceforge.guacamole.GuacamoleException
- If an error occurs while removing the
permission. or if permission to remove
permissions is denied.Copyright © 2013. All Rights Reserved.