public class DelegatingUser extends Object implements User
User.Attribute
Constructor and Description |
---|
DelegatingUser(User user)
Wraps the given User such that all function calls against this
DelegatingUser will be delegated to it.
|
Modifier and Type | Method and Description |
---|---|
ObjectPermissionSet |
getActiveConnectionPermissions()
Returns all permissions given to this object regarding currently-active
connections.
|
Map<String,String> |
getAttributes()
Returns all attributes associated with this object.
|
ObjectPermissionSet |
getConnectionGroupPermissions()
Returns all connection group permissions given to this object.
|
ObjectPermissionSet |
getConnectionPermissions()
Returns all connection permissions given to this object.
|
protected User |
getDelegateUser()
Returns the underlying User wrapped by this DelegatingUser.
|
Permissions |
getEffectivePermissions()
Returns a read-only view of all permissions granted to this user.
|
List<? extends ActivityRecord> |
getHistory()
Returns a list of ActivityRecords representing the login history
of this user, including any active sessions.
|
String |
getIdentifier()
Returns the unique identifier assigned to this object.
|
Date |
getLastActive()
Returns the date and time that this user was last active.
|
String |
getPassword()
Returns this user's password.
|
ObjectPermissionSet |
getSharingProfilePermissions()
Returns all sharing profile permissions given to this object.
|
SystemPermissionSet |
getSystemPermissions()
Returns all system-level permissions given to this object.
|
ObjectPermissionSet |
getUserGroupPermissions()
Returns all user group permissions given to this object.
|
RelatedObjectSet |
getUserGroups()
Returns a set of all readable user groups of which this user is a member.
|
ObjectPermissionSet |
getUserPermissions()
Returns all user permissions given to this object.
|
void |
setAttributes(Map<String,String> attributes)
Sets the given attributes.
|
void |
setIdentifier(String identifier)
Sets the identifier assigned to this object.
|
void |
setPassword(String password)
Sets this user's password.
|
public DelegatingUser(User user)
user
- The User to wrap.protected User getDelegateUser()
public String getIdentifier()
Identifiable
getIdentifier
in interface Identifiable
public void setIdentifier(String identifier)
Identifiable
setIdentifier
in interface Identifiable
identifier
- The identifier to assign.public String getPassword()
User
getPassword
in interface User
public void setPassword(String password)
User
setPassword
in interface User
password
- The password to set.public Map<String,String> getAttributes()
Attributes
getAttributes
in interface Attributes
public void setAttributes(Map<String,String> attributes)
Attributes
setAttributes
in interface Attributes
attributes
- A map of all attribute identifiers to their corresponding values.public Date getLastActive()
User
getLastActive
in interface User
public List<? extends ActivityRecord> getHistory() throws org.apache.guacamole.GuacamoleException
User
getHistory
in interface User
org.apache.guacamole.GuacamoleException
- If an error occurs while reading the history of this user, or if
permission is denied.public SystemPermissionSet getSystemPermissions() throws org.apache.guacamole.GuacamoleException
Permissions
getSystemPermissions
in interface Permissions
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
Permissions
getConnectionPermissions
in interface Permissions
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
Permissions
getConnectionGroupPermissions
in interface Permissions
org.apache.guacamole.GuacamoleException
- If an error occurs while retrieving permissions, or if reading all
permissions is not allowed.public ObjectPermissionSet getSharingProfilePermissions() throws org.apache.guacamole.GuacamoleException
Permissions
getSharingProfilePermissions
in interface Permissions
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
Permissions
getActiveConnectionPermissions
in interface Permissions
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
Permissions
getUserPermissions
in interface Permissions
org.apache.guacamole.GuacamoleException
- If an error occurs while retrieving permissions, or if reading all
permissions is not allowed.public ObjectPermissionSet getUserGroupPermissions() throws org.apache.guacamole.GuacamoleException
Permissions
getUserGroupPermissions
in interface Permissions
org.apache.guacamole.GuacamoleException
- If an error occurs while retrieving permissions, or if reading all
permissions is not allowed.public RelatedObjectSet getUserGroups() throws org.apache.guacamole.GuacamoleException
User
getUserGroups
in interface User
org.apache.guacamole.GuacamoleException
- If an error occurs while retrieving the user groups.public Permissions getEffectivePermissions() throws org.apache.guacamole.GuacamoleException
User
getEffectivePermissions
in interface User
org.apache.guacamole.GuacamoleException
- If an error occurs while retrieving permissions, or if reading all
permissions is not allowed.Copyright © 2018. All rights reserved.