2018-11-03 17:12:20 +01:00
|
|
|
#ifndef PERMISSIONSDAO_H
|
|
|
|
#define PERMISSIONSDAO_H
|
2021-10-25 13:30:46 +02:00
|
|
|
#include <optional>
|
2018-11-03 17:12:20 +01:00
|
|
|
#include "../permissions.h"
|
|
|
|
#include "../user.h"
|
|
|
|
class PermissionsDao
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
PermissionsDao();
|
2019-05-03 16:00:36 +02:00
|
|
|
virtual std::optional<Permissions> find(std::string pagename, std::string username) = 0;
|
2021-10-05 21:51:31 +02:00
|
|
|
virtual void save(std::string pagename, std::string username, Permissions perms) = 0;
|
2023-08-11 09:21:02 +02:00
|
|
|
virtual void clearForPage(std::string pagename) = 0;
|
|
|
|
|
2022-10-24 15:16:59 +02:00
|
|
|
virtual ~PermissionsDao() = default;
|
2018-11-03 17:12:20 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // PERMISSIONSDAO_H
|