Leosac  0.8.0
Open Source Access Control
Leosac::Module::WebSockAPI::AccessPointCRUD Class Reference

CRUD Handler for AccessPoint. More...

#include <AccessPointCRUD.hpp>

+ Inheritance diagram for Leosac::Module::WebSockAPI::AccessPointCRUD:
+ Collaboration diagram for Leosac::Module::WebSockAPI::AccessPointCRUD:

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

 AccessPointCRUD (RequestContext ctx)
 
virtual std::vector< ActionActionParamrequired_permission (Verb verb, const json &req) const override
 
virtual boost::optional< jsoncreate_impl (const json &req) override
 
virtual boost::optional< jsonread_impl (const json &req) override
 
virtual boost::optional< jsonupdate_impl (const json &req) override
 
virtual boost::optional< jsondelete_impl (const json &req) override
 

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 }
 
- Public Member Functions inherited from Leosac::Module::WebSockAPI::ICRUDResourceHandler
boost::optional< jsonprocess (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...
 
- 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

CRUD Handler for AccessPoint.

Note
Module specific access-point attributes are not handled by this class. It cannot work similarly to the credential CRUD handler: Credential CRUD handler is compile-time aware of all credential type, while this module cannot be aware of all type of access-point because they can be plugged in as modules.

Definition at line 41 of file AccessPointCRUD.hpp.

Constructor & Destructor Documentation

◆ AccessPointCRUD()

AccessPointCRUD::AccessPointCRUD ( RequestContext  ctx)
private

Definition at line 41 of file AccessPointCRUD.cpp.

Member Function Documentation

◆ create_impl()

boost::optional< json > AccessPointCRUD::create_impl ( const json req)
overrideprivatevirtual

◆ delete_impl()

boost::optional< json > AccessPointCRUD::delete_impl ( const json req)
overrideprivatevirtual

◆ instanciate()

CRUDResourceHandlerUPtr AccessPointCRUD::instanciate ( RequestContext  ctx)
static

Definition at line 46 of file AccessPointCRUD.cpp.

◆ read_impl()

boost::optional< json > AccessPointCRUD::read_impl ( const json req)
overrideprivatevirtual

◆ required_permission()

std::vector< CRUDResourceHandler::ActionActionParam > AccessPointCRUD::required_permission ( CRUDResourceHandler::Verb  verb,
const json req 
) const
overrideprivatevirtual

◆ update_impl()

boost::optional< json > AccessPointCRUD::update_impl ( const json req)
overrideprivatevirtual

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