Companion

object Companion

Functions

Link copied to clipboard
suspend fun create(data: IdentityData): Identity

Creates new identity with the given data

Link copied to clipboard
suspend fun deleteById(id: String): Boolean

Deletes Identity object with the given id from the storage.

Link copied to clipboard
suspend fun findById(id: String): Identity

Finds Identity object in the storage for the given id.

Link copied to clipboard
suspend fun findByNameAndDateOfBirth(familyName: String, givenName: String, dateOfBirth: LocalDate): List<Identity>

Finds list of Identity objects in storage that match the given name and date of birth.

Link copied to clipboard
suspend fun listAll(): List<String>

Returns the list of all identity id values in the storage.