StaticenableThe model class to protect
The Prorm instance
WORM configuration options
StaticapplyApply hooks to a model for WORM protection. Called automatically by enable().
The model class
Optionalconfig: WORMConfig
The WORM configuration
StaticarchiveArchive a record (moves to archived state). Archived records are read-only but can still be queried.
The record instance to archive
StaticfreezeFreeze a record (fully immutable). Frozen records cannot be modified or deleted.
The record instance to freeze
StaticgetGet the tamper evidence log for a record.
The record ID
The table name
StaticverifyVerify the integrity of a record's tamper chain.
The record ID
The table name
True if chain is valid, false if tampering detected
StaticisCheck if WORM is enabled on a model.
The model class
StaticgetGet the WORM configuration for a model.
The model class
StaticenforceEnforce retention policy on a model. This will delete or anonymize records that have exceeded their retention period.
The model class
The Prorm instance
StaticgetGet the archive state of a record.
The record ID
The table name
StaticdisableDisable WORM storage for a model.
The model class
StaticgetGet the WORM metadata model for a model.
The model class
StaticgetGet the tamper log model for a model.
The model class
StaticlistList all models with WORM storage enabled.
Enable WORM storage on a model. Creates necessary metadata tables and registers hooks.