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], FilingHistoryRepositoryPort

Bind the application contract to the encrypted secure-object repository.

Parameters:

objects (SecureObjectRepository)

namespace: ClassVar[str]
sensitivity: ClassVar[SensitivityClass]
schema_version: ClassVar[int]
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:

str

Parameters:

payload (ModeloHistory)

load(identifier)[source]

Load one encrypted history and translate storage failures.

Return type:

ModeloHistory | None

Parameters:

identifier (str)

save(payload)[source]

Save one encrypted history and translate storage failures.

Return type:

None

Parameters:

payload (ModeloHistory)

delete(identifier)[source]

Delete one encrypted history and translate storage failures.

Return type:

bool

Parameters:

identifier (str)

iter_records()[source]

Iterate encrypted histories and translate scan failures.

Return type:

Iterator[ModeloHistory]