ClickHouse/src/Access/Role.h

27 lines
670 B
C++
Raw Normal View History

2020-02-21 00:17:07 +00:00
#pragma once
#include <Access/IAccessEntity.h>
#include <Access/AccessRights.h>
#include <Access/SettingsProfileElement.h>
2020-02-21 00:17:07 +00:00
#include <Core/UUID.h>
#include <boost/container/flat_set.hpp>
namespace DB
{
struct Role : public IAccessEntity
{
AccessRights access;
AccessRights access_with_grant_option;
boost::container::flat_set<UUID> granted_roles;
boost::container::flat_set<UUID> granted_roles_with_admin_option;
SettingsProfileElements settings;
2020-02-21 00:17:07 +00:00
bool equal(const IAccessEntity & other) const override;
std::shared_ptr<IAccessEntity> clone() const override { return cloneImpl<Role>(); }
};
using RolePtr = std::shared_ptr<const Role>;
}