Recruitment Service Logging Proxy
class RecruitmentServiceLoggingProxy(service: RecruitmentService, eventBus: EventBus, log: (LoggedRequest<RecruitmentService, RecruitmentService.Event>) -> Unit) : ApplicationServiceLoggingProxy<RecruitmentService, RecruitmentService.Event> , RecruitmentService
Content copied to clipboard
A proxy for a recruitment service which notifies of incoming requests and responses through log and keeps a history of requests and published events in loggedRequests.
Constructors
Link copied to clipboard
fun RecruitmentServiceLoggingProxy(service: RecruitmentService, eventBus: EventBus, log: (LoggedRequest<RecruitmentService, RecruitmentService.Event>) -> Unit = { })
Content copied to clipboard
Functions
Link copied to clipboard
open suspend override fun addParticipant(studyId: UUID, email: EmailAddress): Participant
Content copied to clipboard
Add a Participant to the study with the specified studyId, identified by the specified email address. In case the email was already added before, the same Participant is returned.
Link copied to clipboard
open suspend override fun getParticipant(studyId: UUID, participantId: UUID): Participant
Content copied to clipboard
Returns a participant of a study with the specified studyId, identified by participantId.
Link copied to clipboard
open suspend override fun getParticipantGroupStatusList(studyId: UUID): List<ParticipantGroupStatus>
Content copied to clipboard
Get the status of all deployed participant groups in the study with the specified studyId.
Link copied to clipboard
open suspend override fun getParticipants(studyId: UUID): List<Participant>
Content copied to clipboard
Get all Participants for the study with the specified studyId.
Link copied to clipboard
open suspend override fun inviteNewParticipantGroup(studyId: UUID, group: Set<AssignedParticipantRoles>): ParticipantGroupStatus
Content copied to clipboard
Link copied to clipboard
open suspend override fun stopParticipantGroup(studyId: UUID, groupId: UUID): ParticipantGroupStatus
Content copied to clipboard
Link copied to clipboard
fun wasCalled(request: ApplicationServiceRequest<RecruitmentService, *>): Boolean
Content copied to clipboard
Properties
Link copied to clipboard
val loggedRequests: List<LoggedRequest<RecruitmentService, RecruitmentService.Event>>
Content copied to clipboard