ClickHouse/src/Access/Role.h

26 lines
611 B
C++
Raw Normal View History

2020-02-21 00:17:07 +00:00
#pragma once
#include <Access/IAccessEntity.h>
#include <Access/GrantedAccess.h>
#include <Access/GrantedRoles.h>
#include <Access/SettingsProfileElement.h>
2020-02-21 00:17:07 +00:00
namespace DB
{
struct Role : public IAccessEntity
{
GrantedAccess access;
GrantedRoles granted_roles;
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>(); }
static constexpr const Type TYPE = Type::ROLE;
Type getType() const override { return TYPE; }
2020-02-21 00:17:07 +00:00
};
using RolePtr = std::shared_ptr<const Role>;
}