21 #include "core/auth/User_odb.h"
virtual std::string description() const override
An optional description / notes for the credential.
virtual size_t odb_version() const override
Credentials are "optimistic" object (wrt ODB).
This is the header file for a generated source file, GitSHA1.cpp.
virtual std::string alias() const override
An alias for the credential.
virtual std::vector< Tools::ScheduleMappingLWPtr > lazy_schedules_mapping() const override
Retrieve the lazy_weak_ptr to ScheduleMapping that map this credential.
virtual CredentialId id() const override
Retrieve the identifier of the credential.
virtual const Auth::ValidityInfo & validity() const override
Retrieve validity status from the credential.
odb::lazy_shared_ptr< User > UserLPtr
A simple class that stores (and can be queried for) the validity of some objects. ...
static void validate_alias(const std::string &alias)
void schedule_mapping_added(const Tools::ScheduleMappingPtr &sched_mapping)
The credential has been mapped by a schedule.
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).
std::vector< Tools::ScheduleMappingLWPtr > schedules_mapping_
Auth::ValidityInfo validity_
unsigned long CredentialId
virtual Auth::UserLPtr owner() const override
Retrieve the owner of the credential.