CollectionEndpoint

Endpoint for a collection of TEntitys addressable as ElementEndpoints.

Use GenericCollectionEndpoint instead if you wish to customize the element endpoint type.

Parameters

TEntity

The type of individual elements in the collection.

Inheritors

Properties

Link copied to clipboard
abstract val createAllAllowed: Boolean?

Shows whether the server has indicated that createAll is currently allowed.

Link copied to clipboard
abstract val createAllowed: Boolean?

Shows whether the server has indicated that create is currently allowed.

Link copied to clipboard
abstract val readAllAllowed: Boolean?

Shows whether the server has indicated that readAll is currently allowed.

Link copied to clipboard
abstract val readRangeAllowed: Boolean?

Shows whether the server has indicated that readRange is allowed.

Link copied to clipboard
abstract val setAllAllowed: Boolean?

Shows whether the server has indicated that setAll is currently allowed.

Functions

Link copied to clipboard
abstract fun create(entity: TEntity): ElementEndpoint<TEntity>?

Adds an entity as a new element to the collection.

Link copied to clipboard
abstract fun createAll(entities: Iterable<TEntity>)

Adds (or updates) multiple entities as elements in the collection.

Link copied to clipboard
abstract operator fun get(entity: TEntity): ElementEndpoint<TEntity>

Returns an ElementEndpoint for a specific child element.

Link copied to clipboard
abstract fun readAll(): List<TEntity>

Returns all entities in the collection.

Link copied to clipboard
abstract fun readRange(from: Long?, to: Long?): PartialResponse<TEntity>

Returns all entities within a specific range of the collection.

Link copied to clipboard
abstract fun setAll(entities: Iterable<TEntity>)

Replaces the entire content of the collection with new entities.