org.olat.course.nodes.iq
Class CourseIQSecurityCallback

java.lang.Object
  extended by org.olat.course.nodes.iq.CourseIQSecurityCallback
All Implemented Interfaces:
IQSecurityCallback

public class CourseIQSecurityCallback
extends java.lang.Object
implements IQSecurityCallback

Initial Date: Mar 4, 2004

Author:
Mike Stock

Constructor Summary
CourseIQSecurityCallback(IQSELFCourseNode iqselfCourseNode, AssessmentManager assessmentManager, Identity identity)
          Constructor for the QTI security callback used by the course iqself building blocks (self-test)
CourseIQSecurityCallback(IQSURVCourseNode iqsurvCourseNode, AssessmentManager assessmentManager, Identity identity)
          Constructor for the QTI security callback used by the course iqsurv building blocks (questionnaire)
CourseIQSecurityCallback(IQTESTCourseNode iqtestCourseNode, AssessmentManager assessmentManager, Identity identity)
          Constructor for the QTI security callback used by the course iqtest building blocks (test)
 
Method Summary
 int attemptsLeft(AssessmentInstance ai)
           
 boolean isAllowed(AssessmentInstance ai)
           
 boolean isPreview()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CourseIQSecurityCallback

public CourseIQSecurityCallback(IQTESTCourseNode iqtestCourseNode,
                                AssessmentManager assessmentManager,
                                Identity identity)
Constructor for the QTI security callback used by the course iqtest building blocks (test)

Parameters:
iqtestCourseNode - The current course node
assessmentManager - The course property manager to get user results
identity - The current identity

CourseIQSecurityCallback

public CourseIQSecurityCallback(IQSELFCourseNode iqselfCourseNode,
                                AssessmentManager assessmentManager,
                                Identity identity)
Constructor for the QTI security callback used by the course iqself building blocks (self-test)

Parameters:
iqselfCourseNode - The current course node
assessmentManager - The course property manager to get user results
identity - The current identity

CourseIQSecurityCallback

public CourseIQSecurityCallback(IQSURVCourseNode iqsurvCourseNode,
                                AssessmentManager assessmentManager,
                                Identity identity)
Constructor for the QTI security callback used by the course iqsurv building blocks (questionnaire)

Parameters:
iqsurvCourseNode - The current course node
assessmentManager - The course property manager to get user results
identity - The current identity
Method Detail

isAllowed

public boolean isAllowed(AssessmentInstance ai)
Specified by:
isAllowed in interface IQSecurityCallback
See Also:
IQSecurityCallback.isAllowed(org.olat.ims.qti.process.AssessmentInstance)

attemptsLeft

public int attemptsLeft(AssessmentInstance ai)
Specified by:
attemptsLeft in interface IQSecurityCallback
See Also:
IQSecurityCallback.attemptsLeft(org.olat.ims.qti.process.AssessmentInstance)

isPreview

public boolean isPreview()
Specified by:
isPreview in interface IQSecurityCallback
See Also:
IQSecurityCallback.isPreview()