public class APIUserWrapper extends Object implements User
| Constructor and Description |
|---|
APIUserWrapper(APIUser apiUser)
Wrap a given APIUser to expose as a User.
|
| 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.
|
String |
getIdentifier()
Returns the unique identifier assigned to this object.
|
String |
getPassword()
Returns this user's password.
|
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.
|
void |
setIdentifier(String username)
Sets the identifier assigned to this object.
|
void |
setPassword(String password)
Sets this user's password.
|
public APIUserWrapper(APIUser apiUser)
apiUser - The APIUser to wrap.public String getIdentifier()
IdentifiablegetIdentifier in interface Identifiablepublic void setIdentifier(String username)
IdentifiablesetIdentifier in interface Identifiableusername - The identifier to assign.public String getPassword()
UsergetPassword in interface Userpublic void setPassword(String password)
UsersetPassword in interface Userpassword - The password to set.public Map<String,String> getAttributes()
UsergetAttributes in interface Userpublic void setAttributes(Map<String,String> attributes)
UsersetAttributes in interface Userattributes - A map of all attribute identifiers to their corresponding values.public SystemPermissionSet getSystemPermissions() throws GuacamoleException
UsergetSystemPermissions in interface UserGuacamoleException - If an error occurs while retrieving permissions, or if reading all
permissions is not allowed.public ObjectPermissionSet getConnectionPermissions() throws GuacamoleException
UsergetConnectionPermissions in interface UserGuacamoleException - If an error occurs while retrieving permissions, or if reading all
permissions is not allowed.public ObjectPermissionSet getConnectionGroupPermissions() throws GuacamoleException
UsergetConnectionGroupPermissions in interface UserGuacamoleException - If an error occurs while retrieving permissions, or if reading all
permissions is not allowed.public ObjectPermissionSet getUserPermissions() throws GuacamoleException
UsergetUserPermissions in interface UserGuacamoleException - If an error occurs while retrieving permissions, or if reading all
permissions is not allowed.public ObjectPermissionSet getActiveConnectionPermissions() throws GuacamoleException
UsergetActiveConnectionPermissions in interface UserGuacamoleException - If an error occurs while retrieving permissions, or if reading all
permissions is not allowed.Copyright © 2016. All rights reserved.