|
ORE Studio 0.0.4
|
Service for managing data organization entities. More...
#include <data_organization_service.hpp>

Public Types | |
| using | context = ores::database::context |
Public Member Functions | |
| data_organization_service (context ctx) | |
| Constructs a data_organization_service with required repositories. | |
| std::vector< domain::catalog > | list_catalogs () |
| Lists all catalogs. | |
| std::vector< domain::catalog > | list_catalogs (std::uint32_t offset, std::uint32_t limit) |
| Lists catalogs with pagination. | |
| std::uint32_t | get_catalog_count () |
| Gets the total count of active catalogs. | |
| std::optional< domain::catalog > | find_catalog (const std::string &name) |
| Finds a catalog by its name. | |
| void | save_catalog (const domain::catalog &catalog) |
| Saves a catalog (creates or updates). | |
| void | remove_catalog (const std::string &name) |
| Removes a catalog. | |
| std::vector< domain::catalog > | get_catalog_history (const std::string &name) |
| Gets the version history for a catalog. | |
| std::vector< domain::dataset_dependency > | list_dataset_dependencies () |
| Lists all dataset dependencies. | |
| std::vector< domain::dataset_dependency > | list_dataset_dependencies_by_dataset (const std::string &dataset_code) |
| Lists dataset dependencies for a specific dataset. | |
| std::vector< domain::data_domain > | list_data_domains () |
| Lists all data domains. | |
| std::optional< domain::data_domain > | find_data_domain (const std::string &name) |
| Finds a data domain by its name. | |
| void | save_data_domain (const domain::data_domain &data_domain) |
| Saves a data domain (creates or updates). | |
| void | remove_data_domain (const std::string &name) |
| Removes a data domain. | |
| std::vector< domain::data_domain > | get_data_domain_history (const std::string &name) |
| Gets the version history for a data domain. | |
| std::vector< domain::subject_area > | list_subject_areas () |
| Lists all subject areas. | |
| std::vector< domain::subject_area > | list_subject_areas (std::uint32_t offset, std::uint32_t limit) |
| Lists subject areas with pagination. | |
| std::vector< domain::subject_area > | list_subject_areas_by_domain (const std::string &domain_name) |
| Lists subject areas for a specific domain. | |
| std::uint32_t | get_subject_area_count () |
| Gets the total count of active subject areas. | |
| std::optional< domain::subject_area > | find_subject_area (const std::string &name, const std::string &domain_name) |
| Finds a subject area by its composite key. | |
| void | save_subject_area (const domain::subject_area &subject_area) |
| Saves a subject area (creates or updates). | |
| void | remove_subject_area (const std::string &name, const std::string &domain_name) |
| Removes a subject area. | |
| std::vector< domain::subject_area > | get_subject_area_history (const std::string &name, const std::string &domain_name) |
| Gets the version history for a subject area. | |
Service for managing data organization entities.
This service provides functionality for:
|
explicit |
Constructs a data_organization_service with required repositories.
| ctx | The database context. |
| void save_catalog | ( | const domain::catalog & | catalog | ) |
Saves a catalog (creates or updates).
| catalog | The catalog to save |
| void remove_catalog | ( | const std::string & | name | ) |
Removes a catalog.
| name | The name of the catalog to remove |
| std::vector< domain::catalog > get_catalog_history | ( | const std::string & | name | ) |
Gets the version history for a catalog.
| name | The catalog name |
| std::vector< domain::dataset_dependency > list_dataset_dependencies_by_dataset | ( | const std::string & | dataset_code | ) |
Lists dataset dependencies for a specific dataset.
| dataset_code | The code of the dataset to query dependencies for |
| void save_data_domain | ( | const domain::data_domain & | data_domain | ) |
Saves a data domain (creates or updates).
| data_domain | The data domain to save |
| void remove_data_domain | ( | const std::string & | name | ) |
Removes a data domain.
| name | The name of the data domain to remove |
| std::vector< domain::data_domain > get_data_domain_history | ( | const std::string & | name | ) |
Gets the version history for a data domain.
| name | The data domain name |
| void save_subject_area | ( | const domain::subject_area & | subject_area | ) |
Saves a subject area (creates or updates).
| subject_area | The subject area to save |
| void remove_subject_area | ( | const std::string & | name, |
| const std::string & | domain_name | ||
| ) |
Removes a subject area.
| name | The name of the subject area to remove |
| domain_name | The domain name of the subject area |
| std::vector< domain::subject_area > get_subject_area_history | ( | const std::string & | name, |
| const std::string & | domain_name | ||
| ) |
Gets the version history for a subject area.
| name | The subject area name |
| domain_name | The domain name |