Leosac
0.8.0
Open Source Access Control
|
Base CRUD handler for use within the websocket module. More...
#include <CRUDResourceHandler.hpp>
Public Types | |
using | Factory = CRUDResourceHandlerUPtr(*)(RequestContext) |
Public Types inherited from Leosac::Module::WebSockAPI::ICRUDResourceHandler | |
enum | Verb { Verb::CREATE, Verb::READ, Verb::UPDATE, Verb::DELETE } |
Static Public Member Functions | |
static CRUDResourceHandlerUPtr | instanciate (RequestContext) |
Protected Member Functions | |
CRUDResourceHandler (RequestContext ctx) | |
virtual UserSecurityContext & | security_context () const override |
Helper function that returns the security context. More... | |
Protected Attributes | |
RequestContext | ctx_ |
Additional Inherited Members | |
Public Member Functions inherited from Leosac::Module::WebSockAPI::ICRUDResourceHandler | |
boost::optional< json > | process (const ClientMessage &msg) |
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... | |
Base CRUD handler for use within the websocket module.
Definition at line 84 of file CRUDResourceHandler.hpp.
using Leosac::Module::WebSockAPI::CRUDResourceHandler::Factory = CRUDResourceHandlerUPtr (*)(RequestContext) |
Definition at line 90 of file CRUDResourceHandler.hpp.
|
protected |
Definition at line 86 of file CRUDResourceHandler.cpp.
|
static |
Definition at line 91 of file CRUDResourceHandler.cpp.
|
overrideprotectedvirtual |
Helper function that returns the security context.
Implements Leosac::Module::WebSockAPI::ICRUDResourceHandler.
Definition at line 96 of file CRUDResourceHandler.cpp.
|
protected |
Definition at line 95 of file CRUDResourceHandler.hpp.