#include <UserDto.h>
◆ UserDto() [1/2]
| lintel::UserDto::UserDto |
( |
const User & |
user, |
|
|
std::string |
id = "" |
|
) |
| |
|
explicit |
Construct from a User model
- Parameters
-
| user | The source user |
| id | Optional user ID |
◆ UserDto() [2/2]
| lintel::UserDto::UserDto |
( |
| ) |
|
|
default |
◆ deserialize()
| bool lintel::UserDto::deserialize |
( |
const rapidjson::Value & |
obj | ) |
|
|
overridevirtual |
◆ getCreatedTimestamp()
| const std::chrono::sys_time< std::chrono::microseconds > & lintel::UserDto::getCreatedTimestamp |
( |
| ) |
const |
Get the account creation timestamp
- Returns
- The timestamp
◆ getEMail()
| const std::string & lintel::UserDto::getEMail |
( |
| ) |
const |
Get the email address
- Returns
- The email
◆ getFirstName()
| const std::string & lintel::UserDto::getFirstName |
( |
| ) |
const |
Get the first name
- Returns
- The first name
◆ getGroups()
| std::vector< GroupDto > lintel::UserDto::getGroups |
( |
| ) |
const |
Get the groups this user belongs to
- Returns
- Vector of group DTOs
◆ getId()
| const std::string & lintel::UserDto::getId |
( |
| ) |
const |
Get the user ID
- Returns
- The ID
◆ getLastName()
| const std::string & lintel::UserDto::getLastName |
( |
| ) |
const |
Get the last name
- Returns
- The last name
◆ getPassword()
| const std::optional< std::string > & lintel::UserDto::getPassword |
( |
| ) |
const |
Get the password (only used for creating a user)
- Returns
- Optional password string
◆ getSex()
Get the sex
- Returns
- The sex
◆ getUserName()
| const std::string & lintel::UserDto::getUserName |
( |
| ) |
const |
Get the user name
- Returns
- The user name
◆ serialize()
| void lintel::UserDto::serialize |
( |
rapidjson::Writer< rapidjson::StringBuffer > * |
writer | ) |
const |
|
overridevirtual |
◆ setPassword()
| void lintel::UserDto::setPassword |
( |
const std::string & |
password | ) |
|
Set the password
- Parameters
-
| password | The password to set |
The documentation for this class was generated from the following file:
- src/include/lintel/features/base/controller/UserDto.h