cadrumo.application.filing.history_ports module¶
Application-owned persistence contract for local filing history.
The filing-history service owns the payload and repository semantics. An outer composition supplies the encrypted persistence capability through this module; the application surface never names the storage implementation or its errors.
Core types:
SensitivityClass.
- exception FilingHistoryPersistenceError(message=None, *, context=None, translated_message=None, precondition_verdict=None)[source]¶
Bases:
ModeloApplicationErrorTranslated persistence failure for the filing-history boundary.
- Parameters:
- Return type:
None
- code¶
- class FilingHistoryRepositoryPort(*args, **kwargs)[source]¶
Bases:
ProtocolBucket-bound filing-history persistence capability.
- envelope_path_for(identifier)[source]¶
Return the logical marker for one history identifier.
- Return type:
Path- Parameters:
identifier (str)
- lock_target_for(identifier)[source]¶
Return the logical lock marker for one history identifier.
- Return type:
Path- Parameters:
identifier (str)
- load(identifier)[source]¶
Load one history, returning
Nonewhen it is absent.- Return type:
- Parameters:
identifier (str)
- save(payload)[source]¶
Persist one validated history payload.
- Return type:
- Parameters:
payload (ModeloHistory)
- class FilingHistoryPorts(repository, bucket_id)[source]¶
Bases:
objectRequired authorities for one bucket-local filing-history repository.
- Parameters:
repository (FilingHistoryRepositoryPort)
bucket_id (str)
-
repository:
FilingHistoryRepositoryPort¶