Leosac  0.8.0
Open Source Access Control
Leosac::Auth::IAccessProfile Class Referenceabstract

Holds information about access permission. More...

#include <IAccessProfile.hpp>

+ Inheritance diagram for Leosac::Auth::IAccessProfile:

Public Member Functions

virtual bool isAccessGranted (const std::chrono::system_clock::time_point &date, AuthTargetPtr target)=0
 Does the profile allow access to the user. More...
 
virtual size_t schedule_count () const =0
 

Detailed Description

Holds information about access permission.

Definition at line 36 of file IAccessProfile.hpp.

Member Function Documentation

◆ isAccessGranted()

virtual bool Leosac::Auth::IAccessProfile::isAccessGranted ( const std::chrono::system_clock::time_point &  date,
AuthTargetPtr  target 
)
pure virtual

Does the profile allow access to the user.

Parameters
datethe time point at which we try to get access.
targetthe door we want to open.
Note
Check for defaults permissions then door-specific permissions.

Implemented in Leosac::Auth::SimpleAccessProfile.

◆ schedule_count()

virtual size_t Leosac::Auth::IAccessProfile::schedule_count ( ) const
pure virtual

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