Leosac
0.8.0
Open Source Access Control
|
#include <CRUDHandler.hpp>
Public Member Functions | |
CRUDHandler (const WebSockAPI::RequestContext &ctx) | |
std::vector< ActionActionParam > | required_permission (Verb verb, const WebSockAPI::json &req) const override |
boost::optional< WebSockAPI::json > | create_impl (const WebSockAPI::json &req) override |
boost::optional< WebSockAPI::json > | read_impl (const WebSockAPI::json &req) override |
boost::optional< WebSockAPI::json > | update_impl (const WebSockAPI::json &req) override |
boost::optional< WebSockAPI::json > | delete_impl (const WebSockAPI::json &req) override |
Public Member Functions inherited from Leosac::Module::WebSockAPI::ICRUDResourceHandler | |
boost::optional< json > | process (const ClientMessage &msg) |
Static Public Member Functions | |
static WebSockAPI::CRUDResourceHandlerUPtr | instanciate (WebSockAPI::RequestContext) |
Static Public Member Functions inherited from Leosac::Module::WebSockAPI::CRUDResourceHandler | |
static CRUDResourceHandlerUPtr | instanciate (RequestContext) |
Additional Inherited Members | |
Public Types inherited from Leosac::Module::WebSockAPI::CRUDResourceHandler | |
using | Factory = CRUDResourceHandlerUPtr(*)(RequestContext) |
Public Types inherited from Leosac::Module::WebSockAPI::ICRUDResourceHandler | |
enum | Verb { Verb::CREATE, Verb::READ, Verb::UPDATE, Verb::DELETE } |
Protected Types inherited from Leosac::Module::WebSockAPI::ICRUDResourceHandler | |
using | ActionActionParam = std::pair< SecurityContext::Action, SecurityContext::ActionParam > |
A pair of Action and a generic ActionParam union. More... | |
Protected Member Functions inherited from Leosac::Module::WebSockAPI::CRUDResourceHandler | |
CRUDResourceHandler (RequestContext ctx) | |
virtual UserSecurityContext & | security_context () const override |
Helper function that returns the security context. More... | |
Protected Attributes inherited from Leosac::Module::WebSockAPI::CRUDResourceHandler | |
RequestContext | ctx_ |
Definition at line 30 of file CRUDHandler.hpp.
|
explicit |
Definition at line 170 of file CRUDHandler.cpp.
|
overridevirtual |
Implements Leosac::Module::WebSockAPI::ICRUDResourceHandler.
Definition at line 75 of file CRUDHandler.cpp.
|
overridevirtual |
Implements Leosac::Module::WebSockAPI::ICRUDResourceHandler.
Definition at line 157 of file CRUDHandler.cpp.
|
static |
Definition at line 176 of file CRUDHandler.cpp.
|
overridevirtual |
Implements Leosac::Module::WebSockAPI::ICRUDResourceHandler.
Definition at line 102 of file CRUDHandler.cpp.
|
overridevirtual |
Implements Leosac::Module::WebSockAPI::ICRUDResourceHandler.
Definition at line 37 of file CRUDHandler.cpp.
|
overridevirtual |
Implements Leosac::Module::WebSockAPI::ICRUDResourceHandler.
Definition at line 139 of file CRUDHandler.cpp.