/** * Gets the list of test takers available for the proctor * * @throws \common_Exception * @throws \oat\oatbox\service\ServiceNotFoundException */ public function availableTestTakers() { $delivery = $this->getCurrentDelivery(); $testCenter = $this->getCurrentTestCenter(); try { $requestOptions = $this->getRequestOptions(); $testTakers = DeliveryHelper::getAvailableTestTakers($delivery, $testCenter, $requestOptions); $this->returnJson($testTakers); } catch (ServiceNotFoundException $e) { \common_Logger::w('No delivery service defined for proctoring'); $this->returnError('Proctoring interface not available'); } }