static SecurityContext & instance()
ScheduleActionParam sched
virtual bool check_permission(Action a, const ActionParam &ap) const
Check for the permission to perform action a with parameters ap.
A security context for system operation.
AccessPointActionParam access_point
virtual bool check_permission_impl(Action a, const ActionParam &ap) const override
Reimplement this method to provide permission checking.
virtual bool check_permission_impl(Action a, const ActionParam &ap) const =0
Reimplement this method to provide permission checking.
An ExecutionContext is passed around to service so they have context about who is making the call and...
MembershipActionParam membership
HardwareDeviceActionParam device
void enforce_permission(Action a, const ActionParam &ap) const
Similar to check_permission(), but throws is the permission is denied.
SecurityContext(DBServicePtr dbsrv)
CredentialActionParam cred
A SecurityContext is used to query permission while doing an operation.
ExecutionContext(SecurityContext &sc)
SystemSecurityContext(DBServicePtr dbsrv)