Returns the initialized storage driver, or throws if not yet initialized.
Builds a storage path for an archive document.
Format: {basePath}/{SanitizedEntityName}/{RecordID}/{VersionStamp}.json
Formats a Date as an ISO 8601 string safe for use in file paths.
Initializes the storage driver for the given FileStorageAccount. Loads the account and provider from the FileStorageEngineBase cache, then creates and initializes the appropriate driver via ClassFactory.
ID of the MJ: File Storage Account to use
User context for credential resolution
Reads and parses an archive document from storage.
Full path to the archive document in storage
The parsed archive document
Replaces characters that are problematic in storage paths with underscores.
Serializes and writes an archive document to storage.
Configured base path prefix
Entity name for path building
Record primary key value for path building
Timestamp for this archive version
The archive document to write
The storage path and bytes written
Manages the lifecycle of a storage driver for archive operations, including initialization from a FileStorageAccount and read/write of archive documents.