list

abstract fun <T : Any> list(modelCollection: ModelCollection<T, C>, filter: (Model<T>) -> Boolean? = null): List<Model<T>>

Get all models in the Collection that passes the provided filter.

Throws

if there is any model in the collection that the user is not allowed to read.