hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
proto_create_role.hpp
Go to the documentation of this file.
1 
5 #ifndef IROHA_PROTO_CREATE_ROLE_HPP
6 #define IROHA_PROTO_CREATE_ROLE_HPP
7 
9 #include "commands.pb.h"
12 
13 namespace shared_model {
14  namespace proto {
15  class CreateRole final : public CopyableProto<interface::CreateRole,
16  iroha::protocol::Command,
17  CreateRole> {
18  public:
19  template <typename CommandType>
20  explicit CreateRole(CommandType &&command);
21 
22  CreateRole(const CreateRole &o);
23 
24  CreateRole(CreateRole &&o) noexcept;
25 
26  const interface::types::RoleIdType &roleName() const override;
27 
28  const interface::RolePermissionSet &rolePermissions() const override;
29 
30  std::string toString() const override;
31 
32  private:
33  const iroha::protocol::CreateRole &create_role_;
34 
35  const interface::RolePermissionSet role_permissions_;
36  };
37  } // namespace proto
38 } // namespace shared_model
39 
40 #endif // IROHA_PROTO_CREATE_ROLE_HPP
Definition: proto_create_role.hpp:15
Definition: permissions.hpp:92
const interface::RolePermissionSet & rolePermissions() const override
Definition: proto_create_role.cpp:40
string(REPLACE".""/"CMAKE_SWIG_OUTDIR ${SWIG_JAVA_PKG}) else() set(CMAKE_SWIG_FLAGS"") endif() myswig_add_library(irohajava LANGUAGE java SOURCES bindings.i) unset(CMAKE_SWIG_FLAGS) swig_link_libraries(irohajava $
Definition: CMakeLists.txt:54
const interface::types::RoleIdType & roleName() const override
Definition: proto_create_role.cpp:36
CreateRole(CommandType &&command)
Definition: proto_create_role.cpp:15
std::string toString() const override
Definition: proto_create_role.cpp:44
Definition: command_executor.hpp:12
Definition: trivial_proto.hpp:45
std::string RoleIdType
Type of role (i.e admin, user)
Definition: types.hpp:49