public class User extends Object
Modifier and Type | Class and Description |
---|---|
static class |
User.UserLinks |
Modifier and Type | Field and Description |
---|---|
User.UserLinks |
_links |
String |
contact |
String |
email |
List<Group> |
groups |
Integer |
id |
String |
name |
String |
password |
String |
passwordCleared |
User |
substitute |
String |
username |
String |
usernameAD |
Integer |
version |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
toMap()
Converts the User object's fields into a map representation.
|
String |
toString() |
void |
update(Map<String,Object> userData)
Updates the fields of this
User based on the provided user data. |
public User.UserLinks _links
public String contact
public String email
public Integer id
public String name
public String password
public String passwordCleared
public User substitute
public String username
public String usernameAD
public Integer version
public Map<String,Object> toMap()
Map<String, Object>
containing field names as keys and their corresponding values.
If a field is null
, it will still be included in the map.public void update(Map<String,Object> userData)
User
based on the provided user data.userData
- a Map<String, Object>
containing user attributes to update.
password
: the user new password.name
: the role name.email
: the user email.contact
: the user contact.usernameAD
: the user external username.substitute
: the user substituing this user. An instance of User
or a Map<String, Object>
.Copyright © 2021 Cult Of Bits, lda