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 CopyableProto<interface::GetRolePermissions,
17  iroha::protocol::Query,
18  GetRolePermissions> {
19  public:
20  template <typename QueryType>
21  explicit GetRolePermissions(QueryType &&query);
22 
24 
26 
27  const interface::types::RoleIdType &roleId() const override;
28 
29  private:
30  // ------------------------------| fields |-------------------------------
31  const iroha::protocol::GetRolePermissions &role_permissions_;
32  };
33 
34  } // namespace proto
35 } // namespace shared_model
36 
37 #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: command_executor.hpp:12
Definition: trivial_proto.hpp:45
std::string RoleIdType
Type of role (i.e admin, user)
Definition: types.hpp:51