Leosac
0.8.0
Open Source Access Control
|
Represent an update. More...
#include <Update.hpp>
Public Member Functions | |
Update () | |
virtual UpdateId | id () const override |
virtual const TimePoint & | generated_at () const override |
virtual Status | status () const override |
virtual void | status (Status st) override |
virtual const TimePoint & | status_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 |
Private Attributes | |
UpdateId | id_ |
TimePoint | generated_at_ |
Audit::AuditTracker | checkpoint_ |
Tracks the audit entry that represents the point in time of this update. More... | |
TimePoint | status_updated_at_ |
Last timepoint when status was updated. More... | |
std::string | source_module_ |
The name (as returned by get_module_name()) that created this update. More... | |
std::string | description_ |
Optional description for the update. More... | |
Status | status_ |
const size_t | odb_version_ |
Friends | |
class | odb::access |
Additional Inherited Members | |
Public Types inherited from Leosac::update::IUpdate | |
using | TimePoint = std::chrono::system_clock::time_point |
Represent an update.
This is a base class for updates. It is intended to be extended by concrete update type, such as hardware update.
Definition at line 39 of file Update.hpp.
Leosac::update::Update::Update | ( | ) |
Definition at line 27 of file Update.cpp.
|
overridevirtual |
Implements Leosac::update::IUpdate.
Definition at line 82 of file Update.cpp.
|
overridevirtual |
Implements Leosac::update::IUpdate.
Definition at line 86 of file Update.cpp.
|
overridevirtual |
Implements Leosac::update::IUpdate.
Definition at line 40 of file Update.cpp.
|
overridevirtual |
Implements Leosac::update::IUpdate.
Definition at line 67 of file Update.cpp.
|
overridevirtual |
Implements Leosac::update::IUpdate.
Definition at line 35 of file Update.cpp.
|
overridevirtual |
Set the checkpoint for the update object.
The checkpoint represents the timepoint at which this update apply.
Implements Leosac::update::IUpdate.
Definition at line 62 of file Update.cpp.
|
overridevirtual |
Implements Leosac::update::IUpdate.
Definition at line 72 of file Update.cpp.
|
overridevirtual |
Implements Leosac::update::IUpdate.
Definition at line 77 of file Update.cpp.
|
overridevirtual |
Implements Leosac::update::IUpdate.
Definition at line 46 of file Update.cpp.
|
overridevirtual |
Implements Leosac::update::IUpdate.
Definition at line 51 of file Update.cpp.
|
overridevirtual |
Implements Leosac::update::IUpdate.
Definition at line 57 of file Update.cpp.
|
friend |
Definition at line 101 of file Update.hpp.
|
private |
Tracks the audit entry that represents the point in time of this update.
Definition at line 74 of file Update.hpp.
|
private |
Optional description for the update.
Definition at line 94 of file Update.hpp.
|
private |
Definition at line 68 of file Update.hpp.
|
private |
Definition at line 66 of file Update.hpp.
|
private |
Definition at line 99 of file Update.hpp.
|
private |
The name (as returned by get_module_name()) that created this update.
Should be "LEOSAC" for update generated by the core system.
Definition at line 89 of file Update.hpp.
|
private |
Definition at line 96 of file Update.hpp.
|
private |
Last timepoint when status was updated.
Normally we should only change status once.
Definition at line 81 of file Update.hpp.