public class SimpleUser extends AbstractUser
User.Attribute
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.
|
ObjectPermissionSet |
getSharingProfilePermissions()
Returns all sharing profile 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.
|
getPassword, setPassword
equals, getIdentifier, hashCode, setIdentifier
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getIdentifier, setIdentifier
public 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()
User
public void setAttributes(Map<String,String> attributes)
User
attributes
- A map of all attribute identifiers to their corresponding values.public SystemPermissionSet getSystemPermissions() throws org.apache.guacamole.GuacamoleException
User
org.apache.guacamole.GuacamoleException
- If an error occurs while retrieving permissions, or if reading all
permissions is not allowed.public ObjectPermissionSet getConnectionPermissions() throws org.apache.guacamole.GuacamoleException
User
org.apache.guacamole.GuacamoleException
- If an error occurs while retrieving permissions, or if reading all
permissions is not allowed.public ObjectPermissionSet getConnectionGroupPermissions() throws org.apache.guacamole.GuacamoleException
User
org.apache.guacamole.GuacamoleException
- If an error occurs while retrieving permissions, or if reading all
permissions is not allowed.public ObjectPermissionSet getUserPermissions() throws org.apache.guacamole.GuacamoleException
User
org.apache.guacamole.GuacamoleException
- If an error occurs while retrieving permissions, or if reading all
permissions is not allowed.public ObjectPermissionSet getActiveConnectionPermissions() throws org.apache.guacamole.GuacamoleException
User
org.apache.guacamole.GuacamoleException
- If an error occurs while retrieving permissions, or if reading all
permissions is not allowed.public ObjectPermissionSet getSharingProfilePermissions()
User
Copyright © 2017. All rights reserved.