AtomicDataAccessor that uses the file system to store documents as files and containers as folders. Data will first be written to a temporary location and only if no errors occur will the data be written to the desired location.

Hierarchy (view full)

Implements

Constructors

Properties

logger: Logger = ...
resourceMapper: FileIdentifierMapper

Methods

  • Verifies if there already is a file corresponding to the given resource. If yes, that file is removed if it does not match the path given in the input ResourceLink. This can happen if the content-type differs from the one that was stored.

    Parameters

    • link: ResourceLink

      ResourceLink corresponding to the new resource data.

    Returns Promise<void>