hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_create_role.hpp
Go to the documentation of this file.
1 
5 #ifndef IROHA_PROTO_CREATE_ROLE_HPP
6 #define IROHA_PROTO_CREATE_ROLE_HPP
7 
9 
10 #include "commands.pb.h"
12 
13 namespace shared_model {
14  namespace proto {
15  class CreateRole final : public interface::CreateRole {
16  public:
17  explicit CreateRole(iroha::protocol::Command &command);
18 
19  const interface::types::RoleIdType &roleName() const override;
20 
21  const interface::RolePermissionSet &rolePermissions() const override;
22 
23  std::string toString() const override;
24 
25  private:
26  const iroha::protocol::CreateRole &create_role_;
27 
28  const interface::RolePermissionSet role_permissions_;
29  };
30  } // namespace proto
31 } // namespace shared_model
32 
33 #endif // IROHA_PROTO_CREATE_ROLE_HPP
Definition: proto_create_role.hpp:15
Definition: permissions.hpp:92
const interface::RolePermissionSet & rolePermissions() const override
Definition: proto_create_role.cpp:29
const interface::types::RoleIdType & roleName() const override
Definition: proto_create_role.cpp:25
std::string toString() const override
Definition: proto_create_role.cpp:33
Definition: create_role.hpp:19
Definition: command_executor.hpp:12
std::string RoleIdType
Type of role (i.e admin, user)
Definition: types.hpp:51
CreateRole(iroha::protocol::Command &command)
Definition: proto_create_role.cpp:14