|
Leosac
0.8.0
Open Source Access Control
|
Go to the documentation of this file.
21 #include "core/audit/UserGroupMembershipEvent_odb.h"
55 std::shared_ptr<Audit::UserGroupMembershipEvent>(
85 using namespace FlagSetOperator;
105 desc[
"username"] = t->username();
117 desc[
"name"] = t->name();
An optional transaction is an object that behave like an odb::transaction if there is no currently ac...
void commit()
Commit the transaction, if there was no currently active transaction at the time of this object's cre...
Auth::UserId target_user_id_
Set to target_user_->id()
std::shared_ptr< AuditEntry > AuditEntryPtr
@ GROUP_MEMBERSHIP_JOINED
Someone joined the group.
#define ASSERT_LOG(cond, msg)
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.
The Audit namespace provides classes and facilities to keep track of what's happening on the Leosac d...
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)
std::shared_ptr< Group > GroupPtr
virtual IAuditEntryPtr parent() const override
Retrieve the parent of this entry.
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
@ GROUP_MEMBERSHIP_LEFT
Someone left the group.
std::string generate_target_user_description() const
std::shared_ptr< UserGroupMembershipEvent > UserGroupMembershipEventPtr
virtual void target_user(Auth::UserPtr user) override
The user that joined or left the group.