StudyRepository

interface StudyRepository

Store Study instances.

Functions

add
Link copied to clipboard
abstract suspend fun add(study: Study)
Adds a new study to the repository.
getById
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.
getForOwner
Link copied to clipboard
abstract suspend fun getForOwner(owner: StudyOwner): List<Study>
Returns the studies created by the specified owner.
remove
Link copied to clipboard
abstract suspend fun remove(studyId: UUID): Boolean
Remove the Study with the specified studyId from the repository.
update
Link copied to clipboard
abstract suspend fun update(study: Study)
Update a study which is already stored in this repository.

Inheritors

InMemoryStudyRepository
Link copied to clipboard