Leosac  0.8.0
Open Source Access Control
Leosac::Audit::Factory Class Reference

Provide static methods to instanciate various Audit objects. More...

#include <AuditFactory.hpp>

Static Public Member Functions

static IUserEventPtr UserEvent (const DBPtr &database, Auth::UserPtr target_user, IAuditEntryPtr parent)
 
static IGroupEventPtr GroupEvent (const DBPtr &database, Auth::GroupPtr target_group, IAuditEntryPtr parent)
 
static IWSAPICallPtr WSAPICall (const DBPtr &database)
 
static IUserGroupMembershipEventPtr UserGroupMembershipEvent (const DBPtr &database, Auth::GroupPtr target_group, Auth::UserPtr target_user, IAuditEntryPtr parent)
 
static ICredentialEventPtr CredentialEventPtr (const DBPtr &database, Cred::ICredentialPtr target_cred, IAuditEntryPtr parent)
 
static IScheduleEventPtr ScheduleEvent (const DBPtr &database, Tools::ISchedulePtr target_sched, IAuditEntryPtr parent)
 
static IDoorEventPtr DoorEvent (const DBPtr &database, Auth::IDoorPtr target_door, IAuditEntryPtr parent)
 
static IAccessPointEventPtr AccessPointEvent (const DBPtr &database, Auth::IAccessPointPtr target_ap, IAuditEntryPtr parent)
 
static IUpdateEventPtr UpdateEvent (const DBPtr &database, update::IUpdatePtr target_update, IAuditEntryPtr parent)
 
static IZoneEventPtr ZoneEvent (const DBPtr &database, Auth::IZonePtr target_zone, IAuditEntryPtr parent)
 

Detailed Description

Provide static methods to instanciate various Audit objects.

This is the class to use to instanciate Audit object. All other means to construct an instance are private to the class. This Factory is friend with audit objects providing the implementation of the various Audit interfaces.

Basically, methods in this class forward to private factory function in each Audit object.

Note
The naming convention differs for those methods: each method is named after the type of audit object it instanciates.

Definition at line 46 of file AuditFactory.hpp.

Member Function Documentation

◆ AccessPointEvent()

IAccessPointEventPtr Factory::AccessPointEvent ( const DBPtr database,
Auth::IAccessPointPtr  target_ap,
IAuditEntryPtr  parent 
)
static

Definition at line 139 of file AuditFactory.cpp.

◆ CredentialEventPtr()

ICredentialEventPtr Factory::CredentialEventPtr ( const DBPtr database,
Cred::ICredentialPtr  target_cred,
IAuditEntryPtr  parent 
)
static

Definition at line 98 of file AuditFactory.cpp.

◆ DoorEvent()

IDoorEventPtr Factory::DoorEvent ( const DBPtr database,
Auth::IDoorPtr  target_door,
IAuditEntryPtr  parent 
)
static

Definition at line 124 of file AuditFactory.cpp.

◆ GroupEvent()

IGroupEventPtr Factory::GroupEvent ( const DBPtr database,
Auth::GroupPtr  target_group,
IAuditEntryPtr  parent 
)
static

Definition at line 58 of file AuditFactory.cpp.

◆ ScheduleEvent()

IScheduleEventPtr Factory::ScheduleEvent ( const DBPtr database,
Tools::ISchedulePtr  target_sched,
IAuditEntryPtr  parent 
)
static

Definition at line 112 of file AuditFactory.cpp.

◆ UpdateEvent()

IUpdateEventPtr Factory::UpdateEvent ( const DBPtr database,
update::IUpdatePtr  target_update,
IAuditEntryPtr  parent 
)
static

Definition at line 155 of file AuditFactory.cpp.

◆ UserEvent()

IUserEventPtr Factory::UserEvent ( const DBPtr database,
Auth::UserPtr  target_user,
IAuditEntryPtr  parent 
)
static

Definition at line 43 of file AuditFactory.cpp.

◆ UserGroupMembershipEvent()

IUserGroupMembershipEventPtr Factory::UserGroupMembershipEvent ( const DBPtr database,
Auth::GroupPtr  target_group,
Auth::UserPtr  target_user,
IAuditEntryPtr  parent 
)
static

Definition at line 82 of file AuditFactory.cpp.

◆ WSAPICall()

IWSAPICallPtr Factory::WSAPICall ( const DBPtr database)
static

Definition at line 74 of file AuditFactory.cpp.

◆ ZoneEvent()

IZoneEventPtr Factory::ZoneEvent ( const DBPtr database,
Auth::IZonePtr  target_zone,
IAuditEntryPtr  parent 
)
static

Definition at line 171 of file AuditFactory.cpp.


The documentation for this class was generated from the following files: