Leosac
0.8.0
Open Source Access Control
|
Base interface for credential objects. More...
#include <ICredential.hpp>
Public Member Functions | |
MAKE_VISITABLE () | |
virtual CredentialId | id () const =0 |
Retrieve the identifier of the credential. More... | |
virtual void | id (const CredentialId &new_id)=0 |
Manually set the identifier of a credential. More... | |
virtual Auth::UserLPtr | owner () const =0 |
Retrieve the owner of the credential. More... | |
virtual Auth::UserId | owner_id () const =0 |
Returns the id of the owner, or 0 if there is no owner (or the owner has no id). More... | |
virtual void | owner (Auth::UserLPtr)=0 |
Set a new owner for the credential. More... | |
virtual std::string | alias () const =0 |
An alias for the credential. More... | |
virtual void | alias (const std::string &)=0 |
Set the alias for the credential. More... | |
virtual std::string | description () const =0 |
An optional description / notes for the credential. More... | |
virtual void | description (const std::string &)=0 |
Set a description for this credential. More... | |
virtual void | validity (const Auth::ValidityInfo &)=0 |
Provide the validity info object to the credential. More... | |
virtual const Auth::ValidityInfo & | validity () const =0 |
Retrieve validity status from the credential. More... | |
virtual std::vector< Tools::ScheduleMappingLWPtr > | lazy_schedules_mapping () const =0 |
Retrieve the lazy_weak_ptr to ScheduleMapping that map this credential. More... | |
virtual size_t | odb_version () const =0 |
Credentials are "optimistic" object (wrt ODB). More... | |
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... | |
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) |
Base interface for credential objects.
Definition at line 35 of file ICredential.hpp.
|
pure virtual |
An alias for the credential.
Implemented in Leosac::Cred::Credential.
|
pure virtual |
Set the alias for the credential.
Implemented in Leosac::Cred::Credential.
|
pure virtual |
An optional description / notes for the credential.
Implemented in Leosac::Cred::Credential.
|
pure virtual |
Set a description for this credential.
Implemented in Leosac::Cred::Credential.
|
pure virtual |
Retrieve the identifier of the credential.
Implemented in Leosac::Cred::Credential.
|
pure virtual |
Manually set the identifier of a credential.
This should generally not be use when database interaction may happen.
Implemented in Leosac::Cred::Credential.
|
pure virtual |
Retrieve the lazy_weak_ptr to ScheduleMapping that map this credential.
Implemented in Leosac::Cred::Credential.
Leosac::Cred::ICredential::MAKE_VISITABLE | ( | ) |
|
pure virtual |
Credentials are "optimistic" object (wrt ODB).
This means they carry a version
field. This method returns the version.
Implemented in Leosac::Cred::Credential.
|
pure virtual |
Retrieve the owner of the credential.
Implemented in Leosac::Cred::Credential.
|
pure virtual |
Set a new owner for the credential.
Implemented in Leosac::Cred::Credential.
|
pure virtual |
Returns the id
of the owner, or 0 if there is no owner (or the owner has no id).
Implemented in Leosac::Cred::Credential.
|
pure virtual |
Retrieve validity status from the credential.
Implemented in Leosac::Cred::Credential.
|
pure virtual |
Provide the validity info object to the credential.
Implemented in Leosac::Cred::Credential.