Member Junction
    Preparing search index...

    Abstract base class for archive drivers. Concrete implementations handle the specifics of how records are archived and restored.

    Use @RegisterClass(BaseArchiveDriver, 'YourDriverName') on concrete subclasses to make them discoverable via the MJ ClassFactory.

    Hierarchy (View Summary)

    Index

    Constructors

    Accessors

    Methods

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

      Parameters

      • basePath: string

        The configured base path prefix

      • entityName: string

        The entity name (will be sanitized)

      • recordId: string

        The primary key value of the record

      • versionStamp: Date

        The timestamp for this archive version

      Returns string

      The full storage path string

    • Formats a Date as an ISO 8601 string safe for use in file paths. Colons are replaced with underscores.

      Parameters

      • date: Date

      Returns string

    • Sanitizes a string for use as a storage path segment by replacing spaces, colons, and other problematic characters with underscores.

      Parameters

      • value: string

      Returns string