setAll

open override fun setAll(entities: Iterable<TEntity>)

Replaces the entire content of the collection with new entities.

Parameters

entities

The new set of entities the collection shall contain.

Throws

when the server responds with HttpStatusCode.BadRequest.

when the server responds with HttpStatusCode.Forbidden.

when the entity has changed since it was last retrieved with readAll. Your changes were rejected to prevent a lost update.

for other non-success status codes.