Member Junction
    Preparing search index...

    Manages the lifecycle of a storage driver for archive operations, including initialization from a FileStorageAccount and read/write of archive documents.

    Index

    Constructors

    Accessors

    Methods

    • Builds a storage path for an archive document. Format: {basePath}/{SanitizedEntityName}/{RecordID}/{VersionStamp}.json

      Parameters

      • basePath: string
      • entityName: string
      • recordId: string
      • versionStamp: Date

      Returns string

    • 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.

      Parameters

      • storageAccountId: string

        ID of the MJ: File Storage Account to use

      • contextUser: UserInfo

        User context for credential resolution

      Returns Promise<void>

    • Serializes and writes an archive document to storage.

      Parameters

      • basePath: string

        Configured base path prefix

      • entityName: string

        Entity name for path building

      • recordId: string

        Record primary key value for path building

      • versionStamp: Date

        Timestamp for this archive version

      • document: ArchiveDocument

        The archive document to write

      Returns Promise<{ bytesWritten: number; storagePath: string }>

      The storage path and bytes written