public abstract class AbstractUser extends AbstractIdentifiable implements User
User.Attribute| Constructor and Description |
|---|
AbstractUser() |
| 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.
|
Permissions |
getEffectivePermissions()
Returns a read-only view of all permissions granted to this user.
|
List<ActivityRecord> |
getHistory()
Returns a list of ActivityRecords representing the login history
of this user, including any active sessions.
|
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 |
setPassword(String password)
Sets this user's password.
|
equals, getIdentifier, hashCode, setIdentifierclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetIdentifier, setIdentifierpublic String getPassword()
UsergetPassword in interface Userpublic void setPassword(String password)
UsersetPassword in interface Userpassword - The password to set.public Map<String,String> getAttributes()
This implementation simply an immutable, empty map. Implementations that wish to expose custom attributes should override this function.
getAttributes in interface Attributespublic void setAttributes(Map<String,String> attributes)
This implementation simply ignores all attributes given. Implementations that wish to support modification of custom attributes should override this function.
setAttributes in interface Attributesattributes - A map of all attribute identifiers to their corresponding values.public Date getLastActive()
This implementation simply returns null. Implementations that
wish to expose the date and time that a user was last active should
override this function.
getLastActive in interface Userpublic List<ActivityRecord> getHistory() throws org.apache.guacamole.GuacamoleException
This implementation simply an immutable, empty list. Implementations that wish to expose user login history should override this function.
getHistory in interface Userorg.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
This implementation simply an immutable, empty permission set. Implementations that wish to expose permissions should override this function.
getSystemPermissions in interface Permissionsorg.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
This implementation simply an immutable, empty permission set. Implementations that wish to expose permissions should override this function.
getConnectionPermissions in interface Permissionsorg.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
This implementation simply an immutable, empty permission set. Implementations that wish to expose permissions should override this function.
getConnectionGroupPermissions in interface Permissionsorg.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
This implementation simply an immutable, empty permission set. Implementations that wish to expose permissions should override this function.
getUserPermissions in interface Permissionsorg.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
This implementation simply an immutable, empty permission set. Implementations that wish to expose permissions should override this function.
getUserGroupPermissions in interface Permissionsorg.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
This implementation simply an immutable, empty permission set. Implementations that wish to expose permissions should override this function.
getActiveConnectionPermissions in interface Permissionsorg.apache.guacamole.GuacamoleException - If an error occurs while retrieving permissions, or if reading all
permissions is not allowed.public ObjectPermissionSet getSharingProfilePermissions()
This implementation simply an immutable, empty permission set. Implementations that wish to expose permissions should override this function.
getSharingProfilePermissions in interface Permissionspublic RelatedObjectSet getUserGroups() throws org.apache.guacamole.GuacamoleException
This implementation simply an immutable, empty related object set. Implementations that wish to expose group membership should override this function.
getUserGroups in interface Userorg.apache.guacamole.GuacamoleException - If an error occurs while retrieving the user groups.public Permissions getEffectivePermissions() throws org.apache.guacamole.GuacamoleException
This implementation simply returns this. Implementations that
wish to expose permissions which apply indirectly (such as through
group inheritance) should override this function.
getEffectivePermissions in interface Userorg.apache.guacamole.GuacamoleException - If an error occurs while retrieving permissions, or if reading all
permissions is not allowed.Copyright © 2020. All rights reserved.