42 virtual bool isAccessGranted(
const std::chrono::system_clock::time_point &date,
56 virtual const std::map<std::string, std::vector<Tools::IScheduleCPtr>> &
68 std::map<std::string, std::vector<Tools::IScheduleCPtr>>
schedules_;
std::shared_ptr< AuthTarget > AuthTargetPtr
virtual const std::map< std::string, std::vector< Tools::IScheduleCPtr > > & schedules() const
Returns the map of schedule for each target (except the default target)
This is the header file for a generated source file, GitSHA1.cpp.
Holds information about access permission.
std::vector< Tools::IScheduleCPtr > default_schedule_
Schedule for default target.
virtual bool isAccessGranted(const std::chrono::system_clock::time_point &date, AuthTargetPtr target) override
Does the profile allow access to the user.
Concrete implementation of a simple access control class.
std::map< std::string, std::vector< Tools::IScheduleCPtr > > schedules_
Map target name to target's schedules.
virtual size_t schedule_count() const override
Returns the number of schedule associated with the profile.
virtual void addAccessSchedule(AuthTargetPtr target, const Tools::IScheduleCPtr &sched)
Adds a schedule where access to a given target is allowed.
virtual const std::vector< Tools::IScheduleCPtr > & defaultSchedules() const