Leosac  0.8.0
Open Source Access Control
IDoor.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2014-2016 Leosac
3 
4  This file is part of Leosac.
5 
6  Leosac is free software: you can redistribute it and/or modify
7  it under the terms of the GNU Affero General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  Leosac is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU Affero General Public License for more details.
15 
16  You should have received a copy of the GNU Affero General Public License
17  along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
20 #pragma once
21 
22 #include "core/auth/AuthFwd.hpp"
27 #include "tools/db/database.hpp"
28 #include <memory>
29 
30 namespace Leosac
31 {
32 namespace Auth
33 {
34 
38 class IDoor : public std::enable_shared_from_this<IDoor>
39 {
40  public:
41  virtual DoorId id() const = 0;
42 
43  virtual std::string alias() const = 0;
44  virtual std::string description() const = 0;
45 
46  virtual void alias(const std::string &alias) = 0;
47  virtual void description(const std::string &desc) = 0;
48 
49  virtual IAccessPointPtr access_point() const = 0;
50 
51  virtual AccessPointId access_point_id() const = 0;
52 
53  virtual void access_point(IAccessPointPtr) = 0;
54 
59  virtual std::vector<Tools::ScheduleMappingLWPtr> lazy_mapping() const = 0;
60 };
61 }
62 }
database.hpp
AuthFwd.hpp
ValidityInfo.hpp
UserGroupMembership.hpp
Leosac::Auth::IAccessPointPtr
std::shared_ptr< IAccessPoint > IAccessPointPtr
Definition: AuthFwd.hpp:127
Leosac::Auth::IDoor::description
virtual std::string description() const =0
Leosac::Auth::IDoor::lazy_mapping
virtual std::vector< Tools::ScheduleMappingLWPtr > lazy_mapping() const =0
Retrieve the lazy pointers to the ScheduleMapping objects that map this door.
Leosac
This is the header file for a generated source file, GitSHA1.cpp.
Definition: APIStatusCode.hpp:22
Leosac::Auth::DoorId
unsigned long DoorId
Definition: AuthFwd.hpp:107
Leosac::Auth::IDoor::alias
virtual std::string alias() const =0
Leosac::Auth::IDoor::access_point_id
virtual AccessPointId access_point_id() const =0
IAccessProfile.hpp
Leosac::Auth::IDoor::id
virtual DoorId id() const =0
Leosac::Auth::IDoor::access_point
virtual IAccessPointPtr access_point() const =0
CredentialFwd.hpp
Leosac::Auth::IDoor
A door.
Definition: IDoor.hpp:38
Leosac::Auth::AccessPointId
unsigned long AccessPointId
Definition: AuthFwd.hpp:128