EnrollmentService

Functions

Link copied to clipboard
abstract fun allowEventCreation(enrollmentUid: String, stagesToHide: List<String>): Single<Boolean>
Link copied to clipboard
abstract fun blockingGetAllowEventCreation(enrollmentUid: String, stagesToHide: List<String>): Boolean
Link copied to clipboard
abstract fun blockingGetEnrollmentAccess(trackedEntityInstanceUid: String, programUid: String): EnrollmentAccess

Blocking version of getEnrollmentAccess.

Link copied to clipboard
abstract fun blockingIsOpen(enrollmentUid: String): Boolean

Blocking version of isOpen.

Link copied to clipboard
abstract fun getEnrollmentAccess(trackedEntityInstanceUid: String, programUid: String): Single<EnrollmentAccess>

Evaluates the access level of the user to this program and trackedEntityInstance.

Link copied to clipboard
abstract fun isOpen(enrollmentUid: String): Single<Boolean>

Checks if the enrollment status is ACTIVE.

Link copied to clipboard
abstract fun rxAllowEventCreation(enrollmentUid: String, stagesToHide: List<String>): Single<Boolean>
Link copied to clipboard
abstract fun rxGetEnrollmentAccess(trackedEntityInstanceUid: String, programUid: String): Single<EnrollmentAccess>
Link copied to clipboard
abstract fun rxIsOpen(enrollmentUid: String): Single<Boolean>
Link copied to clipboard
abstract suspend fun suspendGetAllowEventCreation(enrollmentUid: String, stagesToHide: List<String>): Boolean
Link copied to clipboard
abstract suspend fun suspendGetEnrollmentAccess(trackedEntityInstanceUid: String, programUid: String): EnrollmentAccess
Link copied to clipboard
abstract suspend fun suspendIsOpen(enrollmentUid: String): Boolean