hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
postgres_wsv_command.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_POSTGRES_WSV_COMMAND_HPP
7 #define IROHA_POSTGRES_WSV_COMMAND_HPP
8 
10 
12 
13 namespace iroha {
14  namespace ametsuchi {
15 
16  class PostgresWsvCommand : public WsvCommand {
17  public:
18  explicit PostgresWsvCommand(soci::session &sql);
20  const shared_model::interface::types::RoleIdType &role_name) override;
21 
24  const shared_model::interface::types::RoleIdType &role_name) override;
27  const shared_model::interface::types::RoleIdType &role_name) override;
28 
32  override;
33 
35  const shared_model::interface::Account &account) override;
37  const shared_model::interface::Account &account) override;
41  &creator_account_id,
42  const std::string &key,
43  const std::string &val) override;
45  const shared_model::interface::Asset &asset) override;
47  const shared_model::interface::AccountAsset &asset) override;
49  const shared_model::interface::types::PubkeyType &signatory) override;
52  const shared_model::interface::types::PubkeyType &signatory) override;
55  const shared_model::interface::types::PubkeyType &signatory) override;
57  const shared_model::interface::types::PubkeyType &signatory) override;
59  const shared_model::interface::Peer &peer) override;
61  const shared_model::interface::Peer &peer) override;
63  const shared_model::interface::Domain &domain) override;
66  &permittee_account_id,
69 
72  &permittee_account_id,
75 
76  private:
77  soci::session &sql_;
78  };
79  } // namespace ametsuchi
80 } // namespace iroha
81 
82 #endif // IROHA_POSTGRES_WSV_COMMAND_HPP
Definition: account.hpp:20
PostgresWsvCommand(soci::session &sql)
Definition: postgres_wsv_command.cpp:33
Grantable
Definition: permissions.hpp:66
WsvCommandResult setAccountKV(const shared_model::interface::types::AccountIdType &account_id, const shared_model::interface::types::AccountIdType &creator_account_id, const std::string &key, const std::string &val) override
Definition: postgres_wsv_command.cpp:379
Definition: peer.hpp:18
WsvCommandResult insertAsset(const shared_model::interface::Asset &asset) override
Definition: postgres_wsv_command.cpp:201
Definition: permissions.hpp:92
Definition: domain.hpp:19
WsvCommandResult insertSignatory(const shared_model::interface::types::PubkeyType &signatory) override
Definition: postgres_wsv_command.cpp:243
WsvCommandResult updateAccount(const shared_model::interface::Account &account) override
Definition: postgres_wsv_command.cpp:362
WsvCommandResult deleteAccountRole(const shared_model::interface::types::AccountIdType &account_id, const shared_model::interface::types::RoleIdType &role_name) override
Definition: postgres_wsv_command.cpp:64
expected::Result< void, WsvError > WsvCommandResult
Definition: wsv_command.hpp:43
WsvCommandResult upsertAccountAsset(const shared_model::interface::AccountAsset &asset) override
Definition: postgres_wsv_command.cpp:220
WsvCommandResult deleteSignatory(const shared_model::interface::types::PubkeyType &signatory) override
Definition: postgres_wsv_command.cpp:295
Definition: wsv_command.hpp:48
WsvCommandResult insertAccountSignatory(const shared_model::interface::types::AccountIdType &account_id, const shared_model::interface::types::PubkeyType &signatory) override
Definition: postgres_wsv_command.cpp:259
Definition: block_query.hpp:16
std::string AccountIdType
Type of account id.
Definition: types.hpp:35
WsvCommandResult insertAccountRole(const shared_model::interface::types::AccountIdType &account_id, const shared_model::interface::types::RoleIdType &role_name) override
Definition: postgres_wsv_command.cpp:46
WsvCommandResult insertAccount(const shared_model::interface::Account &account) override
Definition: postgres_wsv_command.cpp:177
Definition: asset.hpp:19
WsvCommandResult deleteAccountSignatory(const shared_model::interface::types::AccountIdType &account_id, const shared_model::interface::types::PubkeyType &signatory) override
Definition: postgres_wsv_command.cpp:277
WsvCommandResult insertRole(const shared_model::interface::types::RoleIdType &role_name) override
Definition: postgres_wsv_command.cpp:35
WsvCommandResult deleteAccountGrantablePermission(const shared_model::interface::types::AccountIdType &permittee_account_id, const shared_model::interface::types::AccountIdType &account_id, shared_model::interface::permissions::Grantable permission) override
Definition: postgres_wsv_command.cpp:143
Definition: postgres_wsv_command.hpp:16
Definition: public_key.hpp:16
WsvCommandResult insertDomain(const shared_model::interface::Domain &domain) override
Definition: postgres_wsv_command.cpp:345
WsvCommandResult deletePeer(const shared_model::interface::Peer &peer) override
Definition: postgres_wsv_command.cpp:329
WsvCommandResult insertPeer(const shared_model::interface::Peer &peer) override
Definition: postgres_wsv_command.cpp:313
WsvCommandResult insertRolePermissions(const shared_model::interface::types::RoleIdType &role_id, const shared_model::interface::RolePermissionSet &permissions) override
Definition: postgres_wsv_command.cpp:83
Definition: account_asset.hpp:20
std::string RoleIdType
Type of role (i.e admin, user)
Definition: types.hpp:47
WsvCommandResult insertAccountGrantablePermission(const shared_model::interface::types::AccountIdType &permittee_account_id, const shared_model::interface::types::AccountIdType &account_id, shared_model::interface::permissions::Grantable permission) override
Definition: postgres_wsv_command.cpp:109