Leosac
0.8.0
Open Source Access Control
|
CRUD Handler for Doors. More...
#include <DoorCRUD.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 | |
DoorCRUD (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 |
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 |
void | enforce_ap_not_already_referenced (Auth::AccessPointId apid) |
Make sure that the AccessPoint with id apid is not already referenced by a door. More... | |
CRUD Handler for Doors.
Definition at line 36 of file DoorCRUD.hpp.
|
private |
Definition at line 39 of file DoorCRUD.cpp.
Implements Leosac::Module::WebSockAPI::ICRUDResourceHandler.
Definition at line 50 of file DoorCRUD.cpp.
Implements Leosac::Module::WebSockAPI::ICRUDResourceHandler.
Definition at line 140 of file DoorCRUD.cpp.
|
private |
Make sure that the AccessPoint with id apid
is not already referenced by a door.
If it is, we'll throw an exception to notify the user of the error rather than rely on the database constraint.
Definition at line 193 of file DoorCRUD.cpp.
|
static |
Definition at line 44 of file DoorCRUD.cpp.
Implements Leosac::Module::WebSockAPI::ICRUDResourceHandler.
Definition at line 75 of file DoorCRUD.cpp.
|
overrideprivatevirtual |
Implements Leosac::Module::WebSockAPI::ICRUDResourceHandler.
Definition at line 163 of file DoorCRUD.cpp.
Implements Leosac::Module::WebSockAPI::ICRUDResourceHandler.
Definition at line 111 of file DoorCRUD.cpp.