public class SimpleUser extends AbstractUser
| Constructor and Description |
|---|
SimpleUser()
Creates a completely uninitialized SimpleUser.
|
SimpleUser(String username)
Creates a new SimpleUser having the given username and no permissions.
|
SimpleUser(String username,
Collection<String> connectionIdentifiers,
Collection<String> connectionGroupIdentifiers)
Creates a new SimpleUser having the given username and READ access to
the connections and groups having the given identifiers.
|
SimpleUser(String username,
Collection<String> userIdentifiers,
Collection<String> connectionIdentifiers,
Collection<String> connectionGroupIdentifiers)
Creates a new SimpleUser having the given username and READ access to
the users, connections, and groups having the given identifiers.
|
| Modifier and Type | Method and Description |
|---|---|
ObjectPermissionSet |
getActiveConnectionPermissions()
Returns all permissions given to this user regarding currently-active
connections.
|
Map<String,String> |
getAttributes()
Returns all attributes associated with this user.
|
ObjectPermissionSet |
getConnectionGroupPermissions()
Returns all connection group permissions given to this user.
|
ObjectPermissionSet |
getConnectionPermissions()
Returns all connection permissions given to this user.
|
SystemPermissionSet |
getSystemPermissions()
Returns all system-level permissions given to this user.
|
ObjectPermissionSet |
getUserPermissions()
Returns all user permissions given to this user.
|
void |
setAttributes(Map<String,String> attributes)
Sets the given attributes.
|
equals, getIdentifier, getPassword, hashCode, setIdentifier, setPasswordpublic SimpleUser()
public SimpleUser(String username)
username - The username to assign to this SimpleUser.public SimpleUser(String username, Collection<String> connectionIdentifiers, Collection<String> connectionGroupIdentifiers)
username - The username to assign to this SimpleUser.connectionIdentifiers - The identifiers of all connections this user has READ access to.connectionGroupIdentifiers - The identifiers of all connection groups this user has READ access
to.public SimpleUser(String username, Collection<String> userIdentifiers, Collection<String> connectionIdentifiers, Collection<String> connectionGroupIdentifiers)
username - The username to assign to this SimpleUser.userIdentifiers - The identifiers of all users this user has READ access to.connectionIdentifiers - The identifiers of all connections this user has READ access to.connectionGroupIdentifiers - The identifiers of all connection groups this user has READ access
to.public Map<String,String> getAttributes()
Userpublic void setAttributes(Map<String,String> attributes)
Userattributes - A map of all attribute identifiers to their corresponding values.public SystemPermissionSet getSystemPermissions() throws org.glyptodon.guacamole.GuacamoleException
Userorg.glyptodon.guacamole.GuacamoleException - If an error occurs while retrieving permissions, or if reading all
permissions is not allowed.public ObjectPermissionSet getConnectionPermissions() throws org.glyptodon.guacamole.GuacamoleException
Userorg.glyptodon.guacamole.GuacamoleException - If an error occurs while retrieving permissions, or if reading all
permissions is not allowed.public ObjectPermissionSet getConnectionGroupPermissions() throws org.glyptodon.guacamole.GuacamoleException
Userorg.glyptodon.guacamole.GuacamoleException - If an error occurs while retrieving permissions, or if reading all
permissions is not allowed.public ObjectPermissionSet getUserPermissions() throws org.glyptodon.guacamole.GuacamoleException
Userorg.glyptodon.guacamole.GuacamoleException - If an error occurs while retrieving permissions, or if reading all
permissions is not allowed.public ObjectPermissionSet getActiveConnectionPermissions() throws org.glyptodon.guacamole.GuacamoleException
Userorg.glyptodon.guacamole.GuacamoleException - If an error occurs while retrieving permissions, or if reading all
permissions is not allowed.Copyright © 2015. All rights reserved.