|
lintel 0.2.0
|
#include <UserGroupDto.h>
Public Member Functions | |
| UserGroupDto ()=default | |
| UserGroupDto (std::set< std::string > groupAdds, std::set< std::string > groupRemoves, std::string userName) | |
| const std::string & | getUserName () |
| const std::set< std::string > & | getGroupAdds () |
| const std::set< std::string > & | getGroupRemoves () |
| void | serialize (rapidjson::Writer< rapidjson::StringBuffer > *writer) const override |
| bool | deserialize (const rapidjson::Value &obj) override |
Public Member Functions inherited from lintel::JsonSerializable | |
| JsonSerializable ()=default | |
| virtual | ~JsonSerializable ()=default |
| virtual std::string | serialize () const |
| virtual void | deserialize (const std::string &json) |
DTO for modifying a user's group memberships
|
default |
Default constructor
| lintel::UserGroupDto::UserGroupDto | ( | std::set< std::string > | groupAdds, |
| std::set< std::string > | groupRemoves, | ||
| std::string | userName | ||
| ) |
Construct a user group modification DTO
| groupAdds | Set of groups to add |
| groupRemoves | Set of groups to remove |
| userName | The target user name |
Deserialize from JSON
| obj | The JSON value |
Reimplemented from lintel::JsonSerializable.
| const std::set< std::string > & lintel::UserGroupDto::getGroupAdds | ( | ) |
Get the groups to add
| const std::set< std::string > & lintel::UserGroupDto::getGroupRemoves | ( | ) |
Get the groups to remove
| const std::string & lintel::UserGroupDto::getUserName | ( | ) |
Get the user name
|
overridevirtual |