Leosac
0.8.0
Open Source Access Control
|
CRUD Handler for UserGroupMembership. More...
#include <MembershipCRUD.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 | |
MembershipCRUD (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 |
Creating a new UserGroupMembersip: this means someone is joining a group. More... | |
virtual boost::optional< json > | read_impl (const json &req) override |
Retrieve information about a group. More... | |
virtual boost::optional< json > | update_impl (const json &req) override |
virtual boost::optional< json > | delete_impl (const json &req) override |
CRUD Handler for UserGroupMembership.
Definition at line 34 of file MembershipCRUD.hpp.
|
private |
Definition at line 40 of file MembershipCRUD.cpp.
Creating a new UserGroupMembersip: this means someone is joining a group.
Request:
group_id
: The group to joinuser_id
: The user that join.rank
: The rank of the user in the groupResponse:
Implements Leosac::Module::WebSockAPI::ICRUDResourceHandler.
Definition at line 51 of file MembershipCRUD.cpp.
Implements Leosac::Module::WebSockAPI::ICRUDResourceHandler.
Definition at line 106 of file MembershipCRUD.cpp.
|
static |
Definition at line 45 of file MembershipCRUD.cpp.
Retrieve information about a group.
Request:
membership_id
: The id of the membership to look up. RequiredResponse:
Implements Leosac::Module::WebSockAPI::ICRUDResourceHandler.
Definition at line 85 of file MembershipCRUD.cpp.
|
overrideprivatevirtual |
Implements Leosac::Module::WebSockAPI::ICRUDResourceHandler.
Definition at line 124 of file MembershipCRUD.cpp.
Implements Leosac::Module::WebSockAPI::ICRUDResourceHandler.
Definition at line 101 of file MembershipCRUD.cpp.