Leosac
0.8.0
Open Source Access Control
|
CRUD Handler for credentials. More...
#include <CredentialCRUD.hpp>
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 | |
CredentialCRUD (RequestContext ctx) | |
virtual std::vector< ActionActionParam > | required_permission (Verb verb, const json &req) const override |
virtual boost::optional< json > | create_impl (const json &req) override |
Create a new credential. More... | |
virtual boost::optional< json > | read_impl (const json &req) override |
virtual boost::optional< json > | update_impl (const json &req) override |
virtual boost::optional< json > | delete_impl (const json &req) override |
CRUD Handler for credentials.
This handler is designed to be able to manage various type of credentials.
Definition at line 39 of file CredentialCRUD.hpp.
|
private |
Definition at line 38 of file CredentialCRUD.cpp.
Create a new credential.
Request:
credential-type
: The type of the credential we wish to create. Can be rfid-card
.attributes
: Dictionary of attributes for the credential.req |
Implements Leosac::Module::WebSockAPI::ICRUDResourceHandler.
Definition at line 82 of file CredentialCRUD.cpp.
Implements Leosac::Module::WebSockAPI::ICRUDResourceHandler.
Definition at line 183 of file CredentialCRUD.cpp.
|
static |
Definition at line 43 of file CredentialCRUD.cpp.
Implements Leosac::Module::WebSockAPI::ICRUDResourceHandler.
Definition at line 121 of file CredentialCRUD.cpp.
|
overrideprivatevirtual |
Implements Leosac::Module::WebSockAPI::ICRUDResourceHandler.
Definition at line 51 of file CredentialCRUD.cpp.
Implements Leosac::Module::WebSockAPI::ICRUDResourceHandler.
Definition at line 157 of file CredentialCRUD.cpp.