cadrumo.adapters.persistence.profile.filing_history module¶
Encrypted persistence adapter for application filing-history ports.
Core types:
SecureObjectRepository,
SensitivityClass.
- class FilingHistoryRepositoryAdapter(*, objects)[source]¶
Bases:
SecureBoundRepository[ModeloHistory],FilingHistoryRepositoryPortBind the application contract to the encrypted secure-object repository.
- Parameters:
objects (SecureObjectRepository)
-
sensitivity:
ClassVar[SensitivityClass]¶
- payload_type¶
alias of
ModeloHistory
- extract_identifier(payload)[source]¶
Return the natural id for
payload(used as the SQL object key).Subclasses MUST override. The base implementation raises
NotImplementedError.- Return type:
- Parameters:
payload (ModeloHistory)
- load(identifier)[source]¶
Load one encrypted history and translate storage failures.
- Return type:
- Parameters:
identifier (str)
- save(payload)[source]¶
Save one encrypted history and translate storage failures.
- Return type:
- Parameters:
payload (ModeloHistory)