Leosac
0.8.0
Open Source Access Control
|
CRUD Handler for Users. More...
#include <UserCRUD.hpp>
Static Public Member Functions | |
static CRUDResourceHandlerUPtr | instanciate (RequestContext) |
Static Public Member Functions inherited from Leosac::Module::WebSockAPI::CRUDResourceHandler | |
static CRUDResourceHandlerUPtr | instanciate (RequestContext) |
Private Member Functions | |
UserCRUD (RequestContext ctx) | |
virtual std::vector< ActionActionParam > | required_permission (Verb verb, const json &req) const override |
virtual boost::optional< json > | create_impl (const json &req) override |
virtual boost::optional< json > | read_impl (const json &req) override |
Retrieve information about a given user, or about all users. More... | |
virtual boost::optional< json > | update_impl (const json &req) override |
Update information about a given user. More... | |
virtual boost::optional< json > | delete_impl (const json &req) override |
CRUD Handler for Users.
Definition at line 34 of file UserCRUD.hpp.
|
private |
Definition at line 36 of file UserCRUD.cpp.
Implements Leosac::Module::WebSockAPI::ICRUDResourceHandler.
Definition at line 47 of file UserCRUD.cpp.
Implements Leosac::Module::WebSockAPI::ICRUDResourceHandler.
Definition at line 141 of file UserCRUD.cpp.
|
static |
Definition at line 41 of file UserCRUD.cpp.
Retrieve information about a given user, or about all users.
Request:
user_id
: The user_id of the user we want to fetch. Note that the special value 0
can be used to request all known users. This field is required.Response:
Implements Leosac::Module::WebSockAPI::ICRUDResourceHandler.
Definition at line 77 of file UserCRUD.cpp.
|
overrideprivatevirtual |
Implements Leosac::Module::WebSockAPI::ICRUDResourceHandler.
Definition at line 147 of file UserCRUD.cpp.
Update information about a given user.
Request:
user_id
: The user_id of the user we want to update. Required.attributes
: A dictionnary of a user's attributes (firstname, lastname, etc...).Accepted attributes:
Response:
Implements Leosac::Module::WebSockAPI::ICRUDResourceHandler.
Definition at line 107 of file UserCRUD.cpp.