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()
Identifiable
getIdentifier
in interface Identifiable
public void setIdentifier(String username)
Identifiable
setIdentifier
in interface Identifiable
username
- 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()
User
getAttributes
in interface User
public void setAttributes(Map<String,String> attributes)
User
setAttributes
in interface User
attributes
- A map of all attribute identifiers to their corresponding values.public SystemPermissionSet getSystemPermissions() throws GuacamoleException
User
getSystemPermissions
in interface User
GuacamoleException
- If an error occurs while retrieving permissions, or if reading all
permissions is not allowed.public ObjectPermissionSet getConnectionPermissions() throws GuacamoleException
User
getConnectionPermissions
in interface User
GuacamoleException
- If an error occurs while retrieving permissions, or if reading all
permissions is not allowed.public ObjectPermissionSet getConnectionGroupPermissions() throws GuacamoleException
User
getConnectionGroupPermissions
in interface User
GuacamoleException
- If an error occurs while retrieving permissions, or if reading all
permissions is not allowed.public ObjectPermissionSet getUserPermissions() throws GuacamoleException
User
getUserPermissions
in interface User
GuacamoleException
- If an error occurs while retrieving permissions, or if reading all
permissions is not allowed.public ObjectPermissionSet getActiveConnectionPermissions() throws GuacamoleException
User
getActiveConnectionPermissions
in interface User
GuacamoleException
- If an error occurs while retrieving permissions, or if reading all
permissions is not allowed.Copyright © 2015. All rights reserved.