Leosac
0.8.0
Open Source Access Control
|
Credentials composed of an RFIDCard and a PIN code. More...
#include <RFIDCardPin.hpp>
Public Member Functions | |
MAKE_VISITABLE_FALLBACK (ICredential) | |
RFIDCardPin (RFIDCardPtr card, PinCodePtr pin) | |
Create a RFIDCardPin object and assign RFIDCard and PinCode object to the RFIDCardPin credential. More... | |
RFIDCardPin () | |
Create an RFIDCardPin object with default initialized RFIDCard and PinCode object. More... | |
const RFIDCard & | card () const |
const PinCode & | pin () const |
RFIDCard & | card () |
PinCode & | pin () |
Public Member Functions inherited from Leosac::Cred::Credential | |
Credential () | |
virtual Auth::UserLPtr | owner () const override |
Retrieve the owner of the credential. More... | |
virtual void | owner (Auth::UserLPtr ptr) override |
Set a new owner for the credential. More... | |
virtual std::string | alias () const override |
An alias for the credential. More... | |
virtual CredentialId | id () const override |
Retrieve the identifier of the credential. More... | |
virtual void | id (const CredentialId &new_id) override |
Manually set the identifier of a credential. More... | |
virtual size_t | odb_version () const override |
Credentials are "optimistic" object (wrt ODB). More... | |
virtual Auth::UserId | owner_id () const override |
Returns the id of the owner, or 0 if there is no owner (or the owner has no id). More... | |
virtual void | alias (const std::string &id) override |
Set the alias for the credential. More... | |
virtual std::string | description () const override |
An optional description / notes for the credential. More... | |
virtual void | description (const std::string &str) override |
Set a description for this credential. More... | |
virtual void | validity (const Auth::ValidityInfo &info) override |
Provide the validity info object to the credential. More... | |
virtual const Auth::ValidityInfo & | validity () const override |
Retrieve validity status from the credential. More... | |
virtual std::vector< Tools::ScheduleMappingLWPtr > | lazy_schedules_mapping () const override |
Retrieve the lazy_weak_ptr to ScheduleMapping that map this credential. More... | |
void | schedule_mapping_added (const Tools::ScheduleMappingPtr &sched_mapping) |
The credential has been mapped by a schedule. More... | |
Public Member Functions inherited from Leosac::Cred::ICredential | |
MAKE_VISITABLE () | |
Public Member Functions inherited from Leosac::Tools::IVisitable | |
virtual void | accept (::Leosac::Tools::BaseVisitor &)=0 |
Accept a visitor that may mutate this . More... | |
virtual void | accept (::Leosac::Tools::BaseVisitor &) const =0 |
Accept a visitor that will not mutate this . More... | |
Protected Attributes | |
RFIDCardPtr | card_ |
PinCodePtr | pin_ |
Protected Attributes inherited from Leosac::Cred::Credential | |
CredentialId | id_ |
Auth::UserLPtr | owner_ |
std::string | alias_ |
std::string | description_ |
Auth::ValidityInfo | validity_ |
std::vector< Tools::ScheduleMappingLWPtr > | schedules_mapping_ |
size_t | odb_version_ |
Additional Inherited Members | |
Static Protected Member Functions inherited from Leosac::Tools::IVisitable | |
template<class T > | |
static bool | visitor_dispatch (T &visited, BaseVisitor &visitor, bool abort_on_failure) |
Credentials composed of an RFIDCard and a PIN code.
Todo: Consider making this class database aware so we can configure those type of credential on the Web interface.
Definition at line 37 of file RFIDCardPin.hpp.
Leosac::Cred::RFIDCardPin::RFIDCardPin | ( | RFIDCardPtr | card, |
PinCodePtr | pin | ||
) |
Create a RFIDCardPin object and assign RFIDCard and PinCode object to the RFIDCardPin credential.
Definition at line 33 of file RFIDCardPin.cpp.
Leosac::Cred::RFIDCardPin::RFIDCardPin | ( | ) |
Create an RFIDCardPin object with default initialized RFIDCard and PinCode object.
Definition at line 28 of file RFIDCardPin.cpp.
RFIDCard& Leosac::Cred::RFIDCardPin::card | ( | ) |
RFIDCard & Leosac::Cred::RFIDCardPin::card | ( | ) | const |
Definition at line 46 of file RFIDCardPin.cpp.
Leosac::Cred::RFIDCardPin::MAKE_VISITABLE_FALLBACK | ( | ICredential | ) |
PinCode& Leosac::Cred::RFIDCardPin::pin | ( | ) |
PinCode & Leosac::Cred::RFIDCardPin::pin | ( | ) | const |
Definition at line 41 of file RFIDCardPin.cpp.
|
protected |
Definition at line 61 of file RFIDCardPin.hpp.
|
protected |
Definition at line 62 of file RFIDCardPin.hpp.