Export Service
Component Detail
Service Layer
medium complexity
backend
0
Dependencies
0
Dependents
1
Entities
0
Integrations
Description
Backend service that converts a validated Bufdir report into the final PDF and CSV artifacts in the format Bufdir requires. Signs each artifact with the exporting admin's identity, persists it to durable storage, and records the export event for audit.
export-service
Sources & reasoning
Source explicitly names one-click Bufdir export as a Phase 2 (Core Product) admin-portal deliverable, distinct from report generation. The export action and its archived artifact are operationally distinct from generation.
-
docs/source/likeperson.md · line 29selve Bufdir-eksporten er en admin-funksjon: organisasjonsadministrator kjører eksporten fra Admin Web Portal
-
docs/source/likeperson.md · line 257Bufdir-rapportering og eksport med ett klikk (kun i Admin Web Portal; mobilen bidrar med selve aktivitetsregistreringen)
Responsibilities
- Render the Bufdir report to PDF in the prescribed layout
- Serialize the Bufdir report to the structured CSV schema
- Stamp each artifact with timestamp and exporting admin signature
- Persist artifacts to export storage and emit an audit event
- Resolve and stream prior exports for re-download
Interfaces
exportReport(reportId, adminId, formats): ExportRecord
getExport(exportId): ExportRecord
streamExportArtifact(exportId, format): FileStream
listExportsForReport(reportId): ExportRecord[]