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.
|
SimpleUser(String username,
Collection<String> connectionIdentifiers,
Collection<String> connectionGroupIdentifiers)
Deprecated.
Extend and override the applicable permission set getters instead,
relying on SimpleUser to expose no permissions by default for all
permission sets that aren't overridden. See
SimpleObjectPermissionSet
for convenient methods of providing a read-only permission set with
specific permissions. |
SimpleUser(String username,
Collection<String> userIdentifiers,
Collection<String> connectionIdentifiers,
Collection<String> connectionGroupIdentifiers)
Deprecated.
Extend and override the applicable permission set getters instead,
relying on SimpleUser to expose no permissions by default for all
permission sets that aren't overridden. See
SimpleObjectPermissionSet
for convenient methods of providing a read-only permission set with
specific permissions. |
| Modifier and Type | Method and Description |
|---|---|
ObjectPermissionSet |
getConnectionGroupPermissions()
Returns all connection group permissions given to this object.
|
ObjectPermissionSet |
getConnectionPermissions()
Returns all connection permissions given to this object.
|
ObjectPermissionSet |
getUserPermissions()
Returns all user permissions given to this object.
|
getActiveConnectionPermissions, getAttributes, getEffectivePermissions, getHistory, getLastActive, getPassword, getSharingProfilePermissions, getSystemPermissions, getUserGroupPermissions, getUserGroups, setAttributes, setPasswordequals, getIdentifier, hashCode, setIdentifierclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetIdentifier, setIdentifierpublic SimpleUser()
public SimpleUser(String username)
username - The username to assign to this SimpleUser.@Deprecated public SimpleUser(String username, Collection<String> connectionIdentifiers, Collection<String> connectionGroupIdentifiers)
SimpleObjectPermissionSet
for convenient methods of providing a read-only permission set with
specific permissions.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.@Deprecated public SimpleUser(String username, Collection<String> userIdentifiers, Collection<String> connectionIdentifiers, Collection<String> connectionGroupIdentifiers)
SimpleObjectPermissionSet
for convenient methods of providing a read-only permission set with
specific permissions.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 ObjectPermissionSet getConnectionPermissions() throws org.apache.guacamole.GuacamoleException
AbstractUserThis implementation simply an immutable, empty permission set. Implementations that wish to expose permissions should override this function.
getConnectionPermissions in interface PermissionsgetConnectionPermissions in class AbstractUserorg.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
AbstractUserThis implementation simply an immutable, empty permission set. Implementations that wish to expose permissions should override this function.
getConnectionGroupPermissions in interface PermissionsgetConnectionGroupPermissions in class AbstractUserorg.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
AbstractUserThis implementation simply an immutable, empty permission set. Implementations that wish to expose permissions should override this function.
getUserPermissions in interface PermissionsgetUserPermissions in class AbstractUserorg.apache.guacamole.GuacamoleException - If an error occurs while retrieving permissions, or if reading all
permissions is not allowed.Copyright © 2020. All rights reserved.