DataExportService
Corex\Config\DataModels\DataExportService · class · Config layer
Validates source-scoped exports and queues durable private history records.
Public API
Section titled “Public API”__construct(DataSourceService $sources, DataQueryService $queries, DataExportStore $exports, DataExportJobQueue $jobs)
Section titled “__construct(DataSourceService $sources, DataQueryService $queries, DataExportStore $exports, DataExportJobQueue $jobs)”request(DataExportRequest $request): DataExportRun
Section titled “request(DataExportRequest $request): DataExportRun”requestSeveral(DataExportSetRequest $request): DataExportRun
Section titled “requestSeveral(DataExportSetRequest $request): DataExportRun”One export of several models, every record of each (spec 109, slice 2). A model that holds no records, or of which this person may export no column, is left out of the run; an export in which that is every model makes no file. A model that belongs to a screen this person may not open is kept in the run as left out, with why, and never read (spec 112, FR-030); an export of nothing but such models is refused, naming them.
previewSeveral(int $actorId, array $sourceKeys): array
Section titled “previewSeveral(int $actorId, array $sourceKeys): array”How many records each model would give, before anything is exported.
preview(int $actorId, string $sourceKey, array $selectedIds, array $query): array
Section titled “preview(int $actorId, string $sourceKey, array $selectedIds, array $query): array”How many records each scope would export, before anything is exported.
advance(int $actorId, int $runId, bool $manageAll, string $sourceKey): array
Section titled “advance(int $actorId, int $runId, bool $manageAll, string $sourceKey): array”Takes one step of an export now, for the person waiting on it.
history(int $actorId, bool $manageAll, int $limit): array
Section titled “history(int $actorId, bool $manageAll, int $limit): array”download(int $actorId, int $runId, bool $manageAll, string $sourceKey): array
Section titled “download(int $actorId, int $runId, bool $manageAll, string $sourceKey): array”A finished export, for the person who made it or one who may manage every export.
operationFor(string $format): string
Section titled “operationFor(string $format): string”The source operation a format is allowed under.