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, 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.@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
AbstractUser
This implementation simply an immutable, empty permission set. Implementations that wish to expose permissions should override this function.
getConnectionPermissions
in interface Permissions
getConnectionPermissions
in class AbstractUser
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
AbstractUser
This implementation simply an immutable, empty permission set. Implementations that wish to expose permissions should override this function.
getConnectionGroupPermissions
in interface Permissions
getConnectionGroupPermissions
in class AbstractUser
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
AbstractUser
This implementation simply an immutable, empty permission set. Implementations that wish to expose permissions should override this function.
getUserPermissions
in interface Permissions
getUserPermissions
in class AbstractUser
org.apache.guacamole.GuacamoleException
- If an error occurs while retrieving permissions, or if reading all
permissions is not allowed.Copyright © 2018. All rights reserved.