cadrumo.application.modelo.m145_communication_records_ports module¶
Application-owned capabilities for Modelo 145 communication records.
The communication-record service owns the record DTOs, validation policy, and state transitions. Persistence and secure-object details stay outside this package: an executable composition root supplies this required bundle for the active bucket, and the outward adapter translates storage failures before they cross this boundary.
- exception M145CommunicationRecordPersistenceError(operation)[source]¶
Bases:
CadrumoErrorTranslated failure from a communication-record persistence capability.
- Parameters:
operation (str)
- Return type:
None
- code¶
- class M145CommunicationRecordRepositoryPort(*args, **kwargs)[source]¶
Bases:
ProtocolRequired encrypted-record operations for one Modelo 145 bucket.
- load(communication_record_id)[source]¶
Load one record by its full content-addressed identifier.
- Return type:
- Parameters:
communication_record_id (str)
- resolve(communication_record_id)[source]¶
Resolve one full identifier or an unambiguous identifier prefix.
- Return type:
- Parameters:
communication_record_id (str)
- save_with_secure_object_writes(record, extra_writes)[source]¶
Persist a record atomically with its related event-history writes.
- Return type:
- Parameters:
record (M145CommunicationRecord)
extra_writes (tuple[SecureObjectWrite, ...])
- class M145CommunicationRecordsPorts(record_repository, bucket_event_repository)[source]¶
Bases:
objectRequired authorities for one bucket-scoped communication-record call.
- Parameters:
record_repository (M145CommunicationRecordRepositoryPort)
bucket_event_repository (BucketEventHistoryRepositoryProtocol)
-
record_repository:
M145CommunicationRecordRepositoryPort¶
-
bucket_event_repository:
BucketEventHistoryRepositoryProtocol¶