org.olat.course.nodes.iq
Class AssessmentEvent
java.lang.Object
org.olat.core.gui.control.Event
org.olat.core.util.event.MultiUserEvent
org.olat.course.nodes.iq.AssessmentEvent
- All Implemented Interfaces:
- java.io.Serializable
public class AssessmentEvent
- extends MultiUserEvent
Description:
This is a MultiUserEvent that must be instantiated just before fireEventToListenersOf() is called,
in case an assessment is started or stopped.
It also have a "helper" responsability, namely it stores and retrieves the isAssessmentStarted
information via the userSession.
Initial Date: 23.06.2009
- Author:
- Lavinia Dumitrescu
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
equals, getClass, notify, notifyAll, wait, wait, wait |
AssessmentEvent
public AssessmentEvent(AssessmentEvent.TYPE type,
UserSession userSession)
- Create a new assessment event at start/stop assessment and disable/enable chat.
The information about assessment started/stopped is stored as windows attribute.
- Parameters:
command -
getEventType
public AssessmentEvent.TYPE getEventType()
- Returns:
- the event type
isAssessmentStarted
public static boolean isAssessmentStarted(UserSession userSession)
- This is a static method!
The reason why this method resides here is "encapsulation"
(only this class knows where the info about isAssessmentStarted is stored.)
- Parameters:
userSession -
- Returns: