hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_get_role_permissions.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_PROTO_GET_ROLE_PERMISSIONS_H
7 #define IROHA_PROTO_GET_ROLE_PERMISSIONS_H
8 
11 #include "queries.pb.h"
12 
13 namespace shared_model {
14  namespace proto {
15  class GetRolePermissions final
16  : public TrivialProto<interface::GetRolePermissions,
17  iroha::protocol::Query> {
18  public:
19  template <typename QueryType>
20  explicit GetRolePermissions(QueryType &&query);
21 
23 
25 
26  const interface::types::RoleIdType &roleId() const override;
27 
28  private:
29  // ------------------------------| fields |-------------------------------
30  const iroha::protocol::GetRolePermissions &role_permissions_;
31  };
32 
33  } // namespace proto
34 } // namespace shared_model
35 
36 #endif // IROHA_PROTO_GET_ROLE_PERMISSIONS_H
GetRolePermissions(QueryType &&query)
Definition: proto_get_role_permissions.cpp:12
const interface::types::RoleIdType & roleId() const override
Definition: proto_get_role_permissions.cpp:29
Definition: proto_get_role_permissions.hpp:15
Definition: trivial_proto.hpp:19
Definition: command_executor.hpp:12
std::string RoleIdType
Type of role (i.e admin, user)
Definition: types.hpp:51