|
Leosac
0.8.0
Open Source Access Control
|
Go to the documentation of this file.
32 #pragma db object polymorphic callback(odb_callback)
63 #pragma db on_delete(set_null)
66 #pragma db on_delete(set_null)
Auth::UserId target_user_id_
Set to target_user_->id()
std::shared_ptr< AuditEntry > AuditEntryPtr
odb::lazy_weak_ptr< User > UserLWPtr
std::string generate_target_group_description() const
void database(DBPtr db)
Set the database pointer.
std::shared_ptr< User > UserPtr
std::shared_ptr< odb::database > DBPtr
std::string generate_description() const override
Generate a description for this event.
Auth::GroupLWPtr target_group_
Auth::UserLWPtr target_user_
virtual void target_group(Auth::GroupPtr grp) override
The group that gained or lost an user.
Provides an implementation of IUserGroupMembershipEvent.
This is the header file for a generated source file, GitSHA1.cpp.
static UserGroupMembershipEventPtr create(const DBPtr &database, Auth::GroupPtr target_group, Auth::UserPtr target_user, AuditEntryPtr parent)
Provide static methods to instanciate various Audit objects.
std::shared_ptr< Group > GroupPtr
virtual IAuditEntryPtr parent() const override
Retrieve the parent of this entry.
virtual ~UserGroupMembershipEvent()=default
Auth::GroupId target_group_id() const override
Auth::GroupId target_group_id_
This is equals to target_group_->id().
Auth::UserId target_user_id() const override
std::string generate_target_user_description() const
Implementation of IAuditEntry, backed by ODB.
odb::lazy_weak_ptr< Group > GroupLWPtr
std::shared_ptr< UserGroupMembershipEvent > UserGroupMembershipEventPtr
Interface to audit object that take care of tracking user/group membership change.
virtual void target_user(Auth::UserPtr user) override
The user that joined or left the group.
UserGroupMembershipEvent()=default