Service Layer high complexity backend
3
Dependencies
4
Dependents
9
Entities
0
Integrations

Description

The core server-side service that orchestrates Bufdir report generation by querying activities, users, organizations, and related tables for a given period, then mapping the aggregated data to Bufdir's required field schema. Acts as the single entry point for all report generation and export operations.

Feature: Bufdir Report Generation & Export

bufdir-report-service

Responsibilities

  • Accept organization_id and reporting_period parameters and validate access rights
  • Delegate data aggregation to the report aggregation service
  • Map aggregated internal data to the normalized Bufdir field schema
  • Coordinate file rendering with the export infrastructure
  • Persist generated report metadata to the database

Interfaces

generateReport(organizationId, period, format)
previewReport(organizationId, period)
getReportHistory(organizationId)
getReportById(reportId)
validateReportParameters(params)
cancelGeneration(jobId)
getGenerationStatus(jobId)