hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
iroha::ametsuchi::PostgresQueryExecutorVisitor Class Reference

#include "postgres_query_executor.hpp"

Inheritance diagram for iroha::ametsuchi::PostgresQueryExecutorVisitor:
Inheritance graph
Collaboration diagram for iroha::ametsuchi::PostgresQueryExecutorVisitor:
Collaboration graph

Public Member Functions

 PostgresQueryExecutorVisitor (soci::session &sql, KeyValueStorage &block_store, std::shared_ptr< PendingTransactionStorage > pending_txs_storage, std::shared_ptr< shared_model::interface::BlockJsonConverter > converter, std::shared_ptr< shared_model::interface::QueryResponseFactory > response_factory, std::shared_ptr< shared_model::interface::PermissionToString > perm_converter, logger::LoggerPtr log)
 
void setCreatorId (const shared_model::interface::types::AccountIdType &creator_id)
 
void setQueryHash (const shared_model::crypto::Hash &query_hash)
 
bool hasAccountRolePermission (shared_model::interface::permissions::Role permission, const std::string &account_id) const
 
QueryExecutorResult operator() (const shared_model::interface::GetAccount &q)
 
QueryExecutorResult operator() (const shared_model::interface::GetBlock &q)
 
QueryExecutorResult operator() (const shared_model::interface::GetSignatories &q)
 
QueryExecutorResult operator() (const shared_model::interface::GetAccountTransactions &q)
 
QueryExecutorResult operator() (const shared_model::interface::GetTransactions &q)
 
QueryExecutorResult operator() (const shared_model::interface::GetAccountAssetTransactions &q)
 
QueryExecutorResult operator() (const shared_model::interface::GetAccountAssets &q)
 
QueryExecutorResult operator() (const shared_model::interface::GetAccountDetail &q)
 
QueryExecutorResult operator() (const shared_model::interface::GetRoles &q)
 
QueryExecutorResult operator() (const shared_model::interface::GetRolePermissions &q)
 
QueryExecutorResult operator() (const shared_model::interface::GetAssetInfo &q)
 
QueryExecutorResult operator() (const shared_model::interface::GetPendingTransactions &q)
 

Constructor & Destructor Documentation

iroha::ametsuchi::PostgresQueryExecutorVisitor::PostgresQueryExecutorVisitor ( soci::session &  sql,
KeyValueStorage block_store,
std::shared_ptr< PendingTransactionStorage pending_txs_storage,
std::shared_ptr< shared_model::interface::BlockJsonConverter converter,
std::shared_ptr< shared_model::interface::QueryResponseFactory response_factory,
std::shared_ptr< shared_model::interface::PermissionToString perm_converter,
logger::LoggerPtr  log 
)

Member Function Documentation

bool iroha::ametsuchi::PostgresQueryExecutorVisitor::hasAccountRolePermission ( shared_model::interface::permissions::Role  permission,
const std::string &  account_id 
) const

Check that account has a specific role permission

Parameters
permissionto be in that account
account_idof account to be checked
Returns
true, if account has that permission, false otherwise

Here is the caller graph for this function:

QueryExecutorResult iroha::ametsuchi::PostgresQueryExecutorVisitor::operator() ( const shared_model::interface::GetAccount q)

Here is the call graph for this function:

QueryExecutorResult iroha::ametsuchi::PostgresQueryExecutorVisitor::operator() ( const shared_model::interface::GetBlock q)

Here is the call graph for this function:

QueryExecutorResult iroha::ametsuchi::PostgresQueryExecutorVisitor::operator() ( const shared_model::interface::GetSignatories q)

Here is the call graph for this function:

QueryExecutorResult iroha::ametsuchi::PostgresQueryExecutorVisitor::operator() ( const shared_model::interface::GetAccountTransactions q)

Here is the call graph for this function:

QueryExecutorResult iroha::ametsuchi::PostgresQueryExecutorVisitor::operator() ( const shared_model::interface::GetTransactions q)

Here is the call graph for this function:

QueryExecutorResult iroha::ametsuchi::PostgresQueryExecutorVisitor::operator() ( const shared_model::interface::GetAccountAssetTransactions q)

Here is the call graph for this function:

QueryExecutorResult iroha::ametsuchi::PostgresQueryExecutorVisitor::operator() ( const shared_model::interface::GetAccountAssets q)

Here is the call graph for this function:

QueryExecutorResult iroha::ametsuchi::PostgresQueryExecutorVisitor::operator() ( const shared_model::interface::GetAccountDetail q)

Here is the call graph for this function:

QueryExecutorResult iroha::ametsuchi::PostgresQueryExecutorVisitor::operator() ( const shared_model::interface::GetRoles q)

Here is the call graph for this function:

QueryExecutorResult iroha::ametsuchi::PostgresQueryExecutorVisitor::operator() ( const shared_model::interface::GetRolePermissions q)

Here is the call graph for this function:

QueryExecutorResult iroha::ametsuchi::PostgresQueryExecutorVisitor::operator() ( const shared_model::interface::GetAssetInfo q)

Here is the call graph for this function:

QueryExecutorResult iroha::ametsuchi::PostgresQueryExecutorVisitor::operator() ( const shared_model::interface::GetPendingTransactions q)

Here is the call graph for this function:

void iroha::ametsuchi::PostgresQueryExecutorVisitor::setCreatorId ( const shared_model::interface::types::AccountIdType creator_id)

Here is the caller graph for this function:

void iroha::ametsuchi::PostgresQueryExecutorVisitor::setQueryHash ( const shared_model::crypto::Hash query_hash)

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following files: