39 return std::make_unique<CancelUpdate>(ctx);
44 std::vector<ActionActionParam> perm;
54 ASSERT_LOG(srv_ptr,
"Cannot retrieve UpdateService.");
std::vector< ActionActionParam > required_permission(const json &req) const override
Return a list of "Action" / "ActionParam" that must pass before the request is processed.
This service provides various update management utilities.
static MethodHandlerUPtr create(RequestContext)
The base class for API method handler implementation.
This is the header file for a generated source file, GitSHA1.cpp.
virtual json process_impl(const json &req) override
The API method implementation.
ServiceRegistry & get_service_registry()
A function to retrieve the ServiceRegistry from pretty much anywhere.
UserSecurityContext & security_context()
std::unique_ptr< MethodHandler > MethodHandlerUPtr
Requires that the user be at least manager.
Provides various database-related services to consumer.
#define ASSERT_LOG(cond, msg)
CancelUpdate(RequestContext ctx)
ExecutionContext exec_context()
Returns a representation of the execution context of this request.
std::shared_ptr< ServiceInterface > get_service() const
Retrieve the service instance implementing the ServiceInterface, or nullptr if no such service was re...
Holds valuable pointer to provide context to a request.