Leosac  0.8.0
Open Source Access Control
Leosac::Module::Wiegand::CRUDHandler Class Reference

#include <CRUDHandler.hpp>

+ Inheritance diagram for Leosac::Module::Wiegand::CRUDHandler:
+ Collaboration diagram for Leosac::Module::Wiegand::CRUDHandler:

Public Member Functions

 CRUDHandler (const WebSockAPI::RequestContext &ctx)
 
std::vector< ActionActionParamrequired_permission (Verb verb, const WebSockAPI::json &req) const override
 
boost::optional< WebSockAPI::jsoncreate_impl (const WebSockAPI::json &req) override
 
boost::optional< WebSockAPI::jsonread_impl (const WebSockAPI::json &req) override
 
boost::optional< WebSockAPI::jsonupdate_impl (const WebSockAPI::json &req) override
 
boost::optional< WebSockAPI::jsondelete_impl (const WebSockAPI::json &req) override
 
- Public Member Functions inherited from Leosac::Module::WebSockAPI::ICRUDResourceHandler
boost::optional< jsonprocess (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 UserSecurityContextsecurity_context () const override
 Helper function that returns the security context. More...
 
- Protected Attributes inherited from Leosac::Module::WebSockAPI::CRUDResourceHandler
RequestContext ctx_
 

Detailed Description

Definition at line 30 of file CRUDHandler.hpp.

Constructor & Destructor Documentation

◆ CRUDHandler()

Leosac::Module::Wiegand::CRUDHandler::CRUDHandler ( const WebSockAPI::RequestContext ctx)
explicit

Definition at line 170 of file CRUDHandler.cpp.

Member Function Documentation

◆ create_impl()

boost::optional< json > Leosac::Module::Wiegand::CRUDHandler::create_impl ( const WebSockAPI::json req)
overridevirtual

Implements Leosac::Module::WebSockAPI::ICRUDResourceHandler.

Definition at line 75 of file CRUDHandler.cpp.

◆ delete_impl()

boost::optional< json > Leosac::Module::Wiegand::CRUDHandler::delete_impl ( const WebSockAPI::json req)
overridevirtual

Implements Leosac::Module::WebSockAPI::ICRUDResourceHandler.

Definition at line 157 of file CRUDHandler.cpp.

◆ instanciate()

WebSockAPI::CRUDResourceHandlerUPtr Leosac::Module::Wiegand::CRUDHandler::instanciate ( WebSockAPI::RequestContext  ctx)
static

Definition at line 176 of file CRUDHandler.cpp.

◆ read_impl()

boost::optional< json > Leosac::Module::Wiegand::CRUDHandler::read_impl ( const WebSockAPI::json req)
overridevirtual

Implements Leosac::Module::WebSockAPI::ICRUDResourceHandler.

Definition at line 102 of file CRUDHandler.cpp.

◆ required_permission()

std::vector< WebSockAPI::ICRUDResourceHandler::ActionActionParam > Leosac::Module::Wiegand::CRUDHandler::required_permission ( Verb  verb,
const WebSockAPI::json req 
) const
overridevirtual

Implements Leosac::Module::WebSockAPI::ICRUDResourceHandler.

Definition at line 37 of file CRUDHandler.cpp.

◆ update_impl()

boost::optional< json > Leosac::Module::Wiegand::CRUDHandler::update_impl ( const WebSockAPI::json req)
overridevirtual

Implements Leosac::Module::WebSockAPI::ICRUDResourceHandler.

Definition at line 139 of file CRUDHandler.cpp.


The documentation for this class was generated from the following files: