EventService

interface EventService

Functions

Link copied to clipboard
abstract fun blockingCanAddEventToEnrollment(enrollmentUid: String, programStageUid: String): Boolean

Blocking version of canAddEventToEnrollment.

Link copied to clipboard

Blocking version of getEditableStatus.

Link copied to clipboard

Blocking version of hasCategoryComboAccess.

Link copied to clipboard
abstract fun blockingHasDataWriteAccess(eventUid: String): Boolean

Blocking version of hasDataWriteAccess.

Link copied to clipboard
abstract fun blockingIsEditable(eventUid: String): Boolean

Blocking version of isEditable.

Link copied to clipboard
abstract fun blockingIsInOrgunitRange(event: Event): Boolean

Blocking version of isInOrgunitRange.

Link copied to clipboard
abstract fun canAddEventToEnrollment(enrollmentUid: String, programStageUid: String): Single<Boolean>

Evaluates if an enrollments accepts more events for a particular programStage.

Link copied to clipboard
abstract fun getEditableStatus(eventUid: String): Single<EventEditableStatus>

Returns the editable status of an event. In case the event is not editable, the result also includes the reason why it is not editable.

Link copied to clipboard
abstract fun hasCategoryComboAccess(event: Event): Single<Boolean>

Check if user has access to the categoryCombo linked to the event and also if the categoryCombo is active in the event date.

Link copied to clipboard
abstract fun hasDataWriteAccess(eventUid: String): Single<Boolean>

Check if user has data write access to a particular event.

Link copied to clipboard
abstract fun isEditable(eventUid: String): Single<Boolean>

Check if the event can be edited or not. If you want to know the reason why the event is not editable, check the method getEditableStatus for a richer description of the status.

Link copied to clipboard
abstract fun isInOrgunitRange(event: Event): Single<Boolean>

Check if the event has the event date within the opening period of the assigned organisation unit.