Search in sources :

Example 6 with AssessmentModeNotificationEvent

use of org.olat.course.assessment.AssessmentModeNotificationEvent in project openolat by klemens.

the class AssessmentModeCoordinationServiceImpl method sendEvent.

private void sendEvent(String cmd, AssessmentMode mode, Set<Long> assessedIdentityKeys) {
    TransientAssessmentMode transientMode = new TransientAssessmentMode(mode);
    AssessmentModeNotificationEvent event = new AssessmentModeNotificationEvent(cmd, transientMode, assessedIdentityKeys);
    coordinatorManager.getCoordinator().getEventBus().fireEventToListenersOf(event, AssessmentModeNotificationEvent.ASSESSMENT_MODE_NOTIFICATION);
}
Also used : AssessmentModeNotificationEvent(org.olat.course.assessment.AssessmentModeNotificationEvent) TransientAssessmentMode(org.olat.course.assessment.model.TransientAssessmentMode)

Aggregations

AssessmentModeNotificationEvent (org.olat.course.assessment.AssessmentModeNotificationEvent)6 TransientAssessmentMode (org.olat.course.assessment.model.TransientAssessmentMode)4 ChiefControllerMessageEvent (org.olat.core.commons.chiefcontrollers.ChiefControllerMessageEvent)2 LanguageChangedEvent (org.olat.core.commons.chiefcontrollers.LanguageChangedEvent)2 UserRequest (org.olat.core.gui.UserRequest)2 WindowManager (org.olat.core.gui.WindowManager)2 OncePanel (org.olat.core.gui.components.panel.OncePanel)2 Panel (org.olat.core.gui.components.panel.Panel)2 StackedPanel (org.olat.core.gui.components.panel.StackedPanel)2 ZIndexWrapper (org.olat.core.gui.control.util.ZIndexWrapper)2 HistoryPoint (org.olat.core.id.context.HistoryPoint)2 AssertException (org.olat.core.logging.AssertException)2