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

For other module to use. More...

#include <CRUDResourceHandler.hpp>

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

Public Types

using Factory = ExternalCRUDResourceHandlerUPtr(*)(ModuleRequestContext)
 
- Public Types inherited from Leosac::Module::WebSockAPI::ICRUDResourceHandler
enum  Verb { Verb::CREATE, Verb::READ, Verb::UPDATE, Verb::DELETE }
 

Protected Member Functions

 ExternalCRUDResourceHandler (ModuleRequestContext ctx)
 
virtual UserSecurityContextsecurity_context () const override
 Helper function that returns the security context. More...
 

Protected Attributes

ModuleRequestContext ctx_
 

Additional Inherited Members

- 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...
 

Detailed Description

For other module to use.

Definition at line 103 of file CRUDResourceHandler.hpp.

Member Typedef Documentation

◆ Factory

Constructor & Destructor Documentation

◆ ExternalCRUDResourceHandler()

ExternalCRUDResourceHandler::ExternalCRUDResourceHandler ( ModuleRequestContext  ctx)
protected

Definition at line 104 of file CRUDResourceHandler.cpp.

Member Function Documentation

◆ security_context()

UserSecurityContext & ExternalCRUDResourceHandler::security_context ( ) const
overrideprotectedvirtual

Helper function that returns the security context.

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

Definition at line 109 of file CRUDResourceHandler.cpp.

Member Data Documentation

◆ ctx_

ModuleRequestContext Leosac::Module::WebSockAPI::ExternalCRUDResourceHandler::ctx_
protected

Definition at line 112 of file CRUDResourceHandler.hpp.


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