cadrumo.adapters.persistence.profile.m145_communication_records module¶
Persistence adapters for the Modelo 145 communication-record capability.
The application service speaks only the focused records ports. This module binds those ports to the existing secure-object and bucket-event repositories, translating their storage failures and keeping their envelope/blob details outside the application boundary.
- class M145CommunicationRecordRepositoryAdapter(*, repository)[source]¶
Bases:
M145CommunicationRecordRepositoryPortTranslate the generic secure snapshot repository to the records port.
- Parameters:
repository (SecureSnapshotRepository[M145CommunicationRecord])
- load(communication_record_id)[source]¶
Load one record by full id while preserving application lookup errors.
- Return type:
- Parameters:
communication_record_id (str)
- resolve(communication_record_id)[source]¶
Resolve one full id or unique prefix while hiding adapter errors.
- Return type:
- Parameters:
communication_record_id (str)
- save_with_secure_object_writes(record, extra_writes)[source]¶
Commit a record and its related secure writes atomically.
- Return type:
- Parameters:
record (M145CommunicationRecord)
extra_writes (tuple[SecureObjectWrite, ...])