File

src/app/core/import/import-processing-context.ts

Description

Object to store and share context and cached data between parsing of multiple columns and rows of an import.

(e.g. used for caching of entities when importing entity references)

Index

Properties

Constructor

constructor(importSettings: ImportSettings)
Parameters :
Name Type Optional
importSettings ImportSettings No

Properties

Public Readonly importSettings
Type : ImportSettings
row
Type : any

Full data of the currently imported row.

rowIndex
Type : number
Default value : -1

Index of the currently imported row in the import file.

import { ImportSettings } from "#src/app/core/import/import-metadata";

/**
 * Object to store and share context and cached data
 * between parsing of multiple columns and rows of an import.
 *
 * (e.g. used for caching of entities when importing entity references)
 */
export class ImportProcessingContext {
  constructor(public readonly importSettings: ImportSettings) {}

  /**
   * Index of the currently imported row in the import file.
   */
  rowIndex: number = -1;

  /**
   * Full data of the currently imported row.
   */
  row: any;
}

results matching ""

    No results matching ""