org.olat.course.nodes.iq
Class AssessmentEvent

java.lang.Object
  extended by org.olat.core.gui.control.Event
      extended by org.olat.core.util.event.MultiUserEvent
          extended by 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

Nested Class Summary
static class AssessmentEvent.TYPE
           
 
Field Summary
 
Fields inherited from class org.olat.core.gui.control.Event
BACK_EVENT, CANCELLED_EVENT, CHANGED_EVENT, DONE_EVENT, FAILED_EVENT
 
Constructor Summary
AssessmentEvent(AssessmentEvent.TYPE type, UserSession userSession)
          Create a new assessment event at start/stop assessment and disable/enable chat.
 
Method Summary
 AssessmentEvent.TYPE getEventType()
           
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.)
 
Methods inherited from class org.olat.core.util.event.MultiUserEvent
hashCode, isEventOnThisNode, toString
 
Methods inherited from class org.olat.core.gui.control.Event
getCommand
 
Methods inherited from class java.lang.Object
equals, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 -
Method Detail

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: