|
ORE Studio 0.0.4
|
Service for managing coding schemes. More...
#include <coding_scheme_service.hpp>

Public Types | |
| using | context = ores::database::context |
Public Member Functions | |
| coding_scheme_service (context ctx) | |
| Constructs a coding_scheme_service with required repositories. | |
| std::vector< domain::coding_scheme > | list_coding_schemes () |
| Lists all coding schemes. | |
| std::vector< domain::coding_scheme > | list_coding_schemes (std::uint32_t offset, std::uint32_t limit) |
| Lists coding schemes with pagination. | |
| std::vector< domain::coding_scheme > | list_coding_schemes_by_authority_type (const std::string &authority_type) |
| Lists coding schemes for a specific authority type. | |
| std::uint32_t | get_coding_scheme_count () |
| Gets the total count of active coding schemes. | |
| std::optional< domain::coding_scheme > | find_coding_scheme (const std::string &code) |
| Finds a coding scheme by its code. | |
| void | save_coding_scheme (const domain::coding_scheme &scheme) |
| Saves a coding scheme (creates or updates). | |
| void | remove_coding_scheme (const std::string &code) |
| Removes a coding scheme. | |
| std::vector< domain::coding_scheme > | get_coding_scheme_history (const std::string &code) |
| Gets the version history for a coding scheme. | |
| std::vector< domain::coding_scheme_authority_type > | list_authority_types () |
| Lists all coding scheme authority types. | |
| std::optional< domain::coding_scheme_authority_type > | find_authority_type (const std::string &code) |
| Finds a coding scheme authority type by its code. | |
| void | save_authority_type (const domain::coding_scheme_authority_type &authority_type) |
| Saves a coding scheme authority type (creates or updates). | |
| void | remove_authority_type (const std::string &code) |
| Removes a coding scheme authority type. | |
| std::vector< domain::coding_scheme_authority_type > | get_authority_type_history (const std::string &code) |
| Gets the version history for a coding scheme authority type. | |
Service for managing coding schemes.
This service provides functionality for:
|
explicit |
Constructs a coding_scheme_service with required repositories.
| ctx | The database context. |
| void save_coding_scheme | ( | const domain::coding_scheme & | scheme | ) |
Saves a coding scheme (creates or updates).
| scheme | The coding scheme to save |
| void remove_coding_scheme | ( | const std::string & | code | ) |
Removes a coding scheme.
| code | The code of the coding scheme to remove |
| std::vector< domain::coding_scheme > get_coding_scheme_history | ( | const std::string & | code | ) |
Gets the version history for a coding scheme.
| code | The coding scheme code |
| void save_authority_type | ( | const domain::coding_scheme_authority_type & | authority_type | ) |
Saves a coding scheme authority type (creates or updates).
| authority_type | The authority type to save |
| void remove_authority_type | ( | const std::string & | code | ) |
Removes a coding scheme authority type.
| code | The code of the authority type to remove |
| std::vector< domain::coding_scheme_authority_type > get_authority_type_history | ( | const std::string & | code | ) |
Gets the version history for a coding scheme authority type.
| code | The authority type code |