FOSSredder 0.5.0
Loading...
Searching...
No Matches
core::application::WorkspaceCommandService Class Reference

#include <WorkspaceCommandService.h>

Public Member Functions

 WorkspaceCommandService (WorkspaceSession &session)
 Creates command service bound to one workspace session.
 ~WorkspaceCommandService ()
 WorkspaceCommandService (const WorkspaceCommandService &)=delete
WorkspaceCommandService & operator= (const WorkspaceCommandService &)=delete
 WorkspaceCommandService (WorkspaceCommandService &&) noexcept
WorkspaceCommandService & operator= (WorkspaceCommandService &&) noexcept
std::string addActor (const core::ports::workspace::ActorCommand &command)
 Adds actor and returns created id.
void updateActor (const core::ports::workspace::ActorCommand &command)
 Updates actor identified by command id.
void deleteActor (const std::string &id)
 Deletes actor by id.
std::string addProperty (const core::ports::workspace::PropertyCommand &command)
 Adds property and returns created id.
void updateProperty (const core::ports::workspace::PropertyCommand &command)
 Updates property identified by command id.
void deleteProperty (const std::string &id)
 Deletes property by id.
std::string addContract (const core::ports::workspace::ContractCommand &command)
 Adds contract and returns created id.
void updateContract (const core::ports::workspace::ContractCommand &command)
 Updates contract identified by command id.
void deleteContract (const std::string &id)
 Deletes contract by id.
std::string addStatement (const core::ports::workspace::StatementCommand &command)
 Adds statement and returns created id.
std::string addStatementWithTransactions (const core::ports::workspace::StatementWithTransactionsCommand &command)
 Adds statement and transactions in one workspace mutation.
void updateStatement (const core::ports::workspace::StatementCommand &command)
 Updates statement identified by command id.
void deleteStatement (const std::string &id)
 Deletes statement by id.
std::string addTransaction (const core::ports::workspace::TransactionCommand &command)
 Adds transaction and returns created id.
void updateTransaction (const core::ports::workspace::TransactionCommand &command)
 Updates transaction identified by command id.
void deleteTransaction (const std::string &id)
 Deletes transaction by id.
std::string addAnalysis (const core::ports::workspace::AnalysisCommand &command)
 Adds analysis and returns created id.
void updateAnalysis (const core::ports::workspace::AnalysisCommand &command)
 Updates analysis identified by command id.
void deleteAnalysis (const std::string &id)
 Deletes analysis by id.
std::string addAnnual (const core::ports::workspace::AnnualCommand &command)
 Adds annual aggregate and returns created id.
void updateAnnual (const core::ports::workspace::AnnualCommand &command)
 Updates annual aggregate identified by command id.
void deleteAnnual (const std::string &id)
 Deletes annual aggregate by id.
core::ports::workspace::ValidationResult validate (const core::ports::workspace::ActorCommand &command) const
 Validates actor command data without mutating state.
core::ports::workspace::ValidationResult validate (const core::ports::workspace::PropertyCommand &command) const
 Validates property command data without mutating state.
core::ports::workspace::ValidationResult validate (const core::ports::workspace::ContractCommand &command) const
 Validates contract command data without mutating state.
core::ports::workspace::ValidationResult validate (const core::ports::workspace::StatementCommand &command) const
 Validates statement command data without mutating state.
core::ports::workspace::ValidationResult validate (const core::ports::workspace::TransactionCommand &command) const
 Validates transaction command data without mutating state.
core::ports::workspace::ValidationResult validate (const core::ports::workspace::StatementWithTransactionsCommand &command) const
 Validates statement batch command data without mutating state.
core::ports::workspace::ValidationResult validate (const core::ports::workspace::AnalysisCommand &command) const
 Validates analysis command data without mutating state.
core::ports::workspace::ValidationResult validate (const core::ports::workspace::AnnualCommand &command) const
 Validates annual command data without mutating state.

Detailed Description

Definition at line 70 of file WorkspaceCommandService.h.

Constructor & Destructor Documentation

◆ WorkspaceCommandService() [1/3]

core::application::WorkspaceCommandService::WorkspaceCommandService ( WorkspaceSession & session)
explicit

Creates command service bound to one workspace session.

Definition at line 802 of file WorkspaceCommandService.cpp.

Here is the caller graph for this function:

◆ ~WorkspaceCommandService()

core::application::WorkspaceCommandService::~WorkspaceCommandService ( )
default

◆ WorkspaceCommandService() [2/3]

core::application::WorkspaceCommandService::WorkspaceCommandService ( const WorkspaceCommandService & )
delete
Here is the call graph for this function:

◆ WorkspaceCommandService() [3/3]

core::application::WorkspaceCommandService::WorkspaceCommandService ( WorkspaceCommandService && )
defaultnoexcept
Here is the call graph for this function:

Member Function Documentation

◆ addActor()

std::string core::application::WorkspaceCommandService::addActor ( const core::ports::workspace::ActorCommand & command)
nodiscard

Adds actor and returns created id.

Definition at line 913 of file WorkspaceCommandService.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ addAnalysis()

std::string core::application::WorkspaceCommandService::addAnalysis ( const core::ports::workspace::AnalysisCommand & command)
nodiscard

Adds analysis and returns created id.

Definition at line 1069 of file WorkspaceCommandService.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ addAnnual()

std::string core::application::WorkspaceCommandService::addAnnual ( const core::ports::workspace::AnnualCommand & command)
nodiscard

Adds annual aggregate and returns created id.

Definition at line 1107 of file WorkspaceCommandService.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ addContract()

std::string core::application::WorkspaceCommandService::addContract ( const core::ports::workspace::ContractCommand & command)
nodiscard

Adds contract and returns created id.

Definition at line 953 of file WorkspaceCommandService.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ addProperty()

std::string core::application::WorkspaceCommandService::addProperty ( const core::ports::workspace::PropertyCommand & command)
nodiscard

Adds property and returns created id.

Definition at line 933 of file WorkspaceCommandService.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ addStatement()

std::string core::application::WorkspaceCommandService::addStatement ( const core::ports::workspace::StatementCommand & command)
nodiscard

Adds statement and returns created id.

Definition at line 987 of file WorkspaceCommandService.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ addStatementWithTransactions()

std::string core::application::WorkspaceCommandService::addStatementWithTransactions ( const core::ports::workspace::StatementWithTransactionsCommand & command)
nodiscard

Adds statement and transactions in one workspace mutation.

Definition at line 994 of file WorkspaceCommandService.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ addTransaction()

std::string core::application::WorkspaceCommandService::addTransaction ( const core::ports::workspace::TransactionCommand & command)
nodiscard

Adds transaction and returns created id.

Definition at line 1039 of file WorkspaceCommandService.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ deleteActor()

void core::application::WorkspaceCommandService::deleteActor ( const std::string & id)

Deletes actor by id.

Definition at line 929 of file WorkspaceCommandService.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ deleteAnalysis()

void core::application::WorkspaceCommandService::deleteAnalysis ( const std::string & id)

Deletes analysis by id.

Definition at line 1103 of file WorkspaceCommandService.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ deleteAnnual()

void core::application::WorkspaceCommandService::deleteAnnual ( const std::string & id)

Deletes annual aggregate by id.

Definition at line 1123 of file WorkspaceCommandService.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ deleteContract()

void core::application::WorkspaceCommandService::deleteContract ( const std::string & id)

Deletes contract by id.

Definition at line 983 of file WorkspaceCommandService.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ deleteProperty()

void core::application::WorkspaceCommandService::deleteProperty ( const std::string & id)

Deletes property by id.

Definition at line 949 of file WorkspaceCommandService.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ deleteStatement()

void core::application::WorkspaceCommandService::deleteStatement ( const std::string & id)

Deletes statement by id.

Definition at line 1035 of file WorkspaceCommandService.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ deleteTransaction()

void core::application::WorkspaceCommandService::deleteTransaction ( const std::string & id)

Deletes transaction by id.

Definition at line 1065 of file WorkspaceCommandService.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=() [1/2]

WorkspaceCommandService & core::application::WorkspaceCommandService::operator= ( const WorkspaceCommandService & )
delete
Here is the call graph for this function:

◆ operator=() [2/2]

WorkspaceCommandService & core::application::WorkspaceCommandService::operator= ( WorkspaceCommandService && )
defaultnoexcept
Here is the call graph for this function:

◆ updateActor()

void core::application::WorkspaceCommandService::updateActor ( const core::ports::workspace::ActorCommand & command)

Updates actor identified by command id.

Definition at line 920 of file WorkspaceCommandService.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateAnalysis()

void core::application::WorkspaceCommandService::updateAnalysis ( const core::ports::workspace::AnalysisCommand & command)

Updates analysis identified by command id.

Definition at line 1085 of file WorkspaceCommandService.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateAnnual()

void core::application::WorkspaceCommandService::updateAnnual ( const core::ports::workspace::AnnualCommand & command)

Updates annual aggregate identified by command id.

Definition at line 1114 of file WorkspaceCommandService.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateContract()

void core::application::WorkspaceCommandService::updateContract ( const core::ports::workspace::ContractCommand & command)

Updates contract identified by command id.

Definition at line 967 of file WorkspaceCommandService.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateProperty()

void core::application::WorkspaceCommandService::updateProperty ( const core::ports::workspace::PropertyCommand & command)

Updates property identified by command id.

Definition at line 940 of file WorkspaceCommandService.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateStatement()

void core::application::WorkspaceCommandService::updateStatement ( const core::ports::workspace::StatementCommand & command)

Updates statement identified by command id.

Definition at line 1026 of file WorkspaceCommandService.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateTransaction()

void core::application::WorkspaceCommandService::updateTransaction ( const core::ports::workspace::TransactionCommand & command)

Updates transaction identified by command id.

Definition at line 1051 of file WorkspaceCommandService.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ validate() [1/8]

core::ports::workspace::ValidationResult core::application::WorkspaceCommandService::validate ( const core::ports::workspace::ActorCommand & command) const
nodiscard

Validates actor command data without mutating state.

Definition at line 843 of file WorkspaceCommandService.cpp.

Here is the caller graph for this function:

◆ validate() [2/8]

core::ports::workspace::ValidationResult core::application::WorkspaceCommandService::validate ( const core::ports::workspace::AnalysisCommand & command) const
nodiscard

Validates analysis command data without mutating state.

Definition at line 884 of file WorkspaceCommandService.cpp.

Here is the call graph for this function:

◆ validate() [3/8]

core::ports::workspace::ValidationResult core::application::WorkspaceCommandService::validate ( const core::ports::workspace::AnnualCommand & command) const
nodiscard

Validates annual command data without mutating state.

Definition at line 904 of file WorkspaceCommandService.cpp.

Here is the call graph for this function:

◆ validate() [4/8]

core::ports::workspace::ValidationResult core::application::WorkspaceCommandService::validate ( const core::ports::workspace::ContractCommand & command) const
nodiscard

Validates contract command data without mutating state.

Definition at line 855 of file WorkspaceCommandService.cpp.

Here is the call graph for this function:

◆ validate() [5/8]

core::ports::workspace::ValidationResult core::application::WorkspaceCommandService::validate ( const core::ports::workspace::PropertyCommand & command) const
nodiscard

Validates property command data without mutating state.

Definition at line 849 of file WorkspaceCommandService.cpp.

◆ validate() [6/8]

core::ports::workspace::ValidationResult core::application::WorkspaceCommandService::validate ( const core::ports::workspace::StatementCommand & command) const
nodiscard

Validates statement command data without mutating state.

Definition at line 865 of file WorkspaceCommandService.cpp.

◆ validate() [7/8]

core::ports::workspace::ValidationResult core::application::WorkspaceCommandService::validate ( const core::ports::workspace::StatementWithTransactionsCommand & command) const
nodiscard

Validates statement batch command data without mutating state.

Definition at line 875 of file WorkspaceCommandService.cpp.

Here is the call graph for this function:

◆ validate() [8/8]

core::ports::workspace::ValidationResult core::application::WorkspaceCommandService::validate ( const core::ports::workspace::TransactionCommand & command) const
nodiscard

Validates transaction command data without mutating state.

Definition at line 871 of file WorkspaceCommandService.cpp.


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