Class LaravelUi5\OData\Service\ReadContext

final

The read-side collector — the read analog of a write-side transaction seal.

A single read can touch many targets (a root set plus its $expand navigation targets). A {@see \LaravelUi5\OData\Service\Contracts\ReadAuthorizerInterface} records a verdict per target into this collector; the controller / engine then reads it to shape the response:

  • a hard denial (a primary / root target) → the controller answers a 403 {@see \LaravelUi5\OData\Exception\ForbiddenException};
    • a drop (an $expand target) → {@see \LaravelUi5\OData\Http\ReadGate} prunes it from the plan and emits a sap-messages warning on the 200 (the honest-partial model);
    • no verdict recorded → the read proceeds.

The default {@see AllowAllReadAuthorizer} records nothing, so an unconfigured OData proceeds exactly as before.

Methods