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

#include "postgres_wsv_command.hpp"

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

Public Member Functions

 PostgresWsvCommand (soci::session &sql)
 
WsvCommandResult insertRole (const shared_model::interface::types::RoleIdType &role_name) override
 
WsvCommandResult insertAccountRole (const shared_model::interface::types::AccountIdType &account_id, const shared_model::interface::types::RoleIdType &role_name) override
 
WsvCommandResult deleteAccountRole (const shared_model::interface::types::AccountIdType &account_id, const shared_model::interface::types::RoleIdType &role_name) override
 
WsvCommandResult insertRolePermissions (const shared_model::interface::types::RoleIdType &role_id, const shared_model::interface::RolePermissionSet &permissions) override
 
WsvCommandResult insertAccount (const shared_model::interface::Account &account) override
 
WsvCommandResult updateAccount (const shared_model::interface::Account &account) override
 
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
 
WsvCommandResult insertAsset (const shared_model::interface::Asset &asset) override
 
WsvCommandResult upsertAccountAsset (const shared_model::interface::AccountAsset &asset) override
 
WsvCommandResult insertSignatory (const shared_model::interface::types::PubkeyType &signatory) override
 
WsvCommandResult insertAccountSignatory (const shared_model::interface::types::AccountIdType &account_id, const shared_model::interface::types::PubkeyType &signatory) override
 
WsvCommandResult deleteAccountSignatory (const shared_model::interface::types::AccountIdType &account_id, const shared_model::interface::types::PubkeyType &signatory) override
 
WsvCommandResult deleteSignatory (const shared_model::interface::types::PubkeyType &signatory) override
 
WsvCommandResult insertPeer (const shared_model::interface::Peer &peer) override
 
WsvCommandResult deletePeer (const shared_model::interface::Peer &peer) override
 
WsvCommandResult insertDomain (const shared_model::interface::Domain &domain) override
 
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
 
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
 
- Public Member Functions inherited from iroha::ametsuchi::WsvCommand
virtual ~WsvCommand ()=default
 

Constructor & Destructor Documentation

iroha::ametsuchi::PostgresWsvCommand::PostgresWsvCommand ( soci::session &  sql)
explicit

Member Function Documentation

WsvCommandResult iroha::ametsuchi::PostgresWsvCommand::deleteAccountGrantablePermission ( const shared_model::interface::types::AccountIdType permittee_account_id,
const shared_model::interface::types::AccountIdType account_id,
shared_model::interface::permissions::Grantable  permission 
)
overridevirtual

Delete grantable permission

Parameters
permittee_account_idto who the grant permission was previously granted
account_idon which account
permissionwhat permission
Returns
WsvCommandResult, which will contain error in case of failure

Implements iroha::ametsuchi::WsvCommand.

Here is the call graph for this function:

WsvCommandResult iroha::ametsuchi::PostgresWsvCommand::deleteAccountRole ( const shared_model::interface::types::AccountIdType account_id,
const shared_model::interface::types::RoleIdType role_name 
)
overridevirtual

Unbind account and role

Parameters
account_id
role_name
Returns
WsvCommandResult, which will contain error in case of failure

Implements iroha::ametsuchi::WsvCommand.

Here is the call graph for this function:

WsvCommandResult iroha::ametsuchi::PostgresWsvCommand::deleteAccountSignatory ( const shared_model::interface::types::AccountIdType account_id,
const shared_model::interface::types::PubkeyType signatory 
)
overridevirtual

Delete account signatory relationship

Parameters
account_id
signatory
Returns
WsvCommandResult, which will contain error in case of failure

Implements iroha::ametsuchi::WsvCommand.

Here is the call graph for this function:

WsvCommandResult iroha::ametsuchi::PostgresWsvCommand::deletePeer ( const shared_model::interface::Peer peer)
overridevirtual
Parameters
peer
Returns
WsvCommandResult, which will contain error in case of failure

Implements iroha::ametsuchi::WsvCommand.

Here is the call graph for this function:

WsvCommandResult iroha::ametsuchi::PostgresWsvCommand::deleteSignatory ( const shared_model::interface::types::PubkeyType signatory)
overridevirtual

Delete signatory

Parameters
signatory
Returns
WsvCommandResult, which will contain error in case of failure

Implements iroha::ametsuchi::WsvCommand.

Here is the call graph for this function:

WsvCommandResult iroha::ametsuchi::PostgresWsvCommand::insertAccount ( const shared_model::interface::Account account)
overridevirtual

git

Parameters
account
Returns
WsvCommandResult, which will contain error in case of failure

Implements iroha::ametsuchi::WsvCommand.

Here is the call graph for this function:

WsvCommandResult iroha::ametsuchi::PostgresWsvCommand::insertAccountGrantablePermission ( const shared_model::interface::types::AccountIdType permittee_account_id,
const shared_model::interface::types::AccountIdType account_id,
shared_model::interface::permissions::Grantable  permission 
)
overridevirtual

Insert grantable permission

Parameters
permittee_account_idto who give the grant permission
account_idon which account
permissionwhat permission
Returns
WsvCommandResult, which will contain error in case of failure

Implements iroha::ametsuchi::WsvCommand.

Here is the call graph for this function:

WsvCommandResult iroha::ametsuchi::PostgresWsvCommand::insertAccountRole ( const shared_model::interface::types::AccountIdType account_id,
const shared_model::interface::types::RoleIdType role_name 
)
overridevirtual

Bind account and role

Parameters
account_id
role_name
Returns
WsvCommandResult, which will contain error in case of failure

Implements iroha::ametsuchi::WsvCommand.

Here is the call graph for this function:

WsvCommandResult iroha::ametsuchi::PostgresWsvCommand::insertAccountSignatory ( const shared_model::interface::types::AccountIdType account_id,
const shared_model::interface::types::PubkeyType signatory 
)
overridevirtual

Insert account signatory relationship

Parameters
account_id
signatory
Returns
WsvCommandResult, which will contain error in case of failure

Implements iroha::ametsuchi::WsvCommand.

Here is the call graph for this function:

WsvCommandResult iroha::ametsuchi::PostgresWsvCommand::insertAsset ( const shared_model::interface::Asset asset)
overridevirtual
Parameters
asset
Returns
WsvCommandResult, which will contain error in case of failure

Implements iroha::ametsuchi::WsvCommand.

Here is the call graph for this function:

WsvCommandResult iroha::ametsuchi::PostgresWsvCommand::insertDomain ( const shared_model::interface::Domain domain)
overridevirtual
Parameters
peer
Returns
WsvCommandResult, which will contain error in case of failure

Implements iroha::ametsuchi::WsvCommand.

Here is the call graph for this function:

WsvCommandResult iroha::ametsuchi::PostgresWsvCommand::insertPeer ( const shared_model::interface::Peer peer)
overridevirtual
Parameters
peer
Returns
WsvCommandResult, which will contain error in case of failure

Implements iroha::ametsuchi::WsvCommand.

Here is the call graph for this function:

WsvCommandResult iroha::ametsuchi::PostgresWsvCommand::insertRole ( const shared_model::interface::types::RoleIdType role_name)
overridevirtual

Insert role entity

Parameters
role_name
Returns
WsvCommandResult, which will contain error in case of failure

Implements iroha::ametsuchi::WsvCommand.

Here is the call graph for this function:

WsvCommandResult iroha::ametsuchi::PostgresWsvCommand::insertRolePermissions ( const shared_model::interface::types::RoleIdType role_id,
const shared_model::interface::RolePermissionSet permissions 
)
overridevirtual

Bind role and permissions

Parameters
role_id
permissions
Returns
WsvCommandResult, which will contain error in case of failure

Implements iroha::ametsuchi::WsvCommand.

Here is the call graph for this function:

WsvCommandResult iroha::ametsuchi::PostgresWsvCommand::insertSignatory ( const shared_model::interface::types::PubkeyType signatory)
overridevirtual
Parameters
signatory
Returns
WsvCommandResult, which will contain error in case of failure

Implements iroha::ametsuchi::WsvCommand.

Here is the call graph for this function:

WsvCommandResult iroha::ametsuchi::PostgresWsvCommand::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 
)
overridevirtual
Parameters
account_idaccount in which update key value
creator_account_idcreator's account who wants to update account_id
key- key to set
val- value of the key/value pair
Returns
WsvCommandResult, which will contain error in case of failure

Implements iroha::ametsuchi::WsvCommand.

Here is the call graph for this function:

WsvCommandResult iroha::ametsuchi::PostgresWsvCommand::updateAccount ( const shared_model::interface::Account account)
overridevirtual
Parameters
account
Returns
WsvCommandResult, which will contain error in case of failure

Implements iroha::ametsuchi::WsvCommand.

Here is the call graph for this function:

WsvCommandResult iroha::ametsuchi::PostgresWsvCommand::upsertAccountAsset ( const shared_model::interface::AccountAsset asset)
overridevirtual

Update or insert account asset

Parameters
asset
Returns
WsvCommandResult, which will contain error in case of failure

Implements iroha::ametsuchi::WsvCommand.

Here is the call graph for this function:


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