Leosac
0.8.0
Open Source Access Control
|
Query the audit log. More...
#include <AuditGet.hpp>
Public Member Functions | |
AuditGet (RequestContext ctx) | |
Public Member Functions inherited from Leosac::Module::WebSockAPI::MethodHandler | |
MethodHandler (RequestContext ctx) | |
virtual | ~MethodHandler ()=default |
json | process (const ClientMessage &msg) |
The public process() method. More... | |
UserSecurityContext & | security_context () |
ExecutionContext | exec_context () |
Returns a representation of the execution context of this request. More... | |
Static Public Member Functions | |
static MethodHandlerUPtr | create (RequestContext) |
Static Public Member Functions inherited from Leosac::Module::WebSockAPI::MethodHandler | |
static MethodHandlerUPtr | create (RequestContext) |
An example method that should be implemented in all subclasses. More... | |
Protected Member Functions | |
std::vector< ActionActionParam > | required_permission (const json &req) const override |
Return a list of "Action" / "ActionParam" that must pass before the request is processed. More... | |
Private Member Functions | |
virtual json | process_impl (const json &req) override |
The API method implementation. More... | |
std::string | build_request_string (const json &req, int page, int page_size) const |
std::string | build_in_clause (const json &req) const |
Build the "WHERE typeid IN (...)" string based on the enabled types. More... | |
bool | is_stringtype_sane (const std::string &str) const |
Check that a given string representing an audit type is sane. More... | |
Additional Inherited Members | |
Public Types inherited from Leosac::Module::WebSockAPI::MethodHandler | |
using | Factory = MethodHandlerUPtr(*)(RequestContext) |
Protected Attributes inherited from Leosac::Module::WebSockAPI::MethodHandler | |
RequestContext | ctx_ |
Query the audit log.
Request:
Response:
Definition at line 53 of file AuditGet.hpp.
AuditGet::AuditGet | ( | RequestContext | ctx | ) |
Definition at line 40 of file AuditGet.cpp.
|
private |
Build the "WHERE typeid IN (...)" string based on the enabled types.
Definition at line 127 of file AuditGet.cpp.
|
private |
Definition at line 104 of file AuditGet.cpp.
|
static |
Definition at line 45 of file AuditGet.cpp.
|
private |
Check that a given string representing an audit type is sane.
Definition at line 117 of file AuditGet.cpp.
The API method implementation.
content
key in the JSON message sent to the client. Implements Leosac::Module::WebSockAPI::MethodHandler.
Definition at line 50 of file AuditGet.cpp.
|
overrideprotectedvirtual |
Return a list of "Action" / "ActionParam" that must pass before the request is processed.
Implements Leosac::Module::WebSockAPI::MethodHandler.
Definition at line 95 of file AuditGet.cpp.