ORE Studio 0.0.4
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
data_organization_service Class Reference

Service for managing data organization entities. More...

#include <data_organization_service.hpp>

Collaboration diagram for data_organization_service:
Collaboration graph

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::cataloglist_catalogs ()
 Lists all catalogs.
 
std::vector< domain::cataloglist_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::catalogfind_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::catalogget_catalog_history (const std::string &name)
 Gets the version history for a catalog.
 
std::vector< domain::dataset_dependencylist_dataset_dependencies ()
 Lists all dataset dependencies.
 
std::vector< domain::dataset_dependencylist_dataset_dependencies_by_dataset (const std::string &dataset_code)
 Lists dataset dependencies for a specific dataset.
 
std::vector< domain::data_domainlist_data_domains ()
 Lists all data domains.
 
std::optional< domain::data_domainfind_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_domainget_data_domain_history (const std::string &name)
 Gets the version history for a data domain.
 
std::vector< domain::subject_arealist_subject_areas ()
 Lists all subject areas.
 
std::vector< domain::subject_arealist_subject_areas (std::uint32_t offset, std::uint32_t limit)
 Lists subject areas with pagination.
 
std::vector< domain::subject_arealist_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_areafind_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_areaget_subject_area_history (const std::string &name, const std::string &domain_name)
 Gets the version history for a subject area.
 

Detailed Description

Service for managing data organization entities.

This service provides functionality for:

Constructor & Destructor Documentation

◆ data_organization_service()

Constructs a data_organization_service with required repositories.

Parameters
ctxThe database context.

Member Function Documentation

◆ save_catalog()

void save_catalog ( const domain::catalog catalog)

Saves a catalog (creates or updates).

Parameters
catalogThe catalog to save

◆ remove_catalog()

void remove_catalog ( const std::string &  name)

Removes a catalog.

Parameters
nameThe name of the catalog to remove

◆ get_catalog_history()

std::vector< domain::catalog > get_catalog_history ( const std::string &  name)

Gets the version history for a catalog.

Parameters
nameThe catalog name
Returns
Vector of all versions, newest first

◆ list_dataset_dependencies_by_dataset()

std::vector< domain::dataset_dependency > list_dataset_dependencies_by_dataset ( const std::string &  dataset_code)

Lists dataset dependencies for a specific dataset.

Parameters
dataset_codeThe code of the dataset to query dependencies for

◆ save_data_domain()

void save_data_domain ( const domain::data_domain data_domain)

Saves a data domain (creates or updates).

Parameters
data_domainThe data domain to save

◆ remove_data_domain()

void remove_data_domain ( const std::string &  name)

Removes a data domain.

Parameters
nameThe name of the data domain to remove

◆ get_data_domain_history()

std::vector< domain::data_domain > get_data_domain_history ( const std::string &  name)

Gets the version history for a data domain.

Parameters
nameThe data domain name
Returns
Vector of all versions, newest first

◆ save_subject_area()

void save_subject_area ( const domain::subject_area subject_area)

Saves a subject area (creates or updates).

Parameters
subject_areaThe subject area to save

◆ remove_subject_area()

void remove_subject_area ( const std::string &  name,
const std::string &  domain_name 
)

Removes a subject area.

Parameters
nameThe name of the subject area to remove
domain_nameThe domain name of the subject area

◆ get_subject_area_history()

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.

Parameters
nameThe subject area name
domain_nameThe domain name
Returns
Vector of all versions, newest first