StudyRepository

interface StudyRepository

Store Study instances.

Functions

Link copied to clipboard
abstract suspend fun add(study: Study)

Adds a new study to the repository.

Link copied to clipboard
abstract suspend fun getById(studyId: UUID): Study?

Returns the Study which has the specified studyId, or null when no study is found.

Link copied to clipboard
abstract suspend fun getForOwner(ownerId: UUID): List<Study>

Returns the studies created by the owner with ownerId.

Link copied to clipboard
abstract suspend fun remove(studyId: UUID): Boolean

Remove the Study with the specified studyId from the repository.

Link copied to clipboard
abstract suspend fun update(study: Study)

Update a study which is already stored in this repository.

Inheritors

Link copied to clipboard