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

#include <WorkspaceQueryService.h>

Public Member Functions

 WorkspaceQueryService (WorkspaceSession &session)
 Creates the query service for one workspace session.
 WorkspaceQueryService (const WorkspaceQueryService &)=delete
WorkspaceQueryService & operator= (const WorkspaceQueryService &)=delete
 WorkspaceQueryService (WorkspaceQueryService &&) noexcept
WorkspaceQueryService & operator= (WorkspaceQueryService &&) noexcept
core::ports::workspace::WorkspaceSnapshot workspaceSnapshot () const
 Projects full workspace snapshot for port consumers.
std::optional< core::ports::workspace::StatementDraftSnapshot > statementDraftSnapshot (const std::string &draftId={}) const
 Projects one statement draft snapshot.
core::ports::workspace::WorkspaceIdentitySnapshot actorIdentityByName (const std::string &name) const
 Finds an actor identity by normalized name.
core::ports::workspace::WorkspaceIdentitySnapshot propertyIdentityByName (const std::string &name) const
 Finds a property identity by normalized name.
core::ports::workspace::WorkspaceIdentitySnapshot contractIdentityBySignature (const std::string &name, const std::string &type, const std::vector< std::string > &actorIds, const std::vector< std::string > &propertyIds) const
 Finds a contract identity by normalized signature.
core::ports::workspace::TransactionCatalogSelection transactionCatalogSelection (const core::ports::workspace::TransactionCatalogSelectionChange &change) const
 Applies catalog consistency rules to a transaction form selection.
std::string nextContractName () const
 Returns the next generated contract name.
const std::string & currentPath () const noexcept
 Returns current workspace file path.

Detailed Description

Definition at line 20 of file WorkspaceQueryService.h.

Constructor & Destructor Documentation

◆ WorkspaceQueryService() [1/3]

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

Creates the query service for one workspace session.

Definition at line 117 of file WorkspaceQueryService.cpp.

Here is the caller graph for this function:

◆ WorkspaceQueryService() [2/3]

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

◆ WorkspaceQueryService() [3/3]

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

Member Function Documentation

◆ actorIdentityByName()

core::ports::workspace::WorkspaceIdentitySnapshot core::application::WorkspaceQueryService::actorIdentityByName ( const std::string & name) const
nodiscard

Finds an actor identity by normalized name.

Definition at line 141 of file WorkspaceQueryService.cpp.

◆ contractIdentityBySignature()

core::ports::workspace::WorkspaceIdentitySnapshot core::application::WorkspaceQueryService::contractIdentityBySignature ( const std::string & name,
const std::string & type,
const std::vector< std::string > & actorIds,
const std::vector< std::string > & propertyIds ) const
nodiscard

Finds a contract identity by normalized signature.

Definition at line 167 of file WorkspaceQueryService.cpp.

◆ currentPath()

const std::string & core::application::WorkspaceQueryService::currentPath ( ) const
noexcept

Returns current workspace file path.

Definition at line 133 of file WorkspaceQueryService.cpp.

Here is the caller graph for this function:

◆ nextContractName()

std::string core::application::WorkspaceQueryService::nextContractName ( ) const
nodiscard

Returns the next generated contract name.

Definition at line 233 of file WorkspaceQueryService.cpp.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ propertyIdentityByName()

core::ports::workspace::WorkspaceIdentitySnapshot core::application::WorkspaceQueryService::propertyIdentityByName ( const std::string & name) const
nodiscard

Finds a property identity by normalized name.

Definition at line 154 of file WorkspaceQueryService.cpp.

◆ statementDraftSnapshot()

std::optional< core::ports::workspace::StatementDraftSnapshot > core::application::WorkspaceQueryService::statementDraftSnapshot ( const std::string & draftId = {}) const
nodiscard

Projects one statement draft snapshot.

Parameters
draftIdOptional draft identifier.
Returns
Matching draft snapshot when found.

Definition at line 137 of file WorkspaceQueryService.cpp.

Here is the caller graph for this function:

◆ transactionCatalogSelection()

core::ports::workspace::TransactionCatalogSelection core::application::WorkspaceQueryService::transactionCatalogSelection ( const core::ports::workspace::TransactionCatalogSelectionChange & change) const
nodiscard

Applies catalog consistency rules to a transaction form selection.

Parameters
changeCurrent selection plus the user-selected field change.
Returns
Updated transaction catalog selection.

Definition at line 197 of file WorkspaceQueryService.cpp.

Here is the call graph for this function:

◆ workspaceSnapshot()

core::ports::workspace::WorkspaceSnapshot core::application::WorkspaceQueryService::workspaceSnapshot ( ) const
nodiscard

Projects full workspace snapshot for port consumers.

Definition at line 129 of file WorkspaceQueryService.cpp.

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: