Leosac  0.8.0
Open Source Access Control
Leosac::Auth::AccessPointUpdate Class Reference

#include <AccessPointUpdate.hpp>

+ Inheritance diagram for Leosac::Auth::AccessPointUpdate:
+ Collaboration diagram for Leosac::Auth::AccessPointUpdate:

Public Member Functions

 AccessPointUpdate ()
 Default constructor for the AccessPointUpdate object. More...
 
virtual ~AccessPointUpdate ()=default
 
Auth::AccessPointId access_point_id () const
 
Auth::AccessPointLWPtr access_point () const
 
void access_point (Auth::AccessPointPtr ap)
 Set the access point owning the updates. More...
 
- Public Member Functions inherited from Leosac::update::Update
 Update ()
 
virtual UpdateId id () const override
 
virtual const TimePointgenerated_at () const override
 
virtual Status status () const override
 
virtual void status (Status st) override
 
virtual const TimePointstatus_updated_at () const override
 
virtual void set_checkpoint (Audit::AuditEntryPtr) override
 Set the checkpoint for the update object. More...
 
virtual Audit::AuditEntryId get_checkpoint () const override
 
virtual const std::string & source_module () const override
 
virtual void source_module (const std::string &s) override
 
virtual const std::string & description () const override
 
virtual void description (const std::string &d) override
 
- Public Member Functions inherited from Leosac::update::IUpdate
virtual ~IUpdate ()=default
 

Public Attributes

Auth::AccessPointLWPtr access_point_
 The access point targeted by this update. More...
 

Friends

class odb::access
 

Additional Inherited Members

- Public Types inherited from Leosac::update::IUpdate
using TimePoint = std::chrono::system_clock::time_point
 

Detailed Description

Definition at line 29 of file AccessPointUpdate.hpp.

Constructor & Destructor Documentation

◆ AccessPointUpdate()

Leosac::Auth::AccessPointUpdate::AccessPointUpdate ( )

Default constructor for the AccessPointUpdate object.

The update's status_ defaults to ST_PENDING.

Definition at line 28 of file AccessPointUpdate.cpp.

◆ ~AccessPointUpdate()

virtual Leosac::Auth::AccessPointUpdate::~AccessPointUpdate ( )
virtualdefault

Member Function Documentation

◆ access_point() [1/2]

AccessPointLWPtr Leosac::Auth::AccessPointUpdate::access_point ( ) const

Definition at line 40 of file AccessPointUpdate.cpp.

◆ access_point() [2/2]

void Leosac::Auth::AccessPointUpdate::access_point ( Auth::AccessPointPtr  ap)

Set the access point owning the updates.

Note
No database operation are performed here. It is the caller responsibility to persist any change.

Definition at line 45 of file AccessPointUpdate.cpp.

◆ access_point_id()

Auth::AccessPointId Leosac::Auth::AccessPointUpdate::access_point_id ( ) const

Definition at line 33 of file AccessPointUpdate.cpp.

Friends And Related Function Documentation

◆ odb::access

friend class odb::access
friend

Definition at line 59 of file AccessPointUpdate.hpp.

Member Data Documentation

◆ access_point_

Auth::AccessPointLWPtr Leosac::Auth::AccessPointUpdate::access_point_

The access point targeted by this update.

Definition at line 57 of file AccessPointUpdate.hpp.


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