getEntities

abstract fun getEntities(className: String): GetEntities

List DataSync entities of a class. Optional filters/paging are set via the returned builder.

Filtering and sorting are only allowed on properties the entity class marks as filterable via their filtering mode (none / simple / full), which also determines which of filterFast / filter / sort a property may be used with — see filterFast, filter, and sort for the exact per-parameter rules. An Entity has no built-in default class, so the filterable set is whatever the supplied className declares, plus the built-in fields id, createdAt, updatedAt, and status, which behave as full and are always filterable and sortable on any class.

Results are scoped to the caller's access token: only entities the token is permitted to read (get) are returned. Entities the token cannot read are silently omitted — the call does not error and does not return a 403 for the un-readable entities. This token scoping is applied before filterFast / filter / sort. When the PubNub instance is configured with a secretKey (a trusted server-side deployment, never a client — the secretKey must not be shipped to clients), or when using a token whose grants cover the whole result set, no permission-based filtering is applied and all matching entities are returned, subject only to filterFast / filter / sort and limit paging.

Parameters

className

Entity class identifier.