Leosac
0.8.0
Open Source Access Control
|
CRUD Handler for schedules. More...
#include <ScheduleCRUD.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 | |
ScheduleCRUD (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 schedule. More... | |
virtual boost::optional< json > | read_impl (const json &req) override |
virtual boost::optional< json > | update_impl (const json &req) override |
Update a schedule object. More... | |
virtual boost::optional< json > | delete_impl (const json &req) override |
CRUD Handler for schedules.
Definition at line 36 of file ScheduleCRUD.hpp.
|
private |
Definition at line 37 of file ScheduleCRUD.cpp.
Create a new schedule.
Request:
attributes
: Various attributes regarding the schedules.Attributes:
name
:description
:timeframes
: Implements Leosac::Module::WebSockAPI::ICRUDResourceHandler.
Definition at line 81 of file ScheduleCRUD.cpp.
Implements Leosac::Module::WebSockAPI::ICRUDResourceHandler.
Definition at line 216 of file ScheduleCRUD.cpp.
|
static |
Definition at line 42 of file ScheduleCRUD.cpp.
Implements Leosac::Module::WebSockAPI::ICRUDResourceHandler.
Definition at line 124 of file ScheduleCRUD.cpp.
|
overrideprivatevirtual |
Implements Leosac::Module::WebSockAPI::ICRUDResourceHandler.
Definition at line 50 of file ScheduleCRUD.cpp.
Update a schedule object.
This call is a bit different than schedule.create
because it allows for specifying the mapping (ScheduleMapping objects) of the schedule.
Request:
attributes
: ...mapping
: [ {Implements Leosac::Module::WebSockAPI::ICRUDResourceHandler.
Definition at line 159 of file ScheduleCRUD.cpp.