SnapshotPolicyGateway
The snapshot query policies of an aggregate type no backend serves the snapshot queries of (@AggregateRoot(snapshot = false), snapshots in memory without wow.query.memory.enabled, an application's own stores): admitRecord admits a state as a me.ahoo.wow.query.DefaultQueryGateway of its snapshots would, under policies (the caller scope, the application's) against schemaProvider's snapshot schema (me.ahoo.wow.query.schema.QuerySchemaCatalog.policyProvider), so StateVisibility hides from a state read and the events model what those policies would hide from a snapshot query. It answers no query: every query fails, as its snapshots are not queried, and no route serves it.
Constructors
Properties
Functions
The single-aggregate visibility check of the policy chain: record, the snapshot-shaped record of one aggregate a point read chose by selection (a state read by id, its version or its trace, or the aggregate of an events query), as caller may read it: admitted by the same caller scope and QueryPolicy restrictions and the model's default scope as a query, evaluated in memory, and masked; null when the caller may not read it, so a row a query hides is hidden from a read by id too. A gateway without policies admits every record.
The groups of query, streamed.
How many records query matches, bounded by its limit or its budget's.
One keyset page of the records query matches, with the cursor of the next one.
How this model can be queried on entry (the GET of the query route): the capability descriptor of the schema this gateway admits against, under the budget entryPolicy gives entry. defaultListSize is the list size the entry's adapter applies when a list query sends none, or null. Its version is the route's ETag.
The records query matches, streamed.
record, the snapshot-shaped record of one aggregate, masked as this model's records are and admitted by no policy: a state of the history of an aggregate admitRecord admitted, read as the aggregate is now.
One page of the records query matches, with its total as PagedQuery.total asks.
The first record query matches, or null when none does.